Skip to content

MueLu: Provide version of ML's SetDefaults that doesn't require ML #3290

MueLu: Provide version of ML's SetDefaults that doesn't require ML

MueLu: Provide version of ML's SetDefaults that doesn't require ML #3290

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@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
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@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
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@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
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@65a8ddab497df42ef268001e67bbf976f8fd39e1 # 1.3.1
if: contains(github.event.label.name, 'MueLu') || contains(github.event.issue.title, 'MueLu')
with:
project: 'https://github.com/orgs/trilinos/projects/8'
column_name: 'Backlog'
- name: Add to Tpetra Project
uses: srggrs/assign-one-project-github-action@65a8ddab497df42ef268001e67bbf976f8fd39e1 # 1.3.1
if: contains(github.event.label.name, 'Tpetra') || contains(github.event.issue.title, 'Tpetra')
with:
project: 'https://github.com/orgs/trilinos/projects/9'
column_name: 'Needs Triage'