Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: add fingerprint integration #231

Merged
merged 8 commits into from
Sep 20, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading