Skip to content

Commit c94917f

Browse files
committed
notify cerebrum upon a breaking change
1 parent d07c7dd commit c94917f

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/label-triggers.yml

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

0 commit comments

Comments
 (0)