-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Phoeniix Zhao <[email protected]>
- Loading branch information
1 parent
d4424cd
commit 89c2c61
Showing
2 changed files
with
67 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,46 @@ | ||
on: | ||
issue_comment: | ||
types: | ||
- created | ||
|
||
jobs: | ||
assignme: | ||
name: /assignme | ||
runs-on: ubuntu-latest | ||
if: startsWith(github.event.comment.body, '/assignme') | ||
|
||
steps: | ||
- uses: xt0rted/slash-command-action@v2 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
command: assignme | ||
reaction: "true" | ||
reaction-type: "rocket" | ||
permission-level: read | ||
|
||
- uses: actions-ecosystem/action-add-assignees@v1 | ||
with: | ||
github_token: ${{ secrets.github_token }} | ||
assignees: ${{ github.actor }} | ||
|
||
help: | ||
name: /help | ||
runs-on: ubuntu-latest | ||
if: startsWith(github.event.comment.body, '/help') | ||
|
||
steps: | ||
- uses: xt0rted/slash-command-action@v2 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
command: help | ||
reaction: "true" | ||
reaction-type: "rocket" | ||
|
||
- uses: peter-evans/create-or-update-comment@v1 | ||
with: | ||
issue-number: ${{ github.event.issue.number }} | ||
body: | | ||
Get help or engage by: | ||
- `/help` : to print help messages. | ||
- `/assignme` : to assign this issue to you. |
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,21 @@ | ||
on: | ||
issues: | ||
types: | ||
- opened | ||
|
||
# https://github.com/marketplace/actions/create-or-update-comment | ||
|
||
jobs: | ||
welcome: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: peter-evans/create-or-update-comment@v4 | ||
with: | ||
issue-number: ${{ github.event.issue.number }} | ||
body: | | ||
👋 Thanks for opening this issue! | ||
Reply with the following command on its own line to get help or engage: | ||
- `/help` : to print help messages. | ||
- `/assignme` : to assign this issue to you. |