Question: configuring different issue URL?
See original GitHub issueI’ve tried quite a few approaches and searched around and still can’t seem to get this working, I was wondering if you could help please as I’m sure I must be doing something wrong.
I have a project which is hosted on a private GitLab and use Jira for issues which is hosted elsewhere. Regardless of what I’ve tried, the issue tracker link is always set to eg. http://git@foo.local:group/project/issues/1234
– a strange hybrid of repository.url
.
The notable parts of my package.json are below;
{
"bugs": {
"url": "https://foo.jira.com/browse-3/"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
},
"ghooks": {
"commit-msg": "validate-commit-msg"
}
},
"devDependencies": {
"cz-conventional-changelog": "1.1.6",
"validate-commit-msg": "2.6.1",
"standard-version": "2.3.0"
},
"issue": "https://foo.jira.com/browse-1/",
"issues": "https://foo.jira.com/browse-2/",
"repository": {
"type": "git",
"url": "git@foo.local:group/project.git"
},
"scripts": {
"release": "standard-version"
}
}
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (7 by maintainers)
Top Results From Across the Web
Configuring issue linking | Administering Jira applications ...
You can link Jira issues with each other to create associations. These Jira issues can be on the same Jira installation or another...
Read more >How to Fix URL Problems- 6 Effective Techniques - Appsero
How to Fix URL Problems: 6 Easy Tips to Solve Invalid URL Issues · 1. Clearing Cache · 2. Disable Problematic Extensions ·...
Read more >IIS URL Rewrite and Web.config - asp.net - Stack Overflow
A couple of problems arise: I don't know where to even put the file. There is a User root directory, and an htdocs...
Read more >WordPress – Changing the Site URL and Home Settings
You should not have to change it. Make sure that your permalink settings have been reset as well and clear your browser cache....
Read more >Nginx redirects to port 8080 when accessing url without slash
If someone is still experiencing this problem while having apache behind nginx reverse proxy setup, you could try the ff:
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For future reference you can use a postchangelog lifecycle hook to replace your github url with your jira url.
Something along the line of
“standard-version”: { “scripts”: { “postchangelog”: “replace ‘MY GITHUB URL’ ‘MY JIRA URL’ CHANGELOG.md” } }
Sorry, the idea of this module is meant to be opinionated so it cannot be configured.
I was just trying to explain why it looks for
repository.url
instead ofbugs
entry.How the current system works is something like this:
host
+user
+repo
+issue
+issueNumber
Because we have tools to get git hosted info so we can get a lot of useful information about the url.
user
here is not hard coded to the current project’s user. So if you reference an issue of other repo, eg:Closes otherUser/otherRepo#123
, it can link to that issue too.https://github.com/conventional-changelog/conventional-changelog-angular/blob/master/templates/commit.hbs#L26-L60
If we use the
bugs
entry, we won’t achieve this. We would have to do something likebugs
+issueNumber
We can’t parse
bugs
url because it could be any arbitrary url.