This repository was archived by the owner on May 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
77 lines (71 loc) · 2.34 KB
/
Copy pathissue-status-label.yml
File metadata and controls
77 lines (71 loc) · 2.34 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Label issues
on:
issues:
types:
- reopened
- opened
- closed
- assigned
env:
PROJECT_NAME: TODO
jobs:
issue_labels:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Add backlog label
if: "github.event.action == 'opened'"
uses: andymckay/labeler@1.0.4
with:
add-labels: "Status: Backlog"
remove-labels: "Status: Closed, Status: Backlog"
- name: Add inprogress label
if: "github.event.action == 'assigned' || github.event.action == 'reopened'"
uses: andymckay/labeler@1.0.4
with:
add-labels: "Status: In Progress"
remove-labels: "Status: Backlog, Status: Closed"
- name: Add close label
if: "github.event.action == 'closed'"
uses: andymckay/labeler@1.0.4
with:
add-labels: "Status: Closed"
remove-labels: "Status: Backlog, Status: In Progress"
assign_issue_to_project:
name: Assign issues to project
runs-on: ubuntu-latest
steps:
- name: Assign issues to project
uses: technote-space/create-project-card-action@v1
if: "github.event.action == 'opened'"
with:
PROJECT: ${{env.PROJECT_NAME}}
COLUMN: 未処理
repo-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
move_assigned_card:
runs-on: ubuntu-latest
name: Move assigned card
steps:
- uses: alex-page/github-project-automation-plus@v0.8.1
if: "github.event.action == 'assigned'"
with:
project: ${{env.PROJECT_NAME}}
column: 進行中 or 作業中Issue・Pull Request
repo-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- uses: alex-page/github-project-automation-plus@v0.8.1
if: "github.event.action == 'reopened'"
with:
project: ${{env.PROJECT_NAME}}
column: 進行中 or 作業中Issue・Pull Request
repo-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
move_the_card_when_the_issue_is_closed:
runs-on: ubuntu-latest
name: Move the card when the issue is closed
steps:
- uses: alex-page/github-project-automation-plus@v0.8.1
if: "github.event.action == 'closed'"
with:
project: ${{env.PROJECT_NAME}}
column: 完了済み
repo-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}