diff --git a/.github/workflows/new-pr.yml b/.github/workflows/new-pr.yml new file mode 100644 index 00000000..160ba244 --- /dev/null +++ b/.github/workflows/new-pr.yml @@ -0,0 +1,21 @@ +name: New Pull Request + +on: + pull_requests: + types: + - opened + - reopened + - transferred + +jobs: + add-to-project: + name: Add issue to BeeWare PR project board + runs-on: ubuntu-latest + # The add-to-project action authenticates with BRUTUS_PAT_TOKEN, so the + # job's own GITHUB_TOKEN needs no permissions. + permissions: {} + steps: + - uses: actions/add-to-project@5afcf98fcd03f1c2f92c3c83f58ae24323cc57fd # v2.0.0 + with: + project-url: https://github.com/orgs/beeware/projects/3 # Pull Request board + github-token: ${{ secrets.BRUTUS_PAT_TOKEN }}