fix(ci): pr-iphone-deploy no longer self-merges on its own comment #13
Reference in New Issue
Block a user
Delete Branch "fix/ci-lgtm-self-match"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bug
pr-iphone-deployauto-merges every PR ~30s after deploy, with no human review. The bot posts a « Prêt à tester » comment, thenwait-approvalimmediately matches that same comment and squash-merges.Root cause
The
build-deployjob posts a comment whose body literally contains the trigger words as instructions to the reviewer:wait-approvalre-fetches all comments every 30s and greps any body for\bLGTM\b(checked before KO). So on the first poll (~30s after deploy) the bot matches its own comment and squash-merges automatically — no human review ever happens.Regressed in #6937a36 (PR #12), which tightened the regex to catch "Tested, LGTM!" but didn't notice the bot's own body matched.
Fix — sentinel marker + python parse
Identity-agnostic (safe whether `PR_API_TOKEN` is a bot or a personal account):
Verified locally
Ran the new parser against three simulated payloads:
Validation plan on merge
Files