From 1ebe05ba390d90ab639e503c68115bb8564b57c7 Mon Sep 17 00:00:00 2001 From: Harold Wanyama Date: Fri, 14 Apr 2023 16:40:04 +0300 Subject: [PATCH] Feature/Ignore Web flow author - Added ignore case for web-flow author Signed-off-by: Harold Wanyama --- cla-backend/cla/models/github_models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cla-backend/cla/models/github_models.py b/cla-backend/cla/models/github_models.py index 443e3035d..db7abb10c 100644 --- a/cla-backend/cla/models/github_models.py +++ b/cla-backend/cla/models/github_models.py @@ -942,7 +942,7 @@ 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 and commit.login != 'web-flow': try: commit_author_summary = UserCommitSummary( commit.sha,