forked from trilinos/Trilinos
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (50 loc) · 1.82 KB
/
tpetra_muelu_label_to_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
name: Auto assign MueLu or Tpetra labeled or titled issues to MueLu or Tpetra Projects
on:
issues:
types: [opened, labeled]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: read
jobs:
assign_one_project:
permissions:
issues: write # for actions/github-script@v6
repository-projects: write # for srggrs/assign-one-project-github-action to assign issues and PRs to repo project
name: Assign to MueLu or Tpetra Project
runs-on: ubuntu-latest
steps:
- name: Add MueLu Label
uses: actions/github-script@v6
if: contains(github.event.issue.title, 'MueLu')
with:
script: |
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ["pkg: MueLu"]
})
- name: Add Tpetra Label
uses: actions/github-script@v6
if: contains(github.event.issue.title, 'Tpetra')
with:
script: |
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ["pkg: Tpetra"]
})
- name: Add to MueLu Project
uses: srggrs/[email protected]
if: contains(github.event.label.name, 'MueLu') || contains(github.event.issue.title, 'MueLu')
with:
project: 'https://github.com/trilinos/Trilinos/projects/5'
column_name: 'Backlog'
- name: Add to Tpetra Project
uses: srggrs/[email protected]
if: contains(github.event.label.name, 'Tpetra') || contains(github.event.issue.title, 'Tpetra')
with:
project: 'https://github.com/trilinos/Trilinos/projects/2'
column_name: 'Needs Triage'