Skip to content

Commit

Permalink
add help command
Browse files Browse the repository at this point in the history
  • Loading branch information
jsbroks committed May 29, 2024
1 parent e345839 commit 115771c
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/dispatcher.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
commands: |
test
destroy
help
permission: maintain
issue-type: pull-request
event-type-suffix: -command
Empty file.
27 changes: 27 additions & 0 deletions .github/workflows/handler-help.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Pull Request Help Handler

on:
repository_dispatch:
types:
- help-command

jobs:
help:
name: Run help
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: Update comment
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0
with:
token: ${{ secrets.WANDB_RELEASE_TOKEN }}
repository: ${{ github.event.client_payload.github.payload.repository.full_name }}
comment-id: ${{ github.event.client_payload.github.payload.comment.id }}
body: |
> | Command | Description |
> | ------- | ----------- |
> | /test [destroy=false] | Run the Terraform test workflow on the modules in the tests/ The named argument "destroy=false" will disable the destruction of test infrastructure for debugging purposes. |
> | /destroy | Destroy any resources that may still be in Terraform state from previous tests |
> | /help | Shows this help message |
reactions: confused

0 comments on commit 115771c

Please sign in to comment.