Repository navigation
Default "create an issue" to create issue in parent repository - #9270
Merged
Merged
Conversation
outofambit
reviewed
Mar 12, 2020
outofambit
left a comment
Contributor
There was a problem hiding this comment.
looks good overall @kuychaco, left one question!
Comment on lines
+1113
to
+1115
| const url = | ||
| this.getParentRepositoryGitHubURL() || | ||
| this.getCurrentRepositoryGitHubURL() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #9232
Description
Currently clicking "Create Issue on GitHub" creates an issue on the current repository opened in Desktop.
With this PR, if the current repo is a fork and the parent repo (upstream) has issues enabled, then clicking "Create Issue on GitHub" creates an issue on the parent/upstream repository.
If there is a parent/upstream and issues are disabled (or the repo has been archived) then the "Create Issue on GitHub" menu item is disabled/greyed out. We believe that in the vast majority of use cases a fork exists in order to allow someone to contribute to the upstream repository, so we assume issue creation is also intended for the upstream repository.
And if there is no parent/upstream associated with the current repository, then clicking "Create Issue on GitHub" creates an issue on the current repository opened in Desktop (current behavior).
Release notes
Notes: