Skip to content

Commit

Permalink
Auto add to project
Browse files Browse the repository at this point in the history
  • Loading branch information
powe97 committed Aug 12, 2024
1 parent a92a8af commit 8be1d46
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/add_to_project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: "Add PR to project board"
on:
pull_request_target:
types:
- opened

env:
PR_URL: ${{ github.event.pull_request.html_url }}

jobs:
title-check:
runs-on: ubuntu-latest
steps:
- name: Generate token
id: generate-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.APP_PEM }}

- name: Add PR to project
env:
GH_TOKEN: ${{ steps.generate-token.outputs.token }}
run: |
gh project item-add --owner Submitty 1 --url "$PR_URL"

0 comments on commit 8be1d46

Please sign in to comment.