Skip to content

Commit

Permalink
notify cerebrum upon a breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
sam0x17 committed Apr 26, 2024
1 parent d07c7dd commit c94917f
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/label-triggers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Label-based Triggers
on:
pull_request_target:
types:
- labeled

jobs:
comment_on_breaking_change:
runs-on: ubuntu-latest
steps:
- name: Check if 'breaking change' label is added
if: github.event.label.name == 'breaking-change'
uses: actions/github-script@v6
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '@opentensor/cerebrum breaking change detected! Please review the changes
and prepare accordingly!'
})

0 comments on commit c94917f

Please sign in to comment.