name: Add bugs to bugs project

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

jobs:
  add-to-project:
    name: Add issue to project
    runs-on: ubuntu-latest
    steps:
      - uses: actions/add-to-project@v0.4.0
        with:
          # You can target a repository in a different organization
          # to the issue
          project-url: https://github.com/orgs/LSSTDESC/projects/6
          github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
