Skip to content

pr status: show number of approvals#4240

Merged
mislav merged 8 commits intocli:trunkfrom
despreston:des/approval-count
Jan 21, 2022
Merged

pr status: show number of approvals#4240
mislav merged 8 commits intocli:trunkfrom
despreston:des/approval-count

Conversation

@despreston
Copy link
Contributor

@despreston despreston commented Aug 30, 2021

This adds the total count of PR approvals in the pr status command output.

Closes #2210
Previously #2261

This commit changes the approval count in the PR status command so that
it only counts the most recent review from each reviewer.
If the base branch has no minimum approval requirements, show "N
Approved" reviews. Otherwise, show "N/X Approved".
@@ -0,0 +1,46 @@
package login
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code looks like it doesn't belong in this PR. You can take it out and force-push to your branch.

@mislav mislav self-assigned this Sep 1, 2021
@mislav mislav added the external pull request originating outside of the CLI core team label Dec 20, 2021
@despreston despreston requested a review from a team as a code owner January 21, 2022 15:47
@despreston despreston requested review from samcoe and removed request for a team January 21, 2022 15:47
Copy link
Contributor

@mislav mislav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've pushed some fixes. Thank you for your patience!

@mislav mislav enabled auto-merge (squash) January 21, 2022 15:55
@mislav mislav merged commit 2e07d0f into cli:trunk Jan 21, 2022
@despreston despreston deleted the des/approval-count branch January 27, 2022 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external pull request originating outside of the CLI core team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Display the number of approvals in 'pr status'

2 participants