name: 'Add to DevTools Project'

on:
  issues:
    types:
      - opened
      - reopened
  pull_request_target:
    types:
      - opened
      - reopened

jobs:
  add-to-project:
    name: Add issue/PR to project
    runs-on: ubuntu-latest
    steps:
      - uses: actions/add-to-project@v1.0.0
        with:
          # add to DevTools Project #156
          project-url: https://github.com/orgs/near/projects/156
          github-token: ${{ secrets.PROJECT_GH_TOKEN }}
