We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d07c7dd commit c94917fCopy full SHA for c94917f
.github/workflows/label-triggers.yml
@@ -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