Skip to content
Snippets Groups Projects
Commit 56bfdfe0 authored by Yen-Chen Chen's avatar Yen-Chen Chen Committed by Pradipta Samanta
Browse files

Set changelog search util current commit (!49)

## What is the new feature
Make a changelog API that searches for changelogs until the target commit. This way, we can manage the versions more easily.
## How is it implemented
In the GitLab [Changelog API](https://docs.gitlab.com/api/repositories/#generate-changelog-data

), the default `from` attribute is the last tag, which is exactly what we wanted. The default `to` attribute is the latest commit at the default branch. We change it to the target commit where we create the tag.

Merged-by: default avatarPradipta Samanta <samanta@dkrz.de>
Changelog: other
parent bf3e9ea4
No related branches found
No related tags found
1 merge request!49Set changelog search util current commit
Pipeline #101530 passed
...@@ -245,7 +245,7 @@ Prepare Changelog: ...@@ -245,7 +245,7 @@ Prepare Changelog:
script: script:
- apk add curl jq - apk add curl jq
# generate release note # generate release note
- 'curl -H "PRIVATE-TOKEN: $CI_API_TOKEN" "$CI_API_V4_URL/projects/$CI_PROJECT_ID/repository/changelog?version=$CI_COMMIT_TAG" | jq -r .notes > release_notes.md' - 'curl -H "PRIVATE-TOKEN: $CI_API_TOKEN" "$CI_API_V4_URL/projects/$CI_PROJECT_ID/repository/changelog?version=$CI_COMMIT_TAG&to=$CI_COMMIT_SHA" | jq -r .notes > release_notes.md'
tags: tags:
# choose runner # choose runner
- alpine - alpine
......
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