mirror of
https://github.com/github/awesome-copilot.git
synced 2026-06-13 11:33:32 +00:00
3e4cc87e91
* fix: reset bot review when PR base is changed off main The check-pr-target workflow only ran on 'opened' events targeting main, so it never re-ran after a submitter edited the base branch to 'staged'. The REQUEST_CHANGES review was left in place, blocking merge and requiring a manual maintainer override. Changes: - Broaden trigger to also fire on edited, reopened, and synchronize events, and add 'staged' to the branches filter so the workflow runs after a base-branch edit. - Before posting REQUEST_CHANGES, check whether the bot already has an active CHANGES_REQUESTED review to avoid duplicate reviews. - After a base-branch edit: if the PR no longer targets main and the bot's latest review state is CHANGES_REQUESTED, post an APPROVE review to clear the block automatically. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fix: rerun PR target check for any base branch Co-authored-by: aaronpowell <434140+aaronpowell@users.noreply.github.com> --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: aaronpowell <434140+aaronpowell@users.noreply.github.com>