Skip to content

Commit 497fe1c

Browse files
authored
feat(gha): add Slack notification workflow for Desktop release notes PRs (#24538)
<!--Delete sections as needed --> ## Description Adds a GitHub Actions workflow that posts a Slack notification when a pull request is opened that modifies the Desktop release notes page (content/manuals/desktop/release-notes.md). The workflow uses slackapi/slack-github-action v3.0.1 and sends a message with a link to the PR and the author's GitHub profile to the configured Slack channel. Will need to add the secrets. ## Related issues or tickets n/a ## Reviews <!-- Notes for reviewers here --> <!-- List applicable reviews (optionally @tag reviewers) --> - [x] Technical review - [ ] Editorial review - [ ] Product review Signed-off-by: Lorena Rangel <lorena.rangel@docker.com>
1 parent f510b9a commit 497fe1c

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Notify Slack on Desktop Release Notes PR
2+
3+
on:
4+
pull_request:
5+
types: [opened]
6+
paths:
7+
- content/manuals/desktop/release-notes.md
8+
9+
jobs:
10+
notify:
11+
runs-on: ubuntu-24.04
12+
if: github.repository_owner == 'docker'
13+
steps:
14+
- name: Notify Slack
15+
uses: slackapi/slack-github-action@af78098f536edbc4de71162a307590698245be95 # v3.0.1
16+
with:
17+
method: chat.postMessage
18+
token: ${{ secrets.SLACK_BOT_TOKEN }}
19+
payload: |
20+
{
21+
"channel": "${{ secrets.SLACK_RELEASE_CHANNEL_ID }}",
22+
"text": "Desktop release notes",
23+
"blocks": [
24+
{
25+
"type": "section",
26+
"text": {
27+
"type": "mrkdwn",
28+
"text": ":memo: *Desktop release notes*:\n<${{ github.event.pull_request.html_url }}|${{ github.event.pull_request.title }}> by <https://github.com/${{ github.event.pull_request.user.login }}|${{ github.event.pull_request.user.login }}>"
29+
}
30+
}
31+
]
32+
}

0 commit comments

Comments
 (0)