Skip to content

Notify Slack on merge queue failures#127

Draft
bschwedler wants to merge 5 commits into
mainfrom
feat/merge-queue-slack-notifications
Draft

Notify Slack on merge queue failures#127
bschwedler wants to merge 5 commits into
mainfrom
feat/merge-queue-slack-notifications

Conversation

@bschwedler

Copy link
Copy Markdown
Contributor

Adds a Slack notification step to the PR workflow that fires when a
merge queue run fails.

The merge_group trigger is required for the workflow to run during
merge queue checks at all. Without it, the github.event_name == 'merge_group' condition in the notification step was never satisfied.

Add a notification step to the CI job, conditioned on merge_group
events, so that merge queue failures trigger a Slack alert. Adds
an id to the alls-green step so its outcome is referenceable.
Without this trigger, the workflow never runs on merge_group events,
so the github.event_name == 'merge_group' condition in the Slack
notification step was never satisfied — effectively dead code.
For pull_request events, pass latest-only=true to all three build
jobs (production, development, session). For merge_group events,
latest-only defaults to false so the full version matrix runs.

Requires images-shared to expose the latest-only input on
bakery-build-pr.yml and the --latest flag on bakery ci matrix.
@bschwedler bschwedler force-pushed the feat/merge-queue-slack-notifications branch from 60ad80b to 598914a Compare June 8, 2026 20:02
Points bakery-build-pr.yml and setup-bakery (via version:) at
feat/merge-queue-slack-notifications so latest-only can be tested
before images-shared#576 merges.

Once posit-dev/images-shared#576 is merged,
drop this commit and restore @main refs in the previous commit.
@bschwedler bschwedler force-pushed the feat/merge-queue-slack-notifications branch from 598914a to 62d1082 Compare June 8, 2026 20:03
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.

1 participant