28 lines
833 B
YAML
28 lines
833 B
YAML
name: Approve and Merge Command Dispatch
|
|
on:
|
|
issue_comment:
|
|
types: [created]
|
|
jobs:
|
|
approveAndMergeDispatch:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Auto Approve Slash Command Dispatch
|
|
uses: peter-evans/slash-command-dispatch@v3
|
|
id: scd
|
|
with:
|
|
token: ${{ secrets.GH_PAT_APPROVINGTON_OCTAVIA }}
|
|
permission: write
|
|
issue-type: pull-request
|
|
repository: airbytehq/airbyte-cloud
|
|
dispatch-type: repository
|
|
commands: |
|
|
approve-and-merge
|
|
|
|
- name: Edit comment with error message
|
|
if: steps.scd.outputs.error-message
|
|
uses: peter-evans/create-or-update-comment@v1
|
|
with:
|
|
comment-id: ${{ github.event.comment.id }}
|
|
body: |
|
|
> Error: ${{ steps.scd.outputs.error-message }}
|