Closed tetafro closed 3 years ago
Greetings Denis. Not right now to the best of my knowledge.
There is a token for grabbing parts of the gitorigin.hostname
, but none for the path. Perhaps it could be added.
A version with a new token has been uploaded and will be available shortly.
${gitorigin.path,n}
- the nth part of the git origin path (e.g. if the git origin ishttps://github.com/ckb-next/ckb-next.git
${gitorigin.path,1}
will returnckb-next.git
Great, thanks. If somebody is looking for self-hosted bitbucket commitUrl, this one works for me:
https://company.com/projects/${gitorigin.path,1}/repos/${gitorigin.path,2}/commits/${hash}
Hi. My current
project.remote
looks like this:Is there any way to make commitUrl look like this?