Skip to content

Commit

Permalink
chore: comment on issues w.r.t staged_for_release label
Browse files Browse the repository at this point in the history
  • Loading branch information
timonback committed May 4, 2024
1 parent 7b1c3f0 commit b3dd398
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/gh-issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Update issue

on:
issues:

jobs:
comment_when_issue_labeled_staged_for_release:
runs-on: ubuntu-latest
if: >-
!github.event.issue.pull_request && # Only run on issues (no pr comments)
github.event.action == 'labeled' &&
github.event.label.name == 'staged for release'
steps:
- name: Comment on issue
run: |
cat << EOF | gh issue comment ${{ github.event.issue.number }} -F -
The change has been merged and will be part of the next release.
If you want to try and verify it in your application,
use the current `SNAPSHOT` build as described in our [README.md](https://github.com/springwolf/springwolf-core)
Thank you for the report/contribution!
EOF
comment_when_staged_for_release_issue_is_closed:
runs-on: ubuntu-latest
if: >-
!github.event.issue.pull_request && # Only run on issues (no pr comments)
github.event.action == 'closed' &&
github.event.label.name == 'staged for release'
steps:
- name: Comment on issue
run: |
cat << EOF | gh issue comment ${{ github.event.issue.number }} -F -
The change is available as part of the latest release. 🎉
Thank you for the report/contribution and making Springwolf better!
EOF

0 comments on commit b3dd398

Please sign in to comment.