Creality #19
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: Project Automation / Issue | |
on: | |
issues: | |
types: [opened, reopened, labeled] | |
workflow_call: | |
secrets: | |
ADD_TO_PROJECT_PAT: | |
required: true | |
env: | |
KANBAN_PROJECT_URL: https://github.com/orgs/PrintMakerLab/projects/3 | |
TRACKER_PROJECT_URL: https://github.com/orgs/PrintMakerLab/projects/4 | |
LABEL_BUG: 'issue: bug' | |
LABEL_SECURITY: 'issue: security' | |
LABEL_BACKLOG: 'status: backlog' | |
jobs: | |
add-to-kanban-project: | |
name: Add security, bug and team selected issues to the Kanban project | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
with: | |
labeled: ${{ env.LABEL_BUG }}, ${{ env.LABEL_BACKLOG }}, ${{ env.LABEL_SECURITY }} | |
project-url: ${{ env.KANBAN_PROJECT_URL }} | |
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }} | |
add-to-tracker-project: | |
name: Add all issues to the Issue tracker project | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
with: | |
project-url: ${{ env.TRACKER_PROJECT_URL }} | |
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }} |