forked from springwolf/springwolf-core
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: comment on issues w.r.t staged_for_release label
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |