-
Notifications
You must be signed in to change notification settings - Fork 23
32 lines (31 loc) · 1.3 KB
/
command-help.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: command-help
run-name: command-help PR-${{ github.event.client_payload.github.payload.issue.number }}
on:
repository_dispatch:
types: [help-command]
permissions:
issues: write
pull-requests: write
contents: write
jobs:
help:
runs-on: ubuntu-latest
steps:
- name: Dump the client payload context
env:
PAYLOAD_CONTEXT: ${{ toJson(github.event.client_payload) }}
run: echo "$PAYLOAD_CONTEXT"
- name: Update comment
uses: peter-evans/create-or-update-comment@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.event.client_payload.github.payload.repository.full_name }}
comment-id: ${{ github.event.client_payload.github.payload.comment.id }}
body: |
> Command | Description
> --- | ---
> /merge-snapshot | Squash and merge snapshot PR.
> /merge-release | Squash and merge release PR.
> /update-release | Updates the changelog of a release PR.
> /deploy-pr | Deploys the PR as a snapshot version (i.e. `org.carlspring.cloud.aws:s3fs-nio:PR-${{ github.event.client_payload.github.payload.issue.number }}-SNAPSHOT` using ref `${{ github.event.client_payload.pull_request.head.sha }}`)
reaction-type: hooray