Skip to content

feat(ci): Handle issue_comment events in git-branch-divergence-check workflow#152

Open
bwells-moz wants to merge 4 commits into
mainfrom
MZCLD-2755
Open

feat(ci): Handle issue_comment events in git-branch-divergence-check workflow#152
bwells-moz wants to merge 4 commits into
mainfrom
MZCLD-2755

Conversation

@bwells-moz
Copy link
Copy Markdown
Contributor

These changes

  • makes the shared git-branch-divergence-check workflow event-aware so a single job handles pull_request, merge_group, and issue_comment events from caller workflows.
  • Resolves the PR head SHA via gh pr view using a PR_NUMBER env var that falls back from pull_request.number to issue.number.
  • on issue_comment events it also POSTs a check_run directly to the PR head SHA so the ruleset can see and enforce the result (which otherwise lands on the default-branch HEAD and is invisible to the ruleset). Pre-existing pull_request and merge_group behavior is unchanged for all current consumers.

Related Tickets & Documents

@bwells-moz bwells-moz requested a review from a team as a code owner May 28, 2026 19:50
Comment thread .github/workflows/git-branch-divergence-check.yaml Outdated
Comment thread .github/workflows/git-branch-divergence-check.yaml Outdated
Comment thread .github/workflows/git-branch-divergence-check.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants