-
Notifications
You must be signed in to change notification settings - Fork 14
56 lines (52 loc) · 1.6 KB
/
board-automation.yml
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
48
49
50
51
52
53
54
55
56
name: Project Board Automation - Pyrsia Development
on:
issues:
types: [opened, reopened]
pull_request_target:
types: [opened, reopened]
env:
todo: Todo
done: Done
in_progress: In Progress
mvp: MVP
blocked: Blocked
jobs:
triage-new-issues:
runs-on: ubuntu-latest
if: |
github.repository_owner == 'pyrsia' &&
github.event_name == 'issues' &&
(github.event.action == 'opened' || github.event.action == 'reopened')
steps:
- uses: actions-ecosystem/action-add-labels@v1
with:
labels: |
triage
website
- name: Move issue to ${{ env.todo }}
uses: leonsteinhaeuser/[email protected]
with:
action: add
status_value: ${{ env.todo }}
project_id: 3
organization: pyrsia
gh_token: ${{ secrets.ORG_ACCESS_TOKEN }}
resource_node_id: ${{ github.event.issue.node_id }}
in-progress-new-prs:
runs-on: ubuntu-latest
if: |
github.repository_owner == 'pyrsia' &&
github.event_name == 'pull_request_target' &&
(github.event.action == 'opened' || github.event.action == 'reopened')
steps:
- uses: toshimaru/[email protected]
- uses: actions-ecosystem/action-add-labels@v1
with:
labels: website
- uses: leonsteinhaeuser/[email protected]
with:
status_value: ${{ env.done }}
project_id: 3
organization: pyrsia
gh_token: ${{ secrets.ORG_ACCESS_TOKEN }}
resource_node_id: ${{ github.event.pull_request.node_id }}