-
Notifications
You must be signed in to change notification settings - Fork 3
47 lines (42 loc) · 1.76 KB
/
Copy pathissue-comment.yml
File metadata and controls
47 lines (42 loc) · 1.76 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
44
45
46
47
name: Handle comments on issues
on:
issue_comment:
types: [created, edited]
jobs:
automate-issue-done:
if: ${{ github.event.sender.login == 'DogeBroFlow' &&
github.event.issue.state == 'closed' &&
github.event.issue.milestone.state == 'closed' &&
github.event.comment.body == format( 'This functionality has been released in v{0}.', github.event.issue.milestone.title ) }}
runs-on: ubuntu-latest
steps:
- uses: alex-page/github-project-automation-plus@v0.8.1
with:
project: Main
column: Done
repo-token: ${{ secrets.GHPROJECT_TOKEN }}
assign-command:
if: ${{ github.event.comment.body == '@dogebroflow assign' ||
github.event.comment.body == '/assign' }}
runs-on: ubuntu-latest
steps:
- name: Assign Issue
uses: pozil/auto-assign-issue@v1
if: ${{ github.event.issue.state == 'open' }}
with:
repo-token: ${{ secrets.GHPROJECT_TOKEN }}
assignees: ${{ github.event.sender.login }}
- name: Comment If Open
uses: peter-evans/create-or-update-comment@v1
if: ${{ github.event.issue.state == 'open' }}
with:
token: ${{ secrets.GHPROJECT_TOKEN }}
issue-number: ${{ github.event.issue.number }}
body: \@${{ github.event.sender.login }}, you are now assigned to this issue. You may unassign yourself at anytime via the GitHub web UI.
- name: Comment If Closed
uses: peter-evans/create-or-update-comment@v1
if: ${{ github.event.issue.state == 'closed' }}
with:
token: ${{ secrets.GHPROJECT_TOKEN }}
issue-number: ${{ github.event.issue.number }}
body: \@${{ github.event.sender.login }}, you cannot assign yourself to a closed issue!