Skip to content

Commit 0b04be4

Browse files
committed
add auto adding labels for opened, reopened, ready_for_review PR based staging or main
1 parent 53c2f12 commit 0b04be4

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/add-labels.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Add Labels to PR
2+
3+
on:
4+
pull_request:
5+
types: [opened, reopened, ready_for_review]
6+
7+
jobs:
8+
add-labels:
9+
runs-on: ubuntu-latest
10+
if: github.event.pull_request.base.ref == 'staging' || github.event.pull_request.base.ref == 'main'
11+
steps:
12+
- name: Add labels to PR
13+
uses: actions-ecosystem/action-add-labels@v1
14+
with:
15+
github_token: ${{ secrets.GITHUB_TOKEN }}
16+
labels: run-bittensor-sdk-tests, run-bittensor-cli-tests

0 commit comments

Comments
 (0)