Skip to content

Commit d8ef728

Browse files
antonisclaude
andauthored
ci: Add workflow to notify issues when fix is released (#6089)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 6784e2a commit d8ef728

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: "Automation: Notify issues for release"
2+
on:
3+
release:
4+
types:
5+
- published
6+
workflow_dispatch:
7+
inputs:
8+
version:
9+
description: Which version to notify issues for
10+
required: true
11+
12+
permissions:
13+
contents: read
14+
issues: write
15+
pull-requests: read
16+
17+
jobs:
18+
release-comment-issues:
19+
runs-on: ubuntu-latest
20+
name: "Notify issues"
21+
steps:
22+
- name: Get version
23+
id: get_version
24+
env:
25+
INPUTS_VERSION: ${{ github.event.inputs.version }}
26+
RELEASE_TAG_NAME: ${{ github.event.release.tag_name }}
27+
run: echo "version=${INPUTS_VERSION:-$RELEASE_TAG_NAME}" >> "$GITHUB_OUTPUT"
28+
29+
- name: Comment on linked issues that are mentioned in release
30+
if: |
31+
steps.get_version.outputs.version != ''
32+
&& !contains(steps.get_version.outputs.version, '-beta.')
33+
&& !contains(steps.get_version.outputs.version, '-alpha.')
34+
&& !contains(steps.get_version.outputs.version, '-rc.')
35+
uses: getsentry/release-comment-issues-gh-action@v1
36+
with:
37+
github_token: ${{ secrets.GITHUB_TOKEN }}
38+
version: ${{ steps.get_version.outputs.version }}

0 commit comments

Comments
 (0)