Skip to content

Commit

Permalink
Support pull_request_target for #150 (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
rajbos authored Dec 12, 2023
1 parent 214bf1a commit fd80e69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit fd80e69

Please sign in to comment.