feat(incident): add incident unsubscribe command
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 |
---|---|---|---|---|---|
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