name: Add bugs to bugs project

on:
  issues:
    types:
      - opened
  pull_request:
    types:
      - opened

jobs:
  add-to-project:
    name: Add issue to project
    runs-on: ubuntu-latest
    steps:
      - name: Generate token
        id: generate_token
        uses: tibdex/github-app-token@v1.5.2
        with:
          app_id: ${{ secrets.APP_ID }}
          private_key: ${{ secrets.APP_PEM }}
      - uses: actions/add-to-project@v0.0.3
        with:
          project-url: https://github.com/orgs/erlang/projects/13
          github-token: ${{ steps.generate_token.outputs.token }}

Add PRs and Issues to tracking project automatically
Add PRs and Issues to tracking project automatically
