-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Gerrit: parse change-ids in the whole message body, not only in the footer #2251
Comments
TY |
Sorry, @eamodio, I wrongly assumed that Gitlens supported some kind of regex-based autolinks reference, but unfortunately it does not as of now. It has been previously suggested/reported:
So, I can say that this depends on that to be implemented first. This is to say: please don't expect a PR from me in the short-term anymore. If anyone else wants to work on this issue (or the referenced issues), feel totally free. |
@felipecrs thanks -- I haven't had a chance to look at that PR yet as we are focused on getting GitLens 13 out early next week. But I did want to mention that built-in remote providers can provide their own tokenization/parsing for autolinks, see vscode-gitlens/src/git/remotes/github.ts Lines 56 to 122 in 6db29c1
|
@eamodio Thanks for the heads up. This is really cool and I could definitely make use of it to fix the Gerrit specific issue. However, it would be even nicer if we could get the Support user-defined regex for auto-links as we could solve many issues at once, including this one for Gerrit. |
In Gerrit commit messages, you can include as many change ids as you want. Gerrit's UI will add a hyperlink to each change id found. See:
However, Gitlens currently only parses the last one, in the footer:
PS: I'm working on a PR.Edit: not anymore.The text was updated successfully, but these errors were encountered: