Skip to content

Commit 16bd4a7

Browse files
feat: add pr formatting checks (#720)
Signed-off-by: Pavel Borisov <37436896+PavelSBorisov@users.noreply.github.com>
1 parent 3ffd6c6 commit 16bd4a7

1 file changed

Lines changed: 55 additions & 0 deletions

File tree

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: "000: [FLOW] PR Formatting"
2+
on:
3+
pull_request_target:
4+
types:
5+
- assigned
6+
- unassigned
7+
- labeled
8+
- unlabeled
9+
- opened
10+
- reopened
11+
- edited
12+
- converted_to_draft
13+
- ready_for_review
14+
- review_requested
15+
- review_request_removed
16+
- locked
17+
- unlocked
18+
- synchronize
19+
20+
defaults:
21+
run:
22+
shell: bash
23+
24+
permissions:
25+
statuses: write
26+
27+
jobs:
28+
title-check:
29+
name: Title Check
30+
runs-on: network-node-linux-medium
31+
steps:
32+
- name: Harden Runner
33+
uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2.13.2
34+
with:
35+
egress-policy: audit
36+
37+
- name: Check PR Title
38+
uses: step-security/action-semantic-pull-request@bc0cf74f5be4ce34accdec1ae908dff38dc5def1 # v6.1.1
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
42+
assignee-check:
43+
name: Assignee Check
44+
runs-on: network-node-linux-medium
45+
steps:
46+
- name: Harden Runner
47+
uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2.13.2
48+
with:
49+
egress-policy: audit
50+
51+
- name: Check Assignee
52+
if: ${{ github.event.pull_request.assignees == null || github.event.pull_request.assignees[0] == null }}
53+
run: |
54+
echo "Assignee is not set. Failing the workflow."
55+
exit 1

0 commit comments

Comments
 (0)