mirror of
https://github.com/codecov/codecov-action.git
synced 2025-12-23 12:17:01 +08:00
fix: isPullRequestFromFork returns false for any PR (#1437)
* fix: isPullRequestFromFork returns false for any PR * fix: add log statement * fix: force set token * fix: pass in empty string * fix: bump version * fix: revert to promise * fix: revert changes --------- Co-authored-by: Tom Hu <thomas.hu@sentry.io>
This commit is contained in:
3
dist/index.js
vendored
3
dist/index.js
vendored
@@ -32340,7 +32340,8 @@ const getGitService = () => {
|
||||
return 'github';
|
||||
};
|
||||
const isPullRequestFromFork = () => {
|
||||
if (`${context.eventName}` !== 'pull_request' ||
|
||||
core.info(`evenName: ${context.eventName}`);
|
||||
if (`${context.eventName}` !== 'pull_request' &&
|
||||
`${context.eventName}` !== 'pull_request_target') {
|
||||
return false;
|
||||
}
|
||||
|
||||
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user