Skip to content

Commit

Permalink
ci(workflows): add-to-project
Browse files Browse the repository at this point in the history
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
  • Loading branch information
unicornware committed Aug 25, 2022
1 parent eacd6f9 commit 20ee547
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/add-to-project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Add To Project
#
# Add new issues and pull requests to the project board.
#
# References:
#
# - https://docs.github.com/actions/using-workflows/events-that-trigger-workflows#issues
# - https://docs.github.com/actions/using-workflows/events-that-trigger-workflows#pull_request
# - https://github.com/actions/add-to-project

---
name: add-to-project
on:
issues:
types:
- opened
pull_request:
types:
- opened
jobs:
add-to-project:
runs-on: ubuntu-latest
steps:
- id: add
name: Add ${{ format('#{0}', github.event.number || github.event.issue.number) }} to project
uses: actions/add-to-project@v0.3.0
with:
github-token: ${{ secrets.PAT_BOT }}
project-url: |
${{ format('{0}/orgs/{1}/projects/{2}', github.server_url, github.repository_owner, secrets.GH_PROJECT_ID) }}

0 comments on commit 20ee547

Please sign in to comment.