Skip to content

feat(incident): add incident subscribe command

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

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
Screenshot_2023-06-13_at_15.24.31 Screenshot_2023-06-13_at_15.25.01 Screenshot_2023-06-13_at_15.25.30 Screenshot_2023-06-13_at_15.26.00 Screenshot_2023-06-13_at_15.26.15 Screenshot_2023-06-13_at_15.26.29

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