-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add unique github id check #96
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #96 +/- ##
============================================
+ Coverage 86.84% 86.87% +0.02%
- Complexity 317 318 +1
============================================
Files 69 69
Lines 1764 1767 +3
Branches 79 80 +1
============================================
+ Hits 1532 1535 +3
Misses 195 195
Partials 37 37 ☔ View full report in Codecov by Sentry. |
maintainersList.add(maintainerData); | ||
if(!maintainerIdSet.contains(githubId)){ // Add only unique github ids | ||
maintainerIdSet.add(githubId); | ||
maintainersList.add(maintainerData); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After added to maintainerIdSet
, where is this maintainerIdSet
used? Still I see as maintainersList.add(maintainerData);
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line 257 to check if the id is within the set
import java.util.List; | ||
import java.util.Map; | ||
import java.util.Optional; | ||
import java.util.*; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better not to use the .*;
.
Thanks
0eb6218
to
f8967e2
Compare
Signed-off-by: Brandon Shien <[email protected]>
f8967e2
to
dee9e74
Compare
Description
Add unique github id check when scraping MAINTAINERS.md file in case of duplicate github ids.
Issues Resolved
Part of #75
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.