🤖 Add GitHub action to link PR and issues to project (#65)

This commit is contained in:
r1oga
2022-11-24 17:08:18 +01:00
committed by GitHub
parent 995eb6a1cf
commit 4bec9a5812
2 changed files with 35 additions and 0 deletions

15
.github/workflows/add-to-project.yaml vendored Normal file
View File

@@ -0,0 +1,15 @@
name: Add Opened Issue to Project
on:
issues:
types: [opened]
jobs:
add-to-project:
name: Add issue to project
runs-on: ubuntu-latest
steps:
- uses: actions/add-to-project@v0.3.0
with:
project-url: https://github.com/orgs/zkitter/projects/1
github-token: ${{ secrets.TOKEN }} # specific access token different from GITHUB_TOKEN required (see https://github.com/marketplace/actions/add-to-github-projects#creating-a-pat-and-adding-it-to-your-repository)

20
.github/workflows/issue-link.yaml vendored Normal file
View File

@@ -0,0 +1,20 @@
name: Issue-PR Link
on:
pull_request:
types: [opened]
# set minimum required permissions for automatic `GITHUB_TOKEN` token
permissions:
pull-requests: write
issues: read
jobs:
issue-links:
name: Link PR to Issue
runs-on: ubuntu-latest
steps:
- uses: tkt-actions/add-issue-links@v1.8.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
branch-prefix: 'issue-'
resolve: true