Skip to content

Commit

Permalink
add label-triggers action
Browse files Browse the repository at this point in the history
  • Loading branch information
sam0x17 committed May 10, 2024
1 parent 6efd94b commit cada696
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/label-triggers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Label Triggers
on:
pull_request:
types:
- labeled

permissions:
issues: write
pull-requests: write

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 / @opentensor/gyrus / @opentensor/cortex breaking change detected! Please prepare accordingly!'
})

0 comments on commit cada696

Please sign in to comment.