Skip to content

ci: post release summaries to Slack#28

Merged
PabloPardoGarcia merged 1 commit into
mainfrom
pablo/release-slack-notify
Jul 9, 2026
Merged

ci: post release summaries to Slack#28
PabloPardoGarcia merged 1 commit into
mainfrom
pablo/release-slack-notify

Conversation

@PabloPardoGarcia

Copy link
Copy Markdown
Member

Adds a notify job to the release workflow that posts the changelog to Slack whenever a version ships.

Design notes:

  • Runs needs: [release-please, publish], i.e. only after the PyPI publish succeeds — the channel never sees a release that failed to ship.
  • Placed inside the existing workflow rather than a separate on: release workflow, which would never fire: release-please creates the GitHub Release with GITHUB_TOKEN, and events from that token don't trigger other workflows (GitHub's recursion guard).
  • Fetches the release body via gh release view and converts release-please's markdown to Slack mrkdwn (headings/bold/links), truncated at 3500 chars.
  • No-ops politely until the SLACK_WEBHOOK_RELEASES repo secret exists, so merging is safe before the secret is set.
  • Payload conversion tested locally against a real release-please changelog shape.

Setup required after merge: add the incoming-webhook URL as repo secret SLACK_WEBHOOK_RELEASES.

@PabloPardoGarcia
PabloPardoGarcia merged commit 14bca37 into main Jul 9, 2026
7 checks passed
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