-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use case-insensitive string comparison for fast-track approvals (#…
…658) I noticed today that a PR that had sufficient fast-track approvals was being rejected as needing one more approval. This is because one of the approvers' had a GitHub handle where the case in the README (`linkgoron`) did not match the case returned by GitHub (`Linkgoron`). Since GitHub handles are case-insensitive, this change makes the comparison case-insensitive. One might be tempted to think that we need to do the same for the list of TSC members, but handles are never compared there so it is not necessary.
- Loading branch information
Showing
4 changed files
with
68 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
test/fixtures/comments_with_two_fast_track_different_case.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[ | ||
{ | ||
"publishedAt": "2017-10-22T05:16:36.458Z", | ||
"bodyText": "Fast-track has been requested by @bar. Please 👍 to approve.", | ||
"author": { | ||
"login": "github-actions" | ||
}, | ||
"reactions": { | ||
"nodes": [ | ||
{ "user": { "login": "Bar" } }, | ||
{ "user": { "login": "Foo" } }, | ||
{ "user": { "login": "BAZ" } } | ||
] | ||
} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters