Skip to content

Commit 34c0b1f

Browse files
committed
Rename workflow.
Add missing repo.yml check. Create whitelist for "[email protected]".
1 parent 27331df commit 34c0b1f

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.github/workflows/global-checks.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: global checks
33
on: pull_request
44

55
jobs:
6-
hello:
6+
global_checks:
77
runs-on: ubuntu-latest
88
steps:
99
- name: Check out target repository
@@ -20,8 +20,12 @@ jobs:
2020
pip install strictyaml
2121
- name: Check that there is a CODEOWNERS file
2222
run: |
23-
echo "Check whether the repo has a codeowners file"
23+
echo "Check whether the repo has a .github/CODEOWNERS file"
2424
python .global-checks-tooling/checks/check_codeowners.py
25+
- name: Check that there is a valid repo.yml file
26+
run: |
27+
echo "Check whether the repo has a valid .devrev/repo.yml file"
28+
python .global-checks-tooling/checks/check_repo_yml.py
2529
- name: Check that the committers are from devrev.ai
2630
run: |
2731
echo "Get the email addresses of the committers"

checks/check_commit_emails.py

+6
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
EMAILS_PATH = ".global-checks-tooling/committers.txt"
44

5+
WHITELIST = [
6+
7+
]
8+
59
# Check that the emails in the file are from @devrev.ai.
610
def check_commit_emails():
711
"""
@@ -16,6 +20,8 @@ def check_commit_emails():
1620

1721
for email in emails:
1822
email = email.strip()
23+
if email in WHITELIST:
24+
continue
1925
if not email.endswith("@devrev.ai"):
2026
print(f"Error: Non devrev.ai email {email} in committers list.")
2127
return False

0 commit comments

Comments
 (0)