question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question: configuring different issue URL?

See original GitHub issue

I’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:closed
  • Created 7 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
spudheadccommented, Feb 6, 2018

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” } }

1reaction
stevemaocommented, Jun 8, 2016

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 of bugs 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 like

bugs + issueNumber

We can’t parse bugs url because it could be any arbitrary url.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found