Skip to content

Commit

Permalink
Only comment on PR opened events
Browse files Browse the repository at this point in the history
Since we're measuring from `createdAt`, updates don't reset the close.
  • Loading branch information
pbrisbin committed Oct 4, 2024
1 parent fba6d2f commit 4adaa10
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions bin/automerge-prs
Original file line number Diff line number Diff line change
Expand Up @@ -58,24 +58,16 @@ if is_dependabot && ! exclude_by_title "$GH_PR_TITLE" && ! is_workflows_update "
fi
fi

cat >"$tmp/message" <<EOM
gh pr comment "$GH_PR_NUMBER" --body-file - <<EOM
:heavy_check_mark: If all status checks pass, and no other reviews are submitted, [mergeabot][] will merge this PR $when_message.
As long as that's OK, no other action is necessary.
[mergeabot]: https://github.com/freckle/mergeabot-action
EOM
;;
*)
cat >"$tmp/message" <<EOM
:clock1: PR was updated. [Mergeabot][] will now merge this PR $when_message.
[mergeabot]: https://github.com/freckle/mergeabot-action
EOM
;;
esac

gh pr comment "$GH_PR_NUMBER" --body-file "$tmp/message"
exit 0
fi

Expand Down

0 comments on commit 4adaa10

Please sign in to comment.