-
-
Notifications
You must be signed in to change notification settings - Fork 105
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
Auto-link to GitHub issue in Markdown #65
Comments
Is this necessary to only works if github integration is enabled? (I use Phabricator link structure in this example) issueLink: http://management.company.com/T#ISSUE_ID# In your example the link for ths issue will be the following: http://management.company.com/T123 |
+1 @Zolli's idea. I'm currently trying to implement Couscous into a new release documentation system, but we don't use GitHub at my organization. Having customizable issue links when deploying to something other than GitHub would be fantastic. If I find time, I might be able to submit the pull request to do both GitHub and custom integration, as it's important to me. |
Sounds fair, and doable I guess. There has been a new release hours ago of the commonmark parser, and with the new AST and extension system it seems way easier than before to implement that. For example there is a "twitter auto-linker" plugin: https://github.com/thephpleague/commonmark-extras/blob/master/src/TwitterHandleAutolink/TwitterHandleParser.php We still need Markdown Extra support however before being able to switch to this Markdown parser :/ (see #134). |
Currently, i try to create a Step that replaces issue numbers but i run into a problem with this :)
There is 2 possible soluton:
This raises some inconsistency across projects, so I do not recommend this. |
@Zolli I haven't looked into the details of the parser but isn't that possible to register |
@mnapoli i think of that, but what if the user want to place the issue number to the beginning of the line? That is a big limitation. Example:
|
Actually I just realized that |
GitHub will automatically create a link to an issue in Markdown with text like this:
Couscous could support the same behavior and turn
#123
into[#123](https://github.com/CouscousPHP/Couscous/issues/123)
.It would only work if the GitHub project is configured in
couscous.yml
, e.g.:(same options that what's used in the default template)
The text was updated successfully, but these errors were encountered: