Skip to content
Snippets Groups Projects
Commit f72c509e authored by Santiago Ospina De Los Ríos's avatar Santiago Ospina De Los Ríos
Browse files

Fix links in Changelog [skip-ci]

parent 10ce9fa9
No related branches found
No related tags found
1 merge request!14Resolve "Include Semantic Versioning"
Pipeline #21740 skipped
......@@ -32,5 +32,5 @@ Types of changes
- [Semantic Versioning](https://semver.org/spec/v2.0.0.html)
- Solver for reaction-diffusion systems in multiple compartments.
[Unreleased]: https://gitlab.dune-project.org/copasi/dune-copasi/0.1.0...master
[Unreleased]: https://gitlab.dune-project.org/copasi/dune-copasi/compare/v0.1.0...master
[0.1.0]: https://gitlab.dune-project.org/copasi/dune-copasi/-/tags/v0.1.0
\ No newline at end of file
......@@ -60,7 +60,7 @@ def main(argv):
prefix = 'Version: '
update_version(dune_version_path,prefix+old_version,prefix+new_version)
project_url = "https://gitlab.dune-project.org/copasi/dune-copasi/"
project_url = "https://gitlab.dune-project.org/copasi/dune-copasi"
with open(changelog_path, "r") as changelog_file:
new_changelog = ''
......@@ -69,9 +69,9 @@ def main(argv):
new_changelog += line +"\n"
new_changelog += "## [" + new_version+ "] - " + datetime.date.today().isoformat() + "\n"
elif "[Unreleased]: " + project_url in line:
new_changelog += "[Unreleased]: " + project_url+new_version+"...master\n"
new_changelog += "[Unreleased]: " + project_url+"/compare/v"+new_version+"...master\n"
elif "["+old_version+"]: " + project_url in line:
new_changelog += "["+new_version+"]: "+project_url+old_version+"..."+new_version+"\n"
new_changelog += "["+new_version+"]: "+project_url+"/compare/v"+old_version+"..."+new_version+"\n"
new_changelog += line
else:
new_changelog += line
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment