Compare commits

...

4 Commits

Author SHA1 Message Date
Ryan Laurie
0da981ac33 try this 2025-01-24 13:29:35 -07:00
Ryan Laurie
cabb5ff843 more perms 2025-01-24 13:24:06 -07:00
Ryan Laurie
0d9f297d68 resty 2025-01-24 11:59:43 -07:00
Ryan Laurie
4b771c2894 label external PRs 2025-01-24 09:56:33 -07:00

25
.github/workflows/external-pr-label.yml vendored Normal file
View File

@@ -0,0 +1,25 @@
name: External PR Label
on:
pull_request:
jobs:
external-pr-label:
# if: ${{ github.event.pull_request.head.repo.fork }}
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
pull-requests: write
issues: write
steps:
- name: Add External label
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: | # js
await github.rest.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
labels: ['External']
});