forked from MixedRealityToolkit/MixedRealityToolkit-Unity
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (33 loc) · 1.04 KB
/
pr_labeler.yaml
File metadata and controls
36 lines (33 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: "PR Labeling"
on:
pull_request_target:
types: [opened, closed, synchronize, reopened, edited, ready_for_review]
permissions:
contents: read
pull-requests: write
jobs:
label-pr:
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v8
with:
script: |
if (context.payload.pull_request.base.ref == 'feature/XRI3')
{
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ['Branch: feature/XRI3']
})
}
// When we switch the repo to XRI3, we'll have to edit this.
if (context.payload.pull_request.base.ref == 'main')
{
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ['Branch: main']
})
}