Skip to content

Commit 5050863

Browse files
authored
Create require-codeowners.yml (#10)
* Create require-codeowners.yml
1 parent 0639b3b commit 5050863

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Check for CODEOWNERS
2+
3+
on:
4+
# Runs on a pull request for the main branch (we use
5+
# 'pull_request_target' instead of 'pull_request' so
6+
# it also works for forks, since the secrets would
7+
# otherwise not be available for forks.
8+
pull_request_target:
9+
types:
10+
# Default events
11+
- opened
12+
- synchronize
13+
- reopened
14+
# But we also want to make sure a potential
15+
# exception request pull request is getting
16+
# closed if any was open
17+
- closed
18+
branches:
19+
- main
20+
- master
21+
# Runs on a merge group build
22+
merge_group:
23+
24+
permissions:
25+
contents: read
26+
27+
concurrency:
28+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
29+
cancel-in-progress: false
30+
31+
jobs:
32+
check:
33+
name: Check for CODEOWNERS
34+
35+
runs-on: ubuntu-latest
36+
37+
steps:
38+
- name: Checkout repo
39+
uses: actions/checkout@v4
40+
with:
41+
sparse-checkout: |
42+
CODEOWNERS
43+
.github/CODEOWNERS
44+
sparse-checkout-cone-mode: false

0 commit comments

Comments
 (0)