Skip to content

Commit

Permalink
Merge pull request #63 from Fishbowler/pr_target_event
Browse files Browse the repository at this point in the history
Support pull_request_target event type
  • Loading branch information
romeovs committed May 29, 2024
2 parents ebd8381 + c2cfc16 commit 3a33d15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ async function main() {
workingDir,
}

if (context.eventName === "pull_request") {
if (context.eventName === "pull_request" || context.eventName === "pull_request_target") {
options.commit = context.payload.pull_request.head.sha
options.baseCommit = context.payload.pull_request.base.sha
options.head = context.payload.pull_request.head.ref
Expand All @@ -67,7 +67,7 @@ async function main() {
await deleteOldComments(githubClient, options, context)
}

if (context.eventName === "pull_request") {
if (context.eventName === "pull_request" || context.eventName === "pull_request_target") {
await githubClient.issues.createComment({
repo: context.repo.repo,
owner: context.repo.owner,
Expand Down

0 comments on commit 3a33d15

Please sign in to comment.