diff --git a/build/command/index.js b/build/command/index.js index 68307fb59..0377b44ff 100644 --- a/build/command/index.js +++ b/build/command/index.js @@ -39021,7 +39021,7 @@ function pullContext() { if (process.env['EXPO_TEST_GITHUB_PULL']) { return { ...github_1.context.repo, number: Number(process.env['EXPO_TEST_GITHUB_PULL']) }; } - (0, assert_1.ok)(github_1.context.eventName === 'pull_request', 'Could not find the pull request context, make sure to run this from a pull_request triggered workflow'); + (0, assert_1.ok)(github_1.context.eventName === 'pull_request' || github_1.context.eventName === 'issue_comment', 'Could not find the pull request context, make sure to run this from a pull_request or issue_comment triggered workflow'); return github_1.context.issue; } exports.pullContext = pullContext; diff --git a/build/continuous-deploy-fingerprint/index.js b/build/continuous-deploy-fingerprint/index.js index 92a03de41..9a977f6c1 100644 --- a/build/continuous-deploy-fingerprint/index.js +++ b/build/continuous-deploy-fingerprint/index.js @@ -42290,7 +42290,7 @@ function pullContext() { if (process.env['EXPO_TEST_GITHUB_PULL']) { return { ...github_1.context.repo, number: Number(process.env['EXPO_TEST_GITHUB_PULL']) }; } - (0, assert_1.ok)(github_1.context.eventName === 'pull_request', 'Could not find the pull request context, make sure to run this from a pull_request triggered workflow'); + (0, assert_1.ok)(github_1.context.eventName === 'pull_request' || github_1.context.eventName === 'issue_comment', 'Could not find the pull request context, make sure to run this from a pull_request or issue_comment triggered workflow'); return github_1.context.issue; } exports.pullContext = pullContext; diff --git a/build/fingerprint-post/index.js b/build/fingerprint-post/index.js index da05fed97..d7b69ce78 100644 --- a/build/fingerprint-post/index.js +++ b/build/fingerprint-post/index.js @@ -89309,7 +89309,7 @@ function pullContext() { if (process.env['EXPO_TEST_GITHUB_PULL']) { return { ...github_1.context.repo, number: Number(process.env['EXPO_TEST_GITHUB_PULL']) }; } - (0, assert_1.ok)(github_1.context.eventName === 'pull_request', 'Could not find the pull request context, make sure to run this from a pull_request triggered workflow'); + (0, assert_1.ok)(github_1.context.eventName === 'pull_request' || github_1.context.eventName === 'issue_comment', 'Could not find the pull request context, make sure to run this from a pull_request or issue_comment triggered workflow'); return github_1.context.issue; } exports.pullContext = pullContext; diff --git a/build/fingerprint/index.js b/build/fingerprint/index.js index 9f64229ad..cf466f47d 100644 --- a/build/fingerprint/index.js +++ b/build/fingerprint/index.js @@ -89270,7 +89270,7 @@ function pullContext() { if (process.env['EXPO_TEST_GITHUB_PULL']) { return { ...github_1.context.repo, number: Number(process.env['EXPO_TEST_GITHUB_PULL']) }; } - (0, assert_1.ok)(github_1.context.eventName === 'pull_request', 'Could not find the pull request context, make sure to run this from a pull_request triggered workflow'); + (0, assert_1.ok)(github_1.context.eventName === 'pull_request' || github_1.context.eventName === 'issue_comment', 'Could not find the pull request context, make sure to run this from a pull_request or issue_comment triggered workflow'); return github_1.context.issue; } exports.pullContext = pullContext; diff --git a/build/preview-build/index.js b/build/preview-build/index.js index 155c0f10e..661dc0d3e 100644 --- a/build/preview-build/index.js +++ b/build/preview-build/index.js @@ -89906,7 +89906,7 @@ function pullContext() { if (process.env['EXPO_TEST_GITHUB_PULL']) { return { ...github_1.context.repo, number: Number(process.env['EXPO_TEST_GITHUB_PULL']) }; } - (0, assert_1.ok)(github_1.context.eventName === 'pull_request', 'Could not find the pull request context, make sure to run this from a pull_request triggered workflow'); + (0, assert_1.ok)(github_1.context.eventName === 'pull_request' || github_1.context.eventName === 'issue_comment', 'Could not find the pull request context, make sure to run this from a pull_request or issue_comment triggered workflow'); return github_1.context.issue; } exports.pullContext = pullContext; diff --git a/build/preview-comment/index.js b/build/preview-comment/index.js index 0751c1b76..c14353814 100644 --- a/build/preview-comment/index.js +++ b/build/preview-comment/index.js @@ -38965,7 +38965,7 @@ function pullContext() { if (process.env['EXPO_TEST_GITHUB_PULL']) { return { ...github_1.context.repo, number: Number(process.env['EXPO_TEST_GITHUB_PULL']) }; } - (0, assert_1.ok)(github_1.context.eventName === 'pull_request', 'Could not find the pull request context, make sure to run this from a pull_request triggered workflow'); + (0, assert_1.ok)(github_1.context.eventName === 'pull_request' || github_1.context.eventName === 'issue_comment', 'Could not find the pull request context, make sure to run this from a pull_request or issue_comment triggered workflow'); return github_1.context.issue; } exports.pullContext = pullContext; diff --git a/build/preview/index.js b/build/preview/index.js index eeeb74560..d41c43125 100644 --- a/build/preview/index.js +++ b/build/preview/index.js @@ -42498,7 +42498,7 @@ function pullContext() { if (process.env['EXPO_TEST_GITHUB_PULL']) { return { ...github_1.context.repo, number: Number(process.env['EXPO_TEST_GITHUB_PULL']) }; } - (0, assert_1.ok)(github_1.context.eventName === 'pull_request', 'Could not find the pull request context, make sure to run this from a pull_request triggered workflow'); + (0, assert_1.ok)(github_1.context.eventName === 'pull_request' || github_1.context.eventName === 'issue_comment', 'Could not find the pull request context, make sure to run this from a pull_request or issue_comment triggered workflow'); return github_1.context.issue; } exports.pullContext = pullContext; diff --git a/build/setup/index.js b/build/setup/index.js index 7bfcb2af2..2c3735d0f 100644 --- a/build/setup/index.js +++ b/build/setup/index.js @@ -89242,7 +89242,7 @@ function pullContext() { if (process.env['EXPO_TEST_GITHUB_PULL']) { return { ...github_1.context.repo, number: Number(process.env['EXPO_TEST_GITHUB_PULL']) }; } - (0, assert_1.ok)(github_1.context.eventName === 'pull_request', 'Could not find the pull request context, make sure to run this from a pull_request triggered workflow'); + (0, assert_1.ok)(github_1.context.eventName === 'pull_request' || github_1.context.eventName === 'issue_comment', 'Could not find the pull request context, make sure to run this from a pull_request or issue_comment triggered workflow'); return github_1.context.issue; } exports.pullContext = pullContext; diff --git a/src/github.ts b/src/github.ts index 321db33f0..ae5f5149c 100644 --- a/src/github.ts +++ b/src/github.ts @@ -93,8 +93,8 @@ export function pullContext(): IssueContext { } assert( - context.eventName === 'pull_request', - 'Could not find the pull request context, make sure to run this from a pull_request triggered workflow' + context.eventName === 'pull_request' || context.eventName === 'issue_comment', + 'Could not find the pull request context, make sure to run this from a pull_request or issue_comment triggered workflow' ); return context.issue; }