-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Patch Workflow on Stale Checking (#482)
* Update stale.yml * Create add-new-comment-on-stale * Update and rename stale.yml to stale-labeler.yml * Update add-new-comment-on-stale * Rename add-new-comment-on-stale to add-new-comment-on-stale.yml
- Loading branch information
1 parent
34aca8f
commit c6214c9
Showing
2 changed files
with
36 additions
and
4 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,31 @@ | ||
on: | ||
issues: | ||
types: | ||
- labeled | ||
|
||
jobs: | ||
add-comment-on-staled-issue: | ||
if: github.event.label.name == "staled-issue" | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
|
||
steps: | ||
- name: Remind assignee on staled Issue | ||
uses: peter-evans/create-or-update-comment@v2 | ||
with: | ||
issue-number: ${{ github.event.issue.number }} | ||
body: "Hi @${{github.event.issue.assignee.login}}, may I know if you are still working on this issue? Please let @holylovenia @SamuelCahyawijaya @sabilmakbar know if you need any help." | ||
|
||
add-comment-on-staled-pr: | ||
if: github.event.label.name == "need-fu-pr" | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pull-requests: write | ||
|
||
steps: | ||
- name: Remind assignee and author on staled PR | ||
uses: peter-evans/create-or-update-comment@v2 | ||
with: | ||
issue-number: ${{github.event.pull_request.number}} | ||
body: "Hi @${{join(github.event.pull_request.assignees.*.login, ', @')}} & @${{github.event.pull_request.user.login}}, may I know if you are still working on this PR?" |
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