Skip to content

feat(incident): add incident unsubscribe command

Vitali Tatarintev requested to merge add-incident-unsubscribe-command into main

Description

  • add incident unsubscribe command
  • refactor integration tests using mocks
  • add a couple utility functions

Note: There are two commits in the MR. First commit moves issue close code into issuable directory. We need to avoid squashing commits on merge to keep the commit history for that file.

Related Issues

Resolves #1325 (closed)

How has this been tested?

  • With extended tests
  • With the following commands
    • glab issue unsubscribe <ISSUE_ID>
    • glab issue unsubscribe <INCIDENT_ID
    • glab incident unsubscribe <ISSUE_ID>
    • glab incident unsubscribe <INCIDENT_ID>
    • glab incident --help
    • glab incident unsubscribe --help

Screenshots (if appropriate):

issue unsub issue unsub again issue unsub incident incident unsub incident incident unsub again incident unsub issue
Screenshot_2023-05-04_at_15.00.35 Screenshot_2023-05-04_at_15.00.43 Screenshot_2023-05-04_at_15.00.56 Screenshot_2023-05-04_at_15.01.15 Screenshot_2023-05-04_at_15.01.27 Screenshot_2023-05-04_at_15.01.46

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
Edited by Vitali Tatarintev

Merge request reports