... | ... | @@ -71,6 +71,26 @@ packages directory. Older versions remain archived in: |
|
|
|
|
|
/var/www/archives/packages/archives
|
|
|
|
|
|
## Update the RELEASE_NOTES.txt
|
|
|
|
|
|
As proposed [here](https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/-/issues/1953#note_80787).
|
|
|
|
|
|
The release note is divided into five categories: Feature, Bug, Refactoring, CI, and Documentation.
|
|
|
|
|
|
Make sure all the MR related to this release are attributed to the corresponding [milestone](https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/-/milestones). Assigned a label (~feature, ~bug, ~refactoring, ~CI or ~documentation) to each MR that do not already have one of these labels.
|
|
|
|
|
|
Generate the release notes category by category, using the gitlab API and the `jq` command line program (json processing). For example, to fetch all %7.0.0 MR labeled ~feature:
|
|
|
|
|
|
```bash
|
|
|
curl "https://gitlab.orfeo-toolbox.org/api/v4/projects/53/merge_requests?state=merged&milestone=7.0.0&per_page=100&labels=feature&page=1" | jq '.[] | "Merge Request !"+(.iid|tostring)+": " + .title+" by "+.author.name'
|
|
|
```
|
|
|
|
|
|
Some cleaning may be needed:
|
|
|
|
|
|
* Add some postprocessing to remove extra `" "` and `\` from the output of the command
|
|
|
* It seems that the gitlab API limits the number of item (MR) by page to 100. For labels with more than 100 items, we need to call the command twice, once with the `&page=1` option and once with `&page=2`.
|
|
|
* Some MRs are listed several times in the release note, when they have multiple labels (e.g. ~bug and ~feature). I don't think this is an issue.
|
|
|
|
|
|
## Spelling check
|
|
|
|
|
|
This is a simple script to run, but it should be run from its directory.
|
... | ... | |