Skip to content

Commit 8d225f5

Browse files
authored
Auto label PRs with the ray-api label (#845)
* Add small workflow to auto-label all pr's targeting main with the ray-api label Signed-off-by: Ayush Dattagupta <ayushdg95@gmail.com> * Fix newline Signed-off-by: Ayush Dattagupta <ayushdg95@gmail.com> --------- Signed-off-by: Ayush Dattagupta <ayushdg95@gmail.com>
1 parent 0db2ce0 commit 8d225f5

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/auto-labler.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Label PRs to main
2+
3+
on:
4+
pull_request:
5+
branches: [main] # base branch filter
6+
7+
permissions:
8+
pull-requests: write # needed to add labels
9+
10+
jobs:
11+
add-ray-api-label:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Add ray-api label
15+
uses: actions-ecosystem/action-add-labels@v1
16+
with:
17+
github_token: ${{ secrets.GITHUB_TOKEN }}
18+
labels: ray-api

0 commit comments

Comments
 (0)