Skip to content

Commit

Permalink
pr labelling workflow added. Closes #21
Browse files Browse the repository at this point in the history
  • Loading branch information
mervegonc committed May 5, 2024
1 parent 7c7cedb commit a348db8
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/create-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Assign Project and Member
on:
pull_request:
types:
- opened

jobs:
label_pr:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
- run: git init
- name: edit_pr
run: |
gh pr edit "$NUMBER" --add-project "$PROJECT" --add-label "$LABELS"
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
LABELS: ${{ secrets.REPO_TEAM }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.issue.number }}
PROJECT: ${{ secrets.ASSIGN_PROJECT }}

0 comments on commit a348db8

Please sign in to comment.