Skip to content
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

question: link to both GH PR numbers and external issues #391

Open
wyardley opened this issue Nov 10, 2022 · 0 comments
Open

question: link to both GH PR numbers and external issues #391

wyardley opened this issue Nov 10, 2022 · 0 comments

Comments

@wyardley
Copy link

I have the following config

  - path: '@semantic-release/release-notes-generator'
    preset: conventionalcommits
    presetConfig:
      issuePrefixes:
        - 'FOO-'
        - 'BAR-'
      issueUrlFormat: 'https://linear.app/xyz/issue/{{prefix}}{{id}}'

which works great. However, that means that where before I'd have the changelog link for the GH PR #

* do something (FOO-775) ([#779](https://github.com/xyz/somerepo/issues/779)) ([f885465](https://github.com/xyz/somerepo/commit/f88546534c2d6650674e522bd2e0d3aeca26586a))

Now I have the link to the issue within our issue tracking system (Linear, in this case), and the commit, but not to the PR #:

* do something ([FOO-775](https://linear.app/xyz/issue/FOO-775)) (#779) ([f885465](https://github.com/xyz/somerepo/commit/f88546534c2d6650674e522bd2e0d3aeca26586a))

Is there a way to keep issue / PR #s from GH working while also linking to our issues as well (for example, can I have two different configs for the issue prefixes / url format)?

Also, is there an easy way to regenerate / backfill existing items after changing the config?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant