feat(label): edit labels

Description

  1. Added the glab label edit command
  2. Added tests to glab label create command
  3. Added priority as an available parameter when creating label
  4. Improved printing of labels when listing then with glab label list. The output is not a table output.
Before After
Screenshot_2025-11-03_at_6.12.23_PM Screenshot_2025-11-03_at_6.12.15_PM
  1. Added glab label get command
  • feat(label): edit labels

Related Issues

/

How has this been tested?

❯ ./bin/glab label list -R faleksic_ultimate_group/ci-testing
Showing label 2 of 2 on faleksic_ultimate_group/ci-testing.

ID        Name              Description       Color
35685091  major             some description  #FFFFFF
35271898  test-priority::1                    #6699cc

❯ ./bin/glab label edit --label-id=35685091 --color='#ABCDEF' -R faleksic_ultimate_group/ci-testing
Updating "major" label
Updated color: #ABCDEF

❯ ./bin/glab label get 35685091 -R faleksic_ultimate_group/ci-testing
Label ID     35685091
Name         major
Description  some description
Color        #ABCDEF
Priority     0

Screenshots (if appropriate):

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)
  • Test gap

Merge request reports

Loading