-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ✅ exclude hack tests Signed-off-by: Rintaro Okamura <[email protected]> * 💚 add chatops help Signed-off-by: Rintaro Okamura <[email protected]> * 💚 Fix Signed-off-by: Rintaro Okamura <[email protected]> * 💚 ok Signed-off-by: Rintaro Okamura <[email protected]> * 🔥 remove redundant codes Signed-off-by: Rintaro Okamura <[email protected]>
- Loading branch information
Showing
5 changed files
with
94 additions
and
7 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,6 @@ | ||
- :ok_woman: `/approve` - approve | ||
- :love_letter: `/changelog` - add changelog comment | ||
- :bento: `/format` - format codes and add licenses | ||
- :white_check_mark: `/gen-test` - generate test codes | ||
- :label: `/label` - add labels | ||
- :rewind: `/rebase` - rebase master |
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,24 @@ | ||
name: "ChatOps help" | ||
on: | ||
pull_request: | ||
types: [opened] | ||
jobs: | ||
print-help: | ||
name: print help | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: comment to PR | ||
run: | | ||
curl -o chatops_commands.md https://raw.githubusercontent.com/vdaas/vald/master/.github/chatops_commands.md | ||
BODY=`cat chatops_commands.md | sed ':a;N;$!ba;s/\n/\\\\n/g'` | ||
curl --include --verbose --fail \ | ||
-H "Accept: application/json" \ | ||
-H "Content-Type:application/json" \ | ||
-H "Authorization: token ${GITHUB_TOKEN}" \ | ||
--request POST \ | ||
--data "{\"body\": \"**[CHATOPS:HELP]** ChatOps commands.\\n${BODY}\"}" \ | ||
$API_URL | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.DISPATCH_TOKEN }} | ||
API_URL: ${{ github.event.pull_request.comments_url }} | ||
PR_NUM: ${{ github.event.issue.number }} |
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
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
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