Skip to content
Snippets Groups Projects
Commit 0730681b authored by Nat Goodspeed's avatar Nat Goodspeed Committed by nat-goodspeed
Browse files

Fold PR labeling into existing label.yaml.

parent 36fff90f
No related branches found
No related tags found
No related merge requests found
......@@ -13,3 +13,18 @@ jobs:
with:
configuration-path: .github/labeler.yaml
repo-token: "${{ secrets.GITHUB_TOKEN }}"
label-pr:
if:
${{ github.event_name == 'opened' &&
github.event.pull_request.head.repo.owner.login == 'secondlife' }}
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- run: gh pr edit "$NUMBER" --add-label "$LABELS"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.pull_request.number }}
LABELS: "team:viewer"
name: Label PR with team:viewer when first opened
on:
pull_request:
types:
- opened
jobs:
label_pr:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- run: gh pr edit "$NUMBER" --add-label "$LABELS"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.pull_request.number }}
LABELS: "team:viewer"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment