Skip to content

Incorrect association? #1848

Incorrect association?

Incorrect association? #1848

name: Assign NEW Issues & PRs to General Project, bug and prod labelled to Prod Project
on:
issues:
types: [opened, labeled]
pull_request:
types: [opened, labeled]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
assign_one_project:
runs-on: ubuntu-latest
name: Assign to One Project
steps:
- name: Assign NEW Issues and NEW PRs to Pipeline General Dashboard
uses: srggrs/assign-one-project-github-action@1.2.0
if: github.event.action == 'opened'
with:
project: 'https://github.com/askap-vast/vast-pipeline/projects/1'
- name: Assign Issues and PRs with "bug" or "prod" labels to Nimbus Production Dashboard
uses: srggrs/assign-one-project-github-action@1.2.0
if: |
contains(github.event.issue.labels.*.name, 'bug') ||
contains(github.event.pull_request.labels.*.name, 'bug') ||
contains(github.event.issue.labels.*.name, 'prod') ||
contains(github.event.pull_request.labels.*.name, 'prod')
with:
project: 'https://github.com/askap-vast/vast-pipeline/projects/2'