Skip to content
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

Handle approval rules #874

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

prarit
Copy link
Collaborator

@prarit prarit commented Jul 15, 2023

Add the ability to add, delete, and list merge request approval rules.

Closes #835

Signed-off-by: Prarit Bhargava [email protected]

The WebUI provides a mechanism to view the status of MR approval rules on a
specific MR.  Add this functionality to lab.

Usage: 'lab mr approval-rule 1234'

One thing to note is that, unlike the WebUI, lab currently does not show
the 'Commented By' data.  This is because getting the data is expensive,
and at this time provides little functionality.  This can be added if
users request it.

Signed-off-by: Prarit Bhargava <[email protected]>
@prarit prarit force-pushed the handle_approval_rules branch 14 times, most recently from 09f3afb to 4e5957d Compare July 16, 2023 14:23
Functionality exists to create and delete merge request approval rules,
along with the viewing of merge request approval rules.

Add the ability to create and delete merge request approval rules.

Signed-off-by: Prarit Bhargava <[email protected]>
@codecov
Copy link

codecov bot commented Jul 16, 2023

Codecov Report

Patch coverage: 8.25% and project coverage change: -0.82 ⚠️

Comparison is base (2bbd110) 55.56% compared to head (04dfcfe) 54.74%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #874      +/-   ##
==========================================
- Coverage   55.56%   54.74%   -0.82%     
==========================================
  Files          82       83       +1     
  Lines        5977     6081     +104     
==========================================
+ Hits         3321     3329       +8     
- Misses       2367     2464      +97     
+ Partials      289      288       -1     
Impacted Files Coverage Δ
internal/gitlab/gitlab.go 8.09% <0.00%> (-0.24%) ⬇️
cmd/mr_approval_rules.go 11.53% <11.53%> (ø)

... and 2 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

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.

create command to handle approval rules
1 participant