forked from JhaSourav07/commitpulse
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (38 loc) · 1.17 KB
/
Copy pathissue-management.yml
File metadata and controls
43 lines (38 loc) · 1.17 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
35
36
37
38
39
40
41
42
43
name: Issue Management
on:
issue_comment:
types: [created]
concurrency:
group: issue-management-${{ github.event.issue.number }}
cancel-in-progress: false
permissions:
issues: write
contents: read
jobs:
handle-command:
name: Handle Slash Command
runs-on: ubuntu-latest
if: |
!github.event.issue.pull_request &&
(
contains(github.event.comment.body, '/assign') ||
contains(github.event.comment.body, '/unassign') ||
contains(github.event.comment.body, '/addlabel') ||
contains(github.event.comment.body, '/claim') ||
contains(github.event.comment.body, '/unclaim')
)
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
sparse-checkout: .github/scripts
sparse-checkout-cone-mode: false
- name: Process Slash Command
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const script = require('./.github/scripts/issue-management/main.js');
await script({ github, context, core });
env:
GITHUB_REPOSITORY: ${{ github.repository }}