Use errors.As and errors.Is #2
Workflow file for this run
This file contains 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
# Add issues or pull-requests created to the project. | |
name: Add issue or pull request to Project | |
on: | |
issues: | |
types: | |
- opened | |
pull_request_target: | |
types: | |
- opened | |
- reopened | |
jobs: | |
add-to-project: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Add issue to project | |
uses: actions/[email protected] | |
with: | |
project-url: https://github.com/orgs/gorilla/projects/4 | |
github-token: ${{ secrets.ADD_TO_PROJECT_TOKEN }} |