-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (53 loc) · 1.58 KB
/
add-to-project.yaml
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
name: Project Management
on:
issues:
types:
- labeled
pull_request:
branches: [ main ]
types:
- labeled
- ready_for_review
workflow_call:
inputs:
labeled:
required: false
default: bug, ci, dependencies, documentation, feature, refactor, security, customer
type: string
project-url:
required: false
type: string
reviewers:
required: false
default: '@zaphiro-technologies/backend-devs'
type: string
jobs:
add-to-project:
name: Add issue/PR to a project
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
# You can target a project in a different organization
# to the issue
project-url: ${{ inputs.project-url != '' && inputs.project-url || secrets.PLATFORM_PROJECT_URL }}
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
labeled: ${{ inputs.labeled }}
assing-pr-to-creator:
name: Assign PR to creator
runs-on: ubuntu-latest
steps:
- name: Assign PR to creator
uses: thomaseizinger/[email protected]
if: github.event_name == 'pull_request'
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
add-reviewer-to-pr:
name: Add Pull Request Reviewer
runs-on: ubuntu-latest
steps:
- if: github.event_name == 'pull_request'
uses: rhs/[email protected]
with:
reviewers: ${{ inputs.reviewers != '' && inputs.reviewers || '@zaphiro-technologies/backend-devs' }}
token: ${{ secrets.GITHUB_TOKEN }}