-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (30 loc) · 1.02 KB
/
Copy pathcommands.yml
File metadata and controls
34 lines (30 loc) · 1.02 KB
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
33
34
name: Comment Commands
on: issue_comment
jobs:
backport:
runs-on: ubuntu-22.04
if: |
github.event.issue.pull_request &&
startsWith(github.event.comment.body, '/backport') &&
(github.event.comment.author_association == 'OWNER' || github.event.comment.author_association == 'MEMBER')
steps:
- name: Extract Command
id: command
uses: xt0rted/slash-command-action@e02bfcd136eeba51130fe06c7a31a1ef9085cf62 # v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
command: backport
reaction: "true"
reaction-type: "eyes"
allow-edits: "false"
permission-level: write
- name: Checkout
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
fetch-depth: 0
- name: Open Backport PR
uses: zeebe-io/backport-action@6d30c3afa2146e1370dfaae83e99cdd1ee3bcba4 # v0.0.4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
github_workspace: ${{ github.workspace }}
version: v0.0.4