diff --git a/.github/workflows/add_issues_to_project.yml b/.github/workflows/add_issues_to_project.yml index a7f64051..ae83bb4b 100644 --- a/.github/workflows/add_issues_to_project.yml +++ b/.github/workflows/add_issues_to_project.yml @@ -3,6 +3,7 @@ on: issues: types: - opened + - closed - labeled jobs: @@ -25,3 +26,10 @@ jobs: # Add to funder reporting board project-url: https://github.com/orgs/ooni/projects/33 github-token: ${{ secrets.ADD_TO_PROJECT_GH_TOKEN }} + + - uses: actions/add-to-project@v1.0.2 + # Move closed issues that are not invalid over to the funder reporting board + if: github.event.action == 'closed' && github.event.issue.state_reason != 'not_planned' && !contains(github.event.issue.labels.*.name, 'invalid') + with: + project-url: https://github.com/orgs/ooni/projects/33 + github-token: ${{ secrets.ADD_TO_PROJECT_GH_TOKEN }}