Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: comment on issues w.r.t staged_for_release, waiting_for_feedback label #747

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/gh-issue-comment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Update issue comment

on:
issue_comment:

jobs:
when_user_comments_remove_label_waiting_for_feedback:
runs-on: ubuntu-latest
if: >-
!github.event.issue.pull_request &&
github.event.action == 'created' &&
github.event.pull_request.author_association != 'CONTRIBUTOR' &&
github.event.pull_request.author_association != 'MEMBER' &&
contains(github.event.issue.labels.*.name, 'waiting for feedback')
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_ISSUE_NUMBER: ${{ github.event.issue.number }}
GH_REPO: ${{ github.repository }}
steps:
- name: Remove label "waiting for feedback"
run: gh issue edit ${{ env.GH_ISSUE_NUMBER }} --remove-label "waiting for feedback"
45 changes: 45 additions & 0 deletions .github/workflows/gh-issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Update issue

on:
issues:

jobs:
comment_when_issue_labeled_staged_for_release:
runs-on: ubuntu-latest
if: >-
!github.event.issue.pull_request &&
github.event.action == 'labeled' &&
github.event.label.name == 'staged for release'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_ISSUE_NUMBER: ${{ github.event.issue.number }}
GH_REPO: ${{ github.repository }}
steps:
- name: Comment on issue
run: |
cat << EOF | gh issue comment ${{ env.GH_ISSUE_NUMBER }} -F -
The change is staged for release and will be part of the next release.

If you want to try and verify it in your application today,
use the latest 1.X.0-SNAPSHOT build as described in our [README.md > Testing SNAPSHOT version](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 &&
github.event.action == 'closed' &&
contains(github.event.issue.labels.*.name, 'staged for release')
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_ISSUE_NUMBER: ${{ github.event.issue.number }}
GH_REPO: ${{ github.repository }}
steps:
- name: Comment on issue
run: |
cat << EOF | gh issue comment ${{ env.GH_ISSUE_NUMBER }} -F -
The change is available in the latest release. 🎉

Thank you for the report/contribution and making Springwolf better!
EOF