-
Notifications
You must be signed in to change notification settings - Fork 120
feat: add a info panel for 'limit' option in approval
validator
#512
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #512 +/- ##
==========================================
- Coverage 91.75% 91.72% -0.03%
==========================================
Files 99 99
Lines 2159 2164 +5
Branches 406 406
==========================================
+ Hits 1981 1985 +4
- Misses 154 155 +1
Partials 24 24
Continue to review full report at Codecov.
|
lib/validators/approvals.js
Outdated
teamMembers = _.union(teamMembers, owners) | ||
let validatorContext = { name: 'approvals' } | ||
|
||
output.push(constructOutput(validatorContext, _.union(teams, owners), limitOption, {status: 'info', description: `Only the following teams and users approval will counted`})) |
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.
You can use "Only approvals from following sources are counted." verbiage instead
This will cover all future options in limit
as well
since codeowners is also a part of limit
if set to true
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.
Should we use _.union(teams, owners)
or approvedReviewers
?
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.
i thought input should be a list of user that can approve it rather than the current approvedReviewers
that is counted
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.
do you think approvedReviewers
make more sense here??
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.
Yeah, because input
is already displayed in settings
field in the output
@jusx can you please review this? |
@jusx Can you please review this? |
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.
The informational tip LGTM
see the discussion in #509 (comment)
output
