File tree 2 files changed +12
-2
lines changed
2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: global checks
3
3
on : pull_request
4
4
5
5
jobs :
6
- hello :
6
+ global_checks :
7
7
runs-on : ubuntu-latest
8
8
steps :
9
9
- name : Check out target repository
20
20
pip install strictyaml
21
21
- name : Check that there is a CODEOWNERS file
22
22
run : |
23
- echo "Check whether the repo has a codeowners file"
23
+ echo "Check whether the repo has a .github/CODEOWNERS file"
24
24
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
25
29
- name : Check that the committers are from devrev.ai
26
30
run : |
27
31
echo "Get the email addresses of the committers"
Original file line number Diff line number Diff line change 2
2
3
3
EMAILS_PATH = ".global-checks-tooling/committers.txt"
4
4
5
+ WHITELIST = [
6
+
7
+ ]
8
+
5
9
# Check that the emails in the file are from @devrev.ai.
6
10
def check_commit_emails ():
7
11
"""
@@ -16,6 +20,8 @@ def check_commit_emails():
16
20
17
21
for email in emails :
18
22
email = email .strip ()
23
+ if email in WHITELIST :
24
+ continue
19
25
if not email .endswith ("@devrev.ai" ):
20
26
print (f"Error: Non devrev.ai email { email } in committers list." )
21
27
return False
You can’t perform that action at this time.
0 commit comments