Skip to content

Commit

Permalink
feature: add fingerprint integration
Browse files Browse the repository at this point in the history
  • Loading branch information
Kudo committed Sep 14, 2023
1 parent 7bc946c commit 03e53dd
Show file tree
Hide file tree
Showing 30 changed files with 239,691 additions and 586 deletions.
82 changes: 82 additions & 0 deletions build/command/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20150,6 +20150,14 @@ module.exports = require("https");

/***/ }),

/***/ 8188:
/***/ ((module) => {

"use strict";
module.exports = require("module");

/***/ }),

/***/ 1808:
/***/ ((module) => {

Expand Down Expand Up @@ -20518,6 +20526,36 @@ async function easBuild(cmd) {
}
return JSON.parse(stdout);
}
async function createEasBuildFromRawCommandAsync(cwd, command, extraArgs = []) {
let stdout = '';
let cmd = command;
if (!cmd.includes('--json')) {
cmd += ' --json';
}
if (!cmd.includes('--non-interactive')) {
cmd += ' --non-interactive';
}
if (!cmd.includes('--no-wait')) {
cmd += ' --no-wait';
}
try {
({ stdout } = await getExecOutput((await which('eas', true)) + ` ${cmd}`, extraArgs, {
cwd,
}));
}
catch (error) {
throw new Error(`Could not run command eas build, reason:\n${errorMessage(error)}`);
}
return JSON.parse(stdout);
}
async function cancelEasBuildAsync(cwd, buildId) {
try {
await getExecOutput(await which('eas', true), ['build:cancel', buildId], { cwd });
}
catch (e) {
info(`Failed to cancel build ${buildId}: ${errorMessage(e)}`);
}
}
/**
* Try to resolve the project info, by running 'expo config --type prebuild'.
*/
Expand Down Expand Up @@ -20687,6 +20725,39 @@ function issueComment() {
},
];
}
/**
* Get the commit message for a specific commit hash.
*/
async function getGitCommandMessageAsync(options, gitCommitHash) {
const github = githubApi({ token: options.token });
const result = await github.rest.git.getCommit({
...context.repo,
commit_sha: gitCommitHash,
});
return result.data.message;
}
/**
* True if the current event is a push to the default branch.
*/
function isPushDefaultBranchContext() {
return context.eventName === 'push' && context.ref === `refs/heads/${context.payload?.repository?.default_branch}`;
}
/**
* Get the pull request information that associated with a specific commit hash.
*/
async function getPullRequestFromGitCommitShaAsync(options, gitCommitHash) {
const github = githubApi({ token: options.token });
const results = await github.rest.repos.listPullRequestsAssociatedWithCommit({
...context.repo,
commit_sha: gitCommitHash,
});
return results.data.map(pr => ({
id: pr.id,
prNumber: pr.number,
prHeadCommitSha: pr.head.sha,
mergeCommitSha: pr.merge_commit_sha,
}));
}

// EXTERNAL MODULE: external "os"
var external_os_ = __nccwpck_require__(2037);
Expand Down Expand Up @@ -20764,6 +20835,17 @@ function toolPath(name, version) {
assert(process.env['RUNNER_TOOL_CACHE'], 'Could not resolve the local tool cache, RUNNER_TOOL_CACHE not defined');
return path.join(process.env['RUNNER_TOOL_CACHE'], name, version, os.arch());
}
/**
* Add extra `searchPath` to the global search path for require()
*/
function addGlobalNodeSearchPath(searchPath) {
const nodePath = process.env['NODE_PATH'] || '';
const delimiter = process.platform === 'win32' ? ';' : ':';
const nodePaths = nodePath.split(delimiter);
nodePaths.push(searchPath);
process.env['NODE_PATH'] = nodePaths.join(delimiter);
(__nccwpck_require__(8188).Module._initPaths)();
}

;// CONCATENATED MODULE: ./src/actions/command.ts

Expand Down
Loading

0 comments on commit 03e53dd

Please sign in to comment.