Skip to content

Commit

Permalink
Merge branch 'main' into iamnhan
Browse files Browse the repository at this point in the history
  • Loading branch information
wd60622 authored Oct 24, 2024
2 parents 4ab417b + 057000a commit 7ea372e
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/pr-auto-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,23 @@ on:
- pull_request_target

jobs:
labeler:
file-change:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Run Labeler Action
uses: actions/labeler@v5

sync:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Sync labels with closing issues
run: |
owner="pymc-labs"
Expand All @@ -36,3 +45,5 @@ jobs:
' --jq '.data.repository.pullRequest.closingIssuesReferences.nodes | map(.labels.nodes | map(.name)) | flatten | unique | join(",")')
gh pr edit $pr_number --add-label "$labels"
env:
GH_TOKEN: ${{ github.token }}

0 comments on commit 7ea372e

Please sign in to comment.