Skip to content
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

Add autolink support (custom link detection in commit messages) #897

Closed
jonfen opened this issue Nov 5, 2019 · 7 comments
Closed

Add autolink support (custom link detection in commit messages) #897

jonfen opened this issue Nov 5, 2019 · 7 comments
Labels
feature New feature or request

Comments

@jonfen
Copy link

jonfen commented Nov 5, 2019

The default points to the git repo on gitlab, but we use a separate redmine server to handle issues.

@jonfen jonfen added the question label Nov 5, 2019
@eamodio
Copy link
Member

eamodio commented Nov 6, 2019

Currently there really isn't a way to support this -- but I am planning on a more flexible version of the link detection feature that should allow this.

@eamodio eamodio added feature New feature or request and removed question labels Nov 6, 2019
@eamodio eamodio added this to the Soonish™ milestone Nov 6, 2019
@eamodio eamodio changed the title How do we redirect the hovers blame detail's link to a separate server? Add support for custom link detection in commit messages (e.g. hovers) Nov 6, 2019
@eamodio eamodio changed the title Add support for custom link detection in commit messages (e.g. hovers) Add autolink support (custom link detection in commit messages) Nov 11, 2019
@eamodio
Copy link
Member

eamodio commented Nov 11, 2019

Add the ability to create "autolinks" which will match patterns in commit messages and linkify them. For example, if a commit message contains JIRA-123 then turn it into a link like https://jira.github.com/issue?query=123.

Ref: #346

@eamodio eamodio modified the milestones: Soonish™, Soon™ Nov 18, 2019
@jonfen
Copy link
Author

jonfen commented Dec 3, 2019

https://github.com/eamodio/vscode-gitlens#autolink-settings

Works great!

@Sigura
Copy link

Sigura commented Dec 6, 2019

@jonfen I know it closed. But let me please describe one of use case because I'm sure - I'm not alone with this pain.

First thank you for your amazing work!

Precondition: we have a rule - add issue # to commit description (after subject\n\n).
Desired behavior: issue # at current line with link to our tracker

Partially it solved with autolink (thanks again!)

My suggestions:

  • add {issue} template to gitlens.currentLine.format for first found link. It will looks like: ${author} • ${issue} ${message}
  • show commit description in current line too after few seconds below it (without popup) and gitlens.currentLine.inlineDetails for those things

I know it not a main use case and I think it's bunch of work. That is why this message added to closed task. If you have not time or environment for this feature request, just skip it. If any idea or part of it close to you, that is nice for me too.

@eamodio
Copy link
Member

eamodio commented Mar 23, 2020

@Sigura are you asking explicitly for GitHub issues? or something else?

@Noitidart
Copy link

Can autolink be configured based on workspace. If im in X workspace it should open autolink # on github/repo/x?

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 25, 2020
@eamodio eamodio removed this from the Soon™ milestone Dec 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants