summaryrefslogtreecommitdiff
path: root/.github/workflows/label.yaml
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2024-01-12 13:48:08 -0500
committernat-goodspeed <nat@lindenlab.com>2024-01-12 17:26:46 -0500
commit0730681b8a419d0122a20cc1fe7e520386d0836b (patch)
tree50d147501ceb591e78cabeb846167e6de988caa7 /.github/workflows/label.yaml
parent36fff90f90571ab2d225a4dbd61d2319e8324fc6 (diff)
Fold PR labeling into existing label.yaml.
Diffstat (limited to '.github/workflows/label.yaml')
-rw-r--r--.github/workflows/label.yaml15
1 files changed, 15 insertions, 0 deletions
diff --git a/.github/workflows/label.yaml b/.github/workflows/label.yaml
index 6e41d8aa2d..e19477a533 100644
--- a/.github/workflows/label.yaml
+++ b/.github/workflows/label.yaml
@@ -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"