Skip to content

Commit

Permalink
ci: link issues and prs to project automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemSBulgakov committed Feb 25, 2024
1 parent 07f693f commit b651210
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/add-issues-to-project.yaml
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 }}

0 comments on commit b651210

Please sign in to comment.