Skip to content

fix(mr list --not-label): do not show MRs with specified label

Jay McCure requested to merge jmc-fix-mr-without-label into main

Description

Fixes the ability to filter MRs by label using mr list --not-label "label". This feature has always been there but the NotLabel options were not being used so the --not-label was being ignored.

Related Issues

Resolves #1157 (closed)

How has this been tested?

Added test for --label and --not-label as there were previously none. Tested manually using the cli repo glab mr list --not-label "Community contribution"

Screenshots (if appropriate):

Comparison of output of glab vs UI

glab mr list --not-label "Community contribution"

Screen_Shot_2022-12-15_at_15.23.10

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation
  • Chore (Related to CI or Packaging to platforms)
Edited by Jay McCure

Merge request reports