Skip to content

Commit

Permalink
ci(issues-project): use actions/add-to-project
Browse files Browse the repository at this point in the history
  • Loading branch information
D4isDAVID committed Jul 19, 2023
1 parent e81483f commit a79815e
Showing 1 changed file with 7 additions and 19 deletions.
26 changes: 7 additions & 19 deletions .github/workflows/issues-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,15 @@ name: Issues Project Management

on:
issues:
types: [opened, reopened, closed]
types:
- opened

jobs:
mark-as-todo:
if: ${{ github.event.action == 'opened' || github.event.action == 'reopened' }}
name: Mark opened issue as Todo
add-to-project:
name: Add issue to project
runs-on: ubuntu-latest
steps:
- uses: alex-page/github-project-automation-plus@v0.8.3
- uses: actions/add-to-project@0.5.0
with:
project: Issues
column: Todo
repo-token: ${{ secrets.PROJECTS_PAT }}

mark-as-done:
if: ${{ github.event.action == 'closed' }}
name: Mark closed issue as Done
runs-on: ubuntu-latest
steps:
- uses: alex-page/github-project-automation-plus@v0.8.3
with:
project: Issues
column: Done
repo-token: ${{ secrets.PROJECTS_PAT }}
project-url: https://github.com/orgs/Qbox-project/projects/4
github-token: ${{ secrets.PROJECTS_PAT }}

0 comments on commit a79815e

Please sign in to comment.