Skip to content

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 prarit@redhat.com

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 <prarit@redhat.com>
@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 <prarit@redhat.com>
@prarit prarit force-pushed the handle_approval_rules branch from 4e5957d to 04dfcfe Compare July 16, 2023 14:32
@codecov
Copy link

codecov bot commented Jul 16, 2023

Codecov Report

❌ Patch coverage is 8.25688% with 100 lines in your changes missing coverage. Please review.
✅ Project coverage is 54.74%. Comparing base (2bbd110) to head (04dfcfe).
⚠️ Report is 27 commits behind head on master.

Files with missing lines Patch % Lines
cmd/mr_approval_rules.go 11.53% 69 Missing ⚠️
internal/gitlab/gitlab.go 0.00% 31 Missing ⚠️
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     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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