Skip to content

Commit c7e6b65

Browse files
Minor log tweaks
Signed-off-by: Lukasz Gryglicki <[email protected]>
1 parent 52a3556 commit c7e6b65

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

cla-backend/cla/models/github_models.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1957,6 +1957,7 @@ def get_co_author_commits(co_author, commit, pr, installation_id):
19571957
# 3. Try to find user by email
19581958
if user is None:
19591959
try:
1960+
cla.log.debug(f"{fn} - Lookup via GitHub email: {email}")
19601961
user = github.get_github_user_by_email(email, installation_id)
19611962
except (GithubException, IncompletableObject, RateLimitExceededException) as ex:
19621963
# user not found
@@ -1967,6 +1968,7 @@ def get_co_author_commits(co_author, commit, pr, installation_id):
19671968
if user is None:
19681969
try:
19691970
# Note that Co-authored-by: name <email> is not actually a GitHub login but rather a name - but we are trying hard to find a GitHub profile
1971+
cla.log.debug(f"{fn} - Lookup via login=name: {name}")
19701972
user = github.get_github_user_by_login(name, installation_id)
19711973
except (GithubException, IncompletableObject, RateLimitExceededException) as ex:
19721974
# user not found
@@ -2007,7 +2009,7 @@ def get_co_author_commits(co_author, commit, pr, installation_id):
20072009
co_author_summary = UserCommitSummary(
20082010
commit.sha, None, None, name, email, False, False # default not authorized - will be evaluated and updated later
20092011
)
2010-
cla.log.debug(f"{fn} - co-author github user details not found : {co_author}")
2012+
cla.log.debug(f"{fn} - co-author github user details not found: {co_author}")
20112013

20122014
github_user_cache.set((name, email), user)
20132015
return co_author_summary

cla-backend/cla/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1947,7 +1947,7 @@ def get_co_authors_from_commit(commit):
19471947
co_authors = []
19481948
if commit.commit:
19491949
commit_message = commit.commit.message
1950-
cla.log.debug(f"{fn} - commit message: {commit_message}")
1950+
# cla.log.debug(f"{fn} - commit message: {commit_message}")
19511951
if commit_message:
19521952
matches = re.findall(r"co-authored-by: (.*) <(.*)>", commit_message, re.I)
19531953
co_authors = [(name.strip(), email.strip()) for name, email in matches]

utils/copy_prod_case_5.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
./utils/copy_prod_to_dev.sh github-orgs organization_name kubernetes
3+
4+
repo_id=$(STAGE=prod ./utils/scan.sh repositories repository_name 'kubernetes/website' | jq -r '.[0].repository_id.S')
5+
./utils/copy_prod_to_dev.sh repositories repository_id "${repo_id}"
6+
7+
STAGE=dev MODE=put-item ./utils/enable_co_authors_entry.sh 'kubernetes' 'website' t
8+
STAGE=dev MODE=put-item ./utils/skip_cla_entry.sh 'kubernetes' 'website' 'Copilot;re:^\d+\+Copilot@users\.noreply\.github\.com$;copilot-swe-agent[bot]'
9+
10+
STAGE=dev ./utils/scan.sh github-orgs organization_name kubernetes
11+
STAGE=dev ./utils/scan.sh repositories repository_name 'kubernetes/website'

0 commit comments

Comments
 (0)