forked from com-pas/compas-sct
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (43 loc) · 1.88 KB
/
automate_projects.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
# SPDX-FileCopyrightText: 2021 Alliander N.V.
#
# SPDX-License-Identifier: Apache-2.0
name: Add issues and pull request to project boards
on:
issues:
types: [opened]
pull_request:
types: [opened]
pull_request_target:
types: [opened]
jobs:
github-actions-automate-projects:
runs-on: ubuntu-latest
if: ${{ (github.event_name != 'pull_request_target' && github.actor != 'dependabot[bot]') || (github.actor == 'dependabot[bot]' && github.event_name == 'pull_request_target') }}
steps:
- name: add-new-issues-to-repository-based-project-column
if: github.event_name == 'issues'
uses: alex-page/github-project-automation-plus@v0.8.3
with:
project: samirromdhani sct Board
column: To do
repo-token: ${{ secrets.SCT_GITHUB_ACTION_SECRET }}
- name: add-new-pull-request-to-repository-based-project-column
if: github.event_name == 'pull_request' || github.event_name == 'pull_request_target'
uses: alex-page/github-project-automation-plus@v0.8.3
with:
project: samirromdhani sct Board
column: To do
repo-token: ${{ secrets.SCT_GITHUB_ACTION_SECRET }}
# - name: add-new-issues-to-organization-based-project-column
# if: github.event_name == 'issues' && github.event.action == 'opened'
# uses: alex-page/github-project-automation-plus@v0.8.3
# with:
# project: CoMPAS Issues Overview Board
# column: To do
# repo-token: ${{ secrets.ORG_GITHUB_ACTION_SECRET }}
# - name: add-new-pull-request-to-organization-based-project-column
# if: (github.event_name == 'pull_request' || github.event_name == 'pull_request_target') && github.event.action == 'opened'
# uses: alex-page/github-project-automation-plus@v0.8.3
# with:
# project: CoMPAS Pull Request Overview Board
# column: To do