feat(incident): add incident subscribe command
Description
- add
incident subscribe
command - refactor integration tests using mocks
Note: There are two commits in the MR. First commit moves issue subscribe code into issuable directory. We need to avoid squashing commits on merge to keep the commit history for that file.
Related Issues
Resolves #1356 (closed)
How has this been tested?
- With extended tests
- With the following commands
glab issue subscribe <ISSUE_ID>
glab issue subscribe <INCIDENT_ID
glab incident subscribe <ISSUE_ID>
glab incident subscribe <INCIDENT_ID>
glab incident --help
glab incident subscribe --help
Screenshots (if appropriate):
issue sub | issue sub again | issue sub incident | incident sub incident | incident sub again | incident sub 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