name: Add pull requests to projects

on:
  pull_request_target:
    types:
      - opened

jobs:
  add-to-project:
    name: Add PR to project
    runs-on: ubuntu-latest
    steps:
      - uses: actions/add-to-project@v0.4.1
        with:
          project-url: https://github.com/orgs/w3c/projects/20
          github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
