From 5ab8ac51dfde2baf73a7e9db3cb2308479eb51e6 Mon Sep 17 00:00:00 2001 From: Chris Siefert Date: Tue, 19 Sep 2023 15:09:52 -0600 Subject: [PATCH] Update tpetra_muelu_label_to_project.yml --- .../tpetra_muelu_label_to_project.yml | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/tpetra_muelu_label_to_project.yml b/.github/workflows/tpetra_muelu_label_to_project.yml index 239b2e39fe55..47ec3a77ebf3 100644 --- a/.github/workflows/tpetra_muelu_label_to_project.yml +++ b/.github/workflows/tpetra_muelu_label_to_project.yml @@ -13,10 +13,33 @@ permissions: 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/assign-one-project-github-action@1.3.0 if: contains(github.event.label.name, 'MueLu') || contains(github.event.issue.title, 'MueLu')