Skip to content

Commit

Permalink
fix(minimize-comments): allow action to run on 'pull_request_target' (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
marcind authored Aug 8, 2022
1 parent 8c15be2 commit 0ce69ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion minimize-comments/dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion minimize-comments/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ run();
async function run() {
try {
// Note: supporting other event types might require changing the query used
if (context.eventName !== "pull_request") {
if (!["pull_request", "pull_request_target"].includes(context.eventName)) {
throw new Error(
`This action is not supported for event of type '${context.eventName}'.`
);
Expand Down

0 comments on commit 0ce69ed

Please sign in to comment.