Skip to content

Commit

Permalink
fix: switch help command permission level to read
Browse files Browse the repository at this point in the history
Signed-off-by: Phoeniix Zhao <[email protected]>
  • Loading branch information
Phoenix500526 authored and mergify[bot] committed Apr 10, 2024
1 parent 765e63e commit bc37cb1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/issue-cmds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,24 +23,25 @@ jobs:
github_token: ${{ secrets.github_token }}
assignees: ${{ github.actor }}

help:
name: /help
contributing-agreement:
name: /contributing-agreement
runs-on: ubuntu-latest
if: startsWith(github.event.comment.body, '/help')
if: startsWith(github.event.comment.body, '/contributing-agreement')

steps:
- uses: xt0rted/slash-command-action@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
command: help
command: contributing-agreement
reaction: "true"
reaction-type: "rocket"
permission-level: read

- uses: peter-evans/create-or-update-comment@v4
with:
issue-number: ${{ github.event.issue.number }}
body: |
Get help or engage by:
Contributing Agreements:
- `/help` : to print help messages.
- `/assignme` : to assign this issue to you.
- [pull request](https://github.com/xline-kv/Xline/blob/master/CONTRIBUTING.md#pull-requests)
- [merge policy](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/incorporating-changes-from-a-pull-request/about-pull-request-merges#rebase-and-merge-your-commits)
2 changes: 1 addition & 1 deletion .github/workflows/issue-welcome.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ jobs:
Reply with the following command on its own line to get help or engage:
- `/help` : to print help messages.
- `/contributing-agreement` : to print Contributing Agreements.
- `/assignme` : to assign this issue to you.

0 comments on commit bc37cb1

Please sign in to comment.