Skip to content

Commit

Permalink
feature: skip pullmate-if-pr-closed (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
nejdetkadir authored Oct 25, 2023
1 parent 3c6f3e6 commit 9abde3a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/index.js

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

5 changes: 3 additions & 2 deletions src/lib/bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ async function removeOldPRComments() {
}

async function commentErrors(errors: string[]) {
const { isDraft, PROwner, isMerged } = await pullRequest.getPRInfo();
const { isDraft, PROwner, isMerged, isClosed } =
await pullRequest.getPRInfo();

if (isMerged) {
if (isMerged || isClosed) {
return;
}

Expand Down

0 comments on commit 9abde3a

Please sign in to comment.