Skip to content

Commit cada696

Browse files
committed
add label-triggers action
1 parent 6efd94b commit cada696

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/label-triggers.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Label Triggers
2+
on:
3+
pull_request:
4+
types:
5+
- labeled
6+
7+
permissions:
8+
issues: write
9+
pull-requests: write
10+
11+
jobs:
12+
comment_on_breaking_change:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Check if 'breaking change' label is added
16+
if: github.event.label.name == 'breaking-change'
17+
uses: actions/github-script@v6
18+
with:
19+
script: |
20+
github.rest.issues.createComment({
21+
issue_number: context.issue.number,
22+
owner: context.repo.owner,
23+
repo: context.repo.repo,
24+
body: '@opentensor/cerebrum / @opentensor/gyrus / @opentensor/cortex breaking change detected! Please prepare accordingly!'
25+
})

0 commit comments

Comments
 (0)