Skip to content

Commit

Permalink
[communitybridge#3844] Bug/Web Flow
Browse files Browse the repository at this point in the history
- Ignore web flow commit author

Signed-off-by: Harold Wanyama <[email protected]>
  • Loading branch information
Harold Wanyama authored and nickmango committed Apr 19, 2023
1 parent 5976327 commit 1bc3c20
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cla-backend/cla/models/github_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -942,8 +942,11 @@ def get_pull_request_commit_authors(pull_request) -> List[UserCommitSummary]:
cla.log.debug(f'{fn} - Processing commit while looking for authors, commit: {commit.sha}')
# Note: we can get the author info in two different ways:
# https://pygithub.readthedocs.io/en/latest/github_objects/NamedUser.html
if commit.author:
if commit.author :
try:
if 'web-flow' in commit.author.login:
cla.log.debug(f'{fn} - Skipping web-flow user: {commit.author.login}')
continue
commit_author_summary = UserCommitSummary(
commit.sha,
commit.author.id,
Expand Down

0 comments on commit 1bc3c20

Please sign in to comment.