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

Add release_link to changelog context #1470

Open
1 task
MarcoIeni opened this issue May 19, 2024 · 0 comments
Open
1 task

Add release_link to changelog context #1470

MarcoIeni opened this issue May 19, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@MarcoIeni
Copy link
Owner

Motivations

People to include the release link need to write the following boilerplate:

(https://github.com/me/my-proj/{% if previous.version %}compare/{{ package }}-v{{ previous.version }}...{{ package }}-v{{ version }}{% else %}releases/tag/{{ package }}-v{{ version }}{% endif %})

Solution

Add release_link to context.
Function here:

pub fn git_release_link(&self, prev_tag: &str, new_tag: &str) -> String {

add context here:

.add_context("package", package)

  • update docs. E.g. you could remove this
@MarcoIeni MarcoIeni added enhancement New feature or request good first issue Good for newcomers labels May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant