diff --git a/dist/index.js b/dist/index.js index 8f428b8..1bceeaf 100644 --- a/dist/index.js +++ b/dist/index.js @@ -14565,7 +14565,7 @@ async function run() { const labelName = core.getInput('labelName'); const labelColor = core.getInput('labelColor'); await getOrCreateLfsWarningLabel(labelName, labelColor); - if (event_type === 'pull_request') { + if (event_type === 'pull_request' || event_type === 'pull_request_target') { const pullRequestNumber = (_a = context.payload.pull_request) === null || _a === void 0 ? void 0 : _a.number; if (pullRequestNumber === undefined) { throw new Error('Could not get PR number'); diff --git a/src/index.ts b/src/index.ts index 9894510..944ae93 100644 --- a/src/index.ts +++ b/src/index.ts @@ -32,7 +32,7 @@ async function run() { await getOrCreateLfsWarningLabel(labelName, labelColor); - if (event_type === 'pull_request') { + if (event_type === 'pull_request' || event_type === 'pull_request_target') { const pullRequestNumber = context.payload.pull_request?.number; if (pullRequestNumber === undefined) {