mirror of
https://github.com/codecov/codecov-action.git
synced 2026-02-10 20:31:41 +00:00
chore: Clarify isPullRequestFromFork (#1411)
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
@@ -29,7 +29,7 @@ const getGitService = (): string => {
|
||||
return 'github';
|
||||
};
|
||||
|
||||
const isFork = (): boolean => {
|
||||
const isPullRequestFromFork = (): boolean => {
|
||||
if (
|
||||
`${context.eventName}` !== 'pull_request' ||
|
||||
`${context.eventName}` !== 'pull_request_target'
|
||||
@@ -45,7 +45,7 @@ const isFork = (): boolean => {
|
||||
};
|
||||
|
||||
const getToken = async (): Promise<string> => {
|
||||
if (isFork()) {
|
||||
if (isPullRequestFromFork()) {
|
||||
core.info('==> Fork detected, tokenless uploading used');
|
||||
return Promise.resolve('');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user