fix(issue): fix using issue commands from non-git dir
Description
Allow using issue
commands from a directory without git initialized.
Here is more detailed explanation on why this is happening #1423 (comment 1502644171)
Related Issues
Resolves #1423 (closed)
How has this been tested?
From any directory with no git initialized in it, run glab issue subscribe <ISSUE_URL>
. That also affects several other issue
subcommands, such as: unsubscribe
, close
, reopen
, and delete
.
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
Closes #1423 (closed)
Merge request reports
Activity
assigned to @ck3g
Reviewer roulette
Changes that require review have been detected! A merge request is normally reviewed by both a reviewer and a maintainer in its primary category and by a maintainer in all other categories.
To spread load more evenly across eligible reviewers, Danger has picked a candidate for each review slot. Feel free to override these selections if you think someone else would be better-suited or use the GitLab Review Workload Dashboard to find other available reviewers.
To read more on how to use the reviewer roulette, please take a look at the Engineering workflow and code review guidelines. Please consider assigning a reviewer or maintainer who is a domain expert in the area of the merge request.
Once you've decided who will review this merge request, mention them as you normally would! Danger does not automatically notify them for you.
Reviewer Maintainer James Liu (
@jamesliu-gitlab
) (UTC+10, 8 hours ahead of@ck3g
)Shekhar Patnaik (
@shekharpatnaik
) (UTC+1, 1 hour behind@ck3g
)Generated by
Danger- Resolved by Shekhar Patnaik
@jamesliu-gitlab could you please review this one? Thank you
requested review from @jamesliu-gitlab
- Resolved by Shekhar Patnaik
requested review from @shekharpatnaik
mentioned in commit 1af82d6c