I can't _guarantee_ it, if the template logic changes it could become undefined and thus the if would catch that. In all reality using ! is probably fine, this is just a little more defensive. I'm going to leave it as is.
#600
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Add issues to API team project | |
| permissions: | |
| issues: write | |
| contents: read | |
| on: | |
| issues: | |
| types: | |
| - opened | |
| jobs: | |
| add-to-project: | |
| name: Add issue to project | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/add-to-project@main | |
| with: | |
| project-url: https://github.com/orgs/github/projects/8014 | |
| github-token: ${{ secrets.ADD_TO_PROJECT_TOKEN }} |