2020-09-17 11:29:37 +02:00
|
|
|
name: Auto Assign to Projects based on software/hardware label
|
|
|
|
|
|
|
|
on:
|
|
|
|
issues:
|
|
|
|
types: [labeled]
|
|
|
|
pull_request:
|
|
|
|
types: [labeled]
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
assign_one_project:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: Assign to projects based on label
|
|
|
|
steps:
|
|
|
|
- name: Assign issues and pull requests with `hardware` label to project `Hardware`
|
|
|
|
uses: srggrs/assign-one-project-github-action@1.2.0
|
|
|
|
if: |
|
|
|
|
contains(github.event.issue.labels.*.name, 'hardware') ||
|
|
|
|
contains(github.event.pull_request.labels.*.name, 'hardware')
|
|
|
|
with:
|
2021-07-01 15:55:56 +02:00
|
|
|
project: 'https://github.com/PlanktonPlanet/PlanktoScope/projects/2'
|
2020-09-17 11:29:37 +02:00
|
|
|
column_name: 'Bugs'
|
|
|
|
|
|
|
|
- name: Assign issues and pull requests with `software` label to project `Sofware`
|
|
|
|
uses: srggrs/assign-one-project-github-action@1.2.0
|
|
|
|
if: |
|
2020-09-17 11:34:10 +02:00
|
|
|
contains(github.event.issue.labels.*.name, 'software') ||
|
|
|
|
contains(github.event.pull_request.labels.*.name, 'software')
|
2020-09-17 11:29:37 +02:00
|
|
|
with:
|
2021-07-01 15:55:56 +02:00
|
|
|
project: 'https://github.com/PlanktonPlanet/PlanktoScope/projects/1'
|
2020-09-17 11:29:37 +02:00
|
|
|
column_name: 'To Do'
|