Skip to content

Commit 81105de

Browse files
committed
Clear CI committer usernames in git interface tests
GitHub Actions sets GITHUB_ACTOR, which get_formatted_committer prefers over the commit's committer, so the --commit-sha committer test failed in CI.
1 parent 0bcb47f commit 81105de

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎tests/unit/test_git_interface.py‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@
3434
"BITBUCKET_COMMIT",
3535
"BITBUCKET_PR_DESTINATION_BRANCH",
3636
"BITBUCKET_PR_ID",
37+
# get_formatted_committer prefers these CI usernames over the commit's
38+
# committer, and GitHub Actions sets GITHUB_ACTOR on every run.
39+
"GITHUB_ACTOR",
40+
"GITLAB_USER_LOGIN",
41+
"BITBUCKET_STEP_TRIGGERER_UUID",
3742
)
3843

3944

0 commit comments

Comments
 (0)