-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (67 loc) · 3.02 KB
/
project.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: Project Automations
on:
issues:
types:
- opened
- reopened
pull_request:
types:
- opened
- ready_for_review
- reopened
- closed
- converted_to_draft
jobs:
ProjectAutomations:
runs-on: ubuntu-latest
steps:
- name: 'Add issue to project'
if: github.event_name == 'issues' && (github.event.action == 'opened' || github.event.action == 'reopened')
uses: leonsteinhaeuser/[email protected]
with:
gh_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
organization: Oztechan
project_id: 6
resource_node_id: ${{ github.event.issue.node_id }}
operation_mode: custom_field
custom_field_values: '[{\"name\": \"Iteration\",\"type\": \"iteration\",\"value\": \"@current\"}]'
- name: 'Move Related Issue to "🏗 PR Review"'
if: github.event_name == 'pull_request' && (github.event.action == 'opened' || github.event.action == 'ready_for_review' || github.event.action == 'reopened')
uses: leonsteinhaeuser/[email protected]
with:
gh_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
organization: Oztechan
project_id: 6
resource_node_id: ${{ github.event.pull_request.node_id }}
status_value: "🏗 PR Review"
move_related_issues: true
- name: 'Add Dependency PR by renovate to "🏗 PR Review"'
if: github.event_name == 'pull_request' && github.event.pull_request.user.login == 'renovate[bot]' && (github.event.action == 'opened' || github.event.action == 'ready_for_review' || github.event.action == 'reopened')
uses: leonsteinhaeuser/[email protected]
with:
gh_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
organization: Oztechan
project_id: 6
resource_node_id: ${{ github.event.pull_request.node_id }}
operation_mode: custom_field
custom_field_values: '[{\"name\": \"Iteration\",\"type\": \"iteration\",\"value\": \"@current\"}]'
- name: 'Move Related Issue to "🚧 In Progress"'
if: github.event_name == 'pull_request' && github.event.action == 'converted_to_draft'
uses: leonsteinhaeuser/[email protected]
with:
gh_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
organization: Oztechan
project_id: 6
resource_node_id: ${{ github.event.pull_request.node_id }}
status_value: "🚧 In Progress"
move_related_issues: true
- name: 'Move Related Issue to "✅ Done"'
if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true
uses: leonsteinhaeuser/[email protected]
with:
gh_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
organization: Oztechan
project_id: 6
resource_node_id: ${{ github.event.pull_request.node_id }}
status_value: "✅ Done"
move_related_issues: true