-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: link issues and prs to project automatically
- Loading branch information
1 parent
07f693f
commit b651210
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Link issue to InNoHassle project | ||
|
||
on: | ||
issues: | ||
types: | ||
- opened | ||
- reopened | ||
- transferred | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
|
||
jobs: | ||
add-to-project: | ||
name: Add issue to project | ||
if: github.repository_owner == 'one-zero-eight' # Do not run in forks | ||
runs-on: ubuntu-latest | ||
permissions: # Permissions granted to the 'GITHUB_TOKEN' | ||
contents: read | ||
issues: | ||
repository-projects: write | ||
steps: | ||
- uses: actions/add-to-project@v0.5.0 | ||
with: | ||
project-url: https://github.com/orgs/one-zero-eight/projects/4 | ||
github-token: ${{ secrets.GITHUB_TOKEN }} |