-
Notifications
You must be signed in to change notification settings - Fork 352
Expand file tree
/
Copy pathtrigger-breaking-change-alert.yaml
More file actions
31 lines (31 loc) · 1.27 KB
/
trigger-breaking-change-alert.yaml
File metadata and controls
31 lines (31 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Trigger Breaking Change Notifications
# `zizmor` always flags these triggers because they are easy to use
# incorrectly. These usages are ok and don't execute any PR-specific
# code (and so aren't susceptible to exploits from forked PRs)
on: # zizmor: ignore[dangerous-triggers]
pull_request_target:
types:
- closed
- reopened
- labeled
- unlabeled
permissions: {}
jobs:
trigger-notifier:
if: contains(github.event.pull_request.labels.*.name, 'breaking')
secrets:
NV_SLACK_BREAKING_CHANGE_ALERT: ${{ secrets.NV_SLACK_BREAKING_CHANGE_ALERT }}
uses: rapidsai/shared-workflows/.github/workflows/breaking-change-alert.yaml@main
with:
sender_login: ${{ github.event.sender.login }}
sender_avatar: ${{ github.event.sender.avatar_url }}
repo: ${{ github.repository }}
pr_number: ${{ github.event.pull_request.number }}
pr_title: "${{ github.event.pull_request.title }}"
pr_body: "${{ github.event.pull_request.body || '_Empty PR description_' }}"
pr_base_ref: ${{ github.event.pull_request.base.ref }}
pr_author: ${{ github.event.pull_request.user.login }}
event_action: ${{ github.event.action }}
pr_merged: ${{ github.event.pull_request.merged }}
permissions:
contents: read