S3C metrics workshop blog article #3154
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Auto Assign to Project(s) | |
on: | |
issues: | |
types: [opened, labeled] | |
pull_request: | |
types: [opened, labeled] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
jobs: | |
assign_to_board: | |
runs-on: ubuntu-latest | |
name: Assign to proper board based on labels | |
steps: | |
- name: Assign site-internal ISSUES to the INTERNAL board | |
uses: srggrs/[email protected] | |
if: | | |
contains(github.event.issue.labels.*.name, 'scope: site-internal') | |
with: | |
project: 'https://github.com/betterscientificsoftware/bssw.io/projects/2' | |
column_name: 'Backlog' | |
- name: Assign site-internal PRs to the INTERNAL board | |
uses: srggrs/[email protected] | |
if: | | |
contains(github.event.pull_request.labels.*.name, 'scope: site-internal') | |
with: | |
project: 'https://github.com/betterscientificsoftware/bssw.io/projects/2' | |
column_name: 'In progress' | |
- name: Assign content ISSUES to the CONTENT board | |
uses: srggrs/[email protected] | |
if: | | |
contains(github.event.issue.labels.*.name, 'content: article') || | |
contains(github.event.issue.labels.*.name, 'content: blog') || | |
contains(github.event.issue.labels.*.name, 'content: curated') || | |
contains(github.event.issue.labels.*.name, 'content: event') || | |
contains(github.event.issue.labels.*.name, 'content: howto') || | |
contains(github.event.issue.labels.*.name, 'content: updates') || | |
contains(github.event.issue.labels.*.name, 'content: whatis') | |
with: | |
project: 'https://github.com/betterscientificsoftware/bssw.io/projects/3' | |
column_name: 'Idea backlog' | |
- name: Assign content PRs to the CONTENT board | |
uses: srggrs/[email protected] | |
if: | | |
contains(github.event.pull_request.labels.*.name, 'content: article') || | |
contains(github.event.pull_request.labels.*.name, 'content: blog') || | |
contains(github.event.pull_request.labels.*.name, 'content: curated') || | |
contains(github.event.pull_request.labels.*.name, 'content: event') || | |
contains(github.event.pull_request.labels.*.name, 'content: howto') || | |
contains(github.event.pull_request.labels.*.name, 'content: updates') || | |
contains(github.event.pull_request.labels.*.name, 'content: whatis') | |
with: | |
project: 'https://github.com/betterscientificsoftware/bssw.io/projects/3' | |
column_name: 'Item review' |