-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Commit Graph: Pull-Requests should not link to issues #15730
Comments
I'm confused because these should have already been being redirected if Gitea was set up correctly. |
What do I have to configure in Gitea other than the external tracker in the repository? If I configure an external tracker, e.g. Redmine, all pull reference links in Gitea (like the automated commit message in merges and now the graph) always redirect to Redmine when clicked, because they use the issue route and not the pulls route. If changing those links to pulls is no option, then they shouldn't be generated as links in the first place when an external tracker is configured, because it is confusing |
By the way, the external tracker uses the same format as Gitea uses for issues/pr: That's why all generated Gitea messages which reference pulls also redirect to the external tracker |
agh crap - now I remember - the external issue tracker vs external pull requests thing is not completely specified. I think we need to pull in @wULLSnpAXbWZGYDYyhWTKKspEQoaYxXyhoisqHf here. How have you configured this? There has to be an explicit way of detecting what we should be linking to. |
the thing is that sometimes you might actually want to link both issues and PRs externally - such as for a mirror. but that's just one use case. another one might be the one OP mentions, where issues are tracked externally but PR's are local. to summarize, I have my own way of using the feature but I recognize there's other uses for it, such as the one mentioned by OP. EDIT: these are just ideas, I understand the implementation might actually be more complicated than this. |
@wULLSnpAXbWZGYDYyhWTKKspEQoaYxXyhoisqHf do your repositories here have the pull requests feature turned off or still turned on? Similarly @MarkusAmshove ? It would be good to see a screenshot of the repository advanced settings sections, eg.: (Clearly censored as necessary.) |
@MarkusAmshove I guess you have pullrequests enabled? If so that hunts at how the square may be circled and we can get a PR that solves both issues |
I can't provide a screenshot yet, but yes:
|
Cool there exists a solution that will make both situations work. |
Description
With Gitea 1.14.0 and #12766 the commit graph (
<repository-url>/graph
) includes links to pull requests instead of the names of the ref's.I like this change a lot, however I can't really use it, because my repositories use an external issue tracker.
The links associated with the pull requests are generated as:
<repository-url>/issues/<pr-id>
The links would work if they were generated as:
<repository-url>/pulls/<pr-id>
The text was updated successfully, but these errors were encountered: