Skip to content

Commit 3b9920c

Browse files
asmyasnikovCopilotCopilot
authored
Added check SLO label workflow (#1957)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com> Co-authored-by: asmyasnikov <14202262+asmyasnikov@users.noreply.github.com>
1 parent b0290dd commit 3b9920c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Check SLO Label
2+
3+
on:
4+
pull_request:
5+
types: [opened, reopened, synchronize, labeled, unlabeled]
6+
7+
jobs:
8+
check-slo-label:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Fail if SLO label is missing
13+
if: "!contains(github.event.pull_request.labels.*.name, 'SLO')"
14+
run: |
15+
echo "PR must have the \"SLO\" label to proceed."
16+
exit 1

0 commit comments

Comments
 (0)