Skip to content

Conversation

@makubacki
Copy link
Member

Description

The add_reviewers_to_pr() function in GitHub.py did not compare all usernames without case sensitivity which could cause a reviewer that has already reviewed a pull request to be re-requested.

The occurred under the following conditions:

  • GetMaintainer.py returns usernames from Maintainers.txt (e.g. "user")
  • GitHub API returns usernames in their actual case (e.g. "User")
  • The exclusion filter used case-sensitive comparison so the match is not detected

Fixed by converting the exclusion set to lowercase and performing case-insensitive comparison when filtering for new reviewers.

  • Breaking change?
  • Impacts security?
  • Includes tests?

How This Was Tested

Integration Instructions

  • N/A

The `add_reviewers_to_pr()` function in GitHub.py did not compare
all usernames without case sensitivity which could cause a reviewer
that has already reviewed a pull request to be re-requested.

The occurred under the following conditions:

- GetMaintainer.py returns usernames from Maintainers.txt
  (e.g. "user")
- GitHub API returns usernames in their actual case (e.g. "User")
- The exclusion filter used case-sensitive comparison so the match
  is not detected

Fixed by converting the exclusion set to lowercase and performing
case-insensitive comparison when filtering for new reviewers.

Signed-off-by: Michael Kubacki <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants