minetest / contentdb

A content database for Minetest mods, games, and more
https://content.minetest.net
GNU Affero General Public License v3.0
95 stars 46 forks source link

Automatically retrieve release notes if "Release Notes" field is left empty #545

Open Zughy opened 3 months ago

Zughy commented 3 months ago

Problem

Release notes are a great addition, but right now I have to write them twice (on GitLab first and then on CDB)

Solutions

Title. It'd be handy if CDB could automatically retrieve the release notes, as it already does with other fields

Alternatives

don't (?)

fgaz commented 3 months ago

+1! Specifically I'd like if release notes were extracted from git tag annotations (example), which is a forge-agnostic way to attach a description to a tag. This way, there is no need to add support for gitlab releases, forgejo releases, github releases etc

rubenwardy commented 3 months ago

I don't think GitHub releases edit the tag annotations right? So there's not a universal solution

rubenwardy commented 3 months ago

Not deployed yet, but:

Git Update Detection now uses the annotated tag for release notes. I'll try and find the tag when making releases using other methods (IE: API or web interface). I'll look into what GitHub/GitLab does with releases

This may be controversial but it also uses the commit log if no other release notes could be found. I'll monitor this and disable if it turns out pretty useless

fgaz commented 3 months ago

I don't think GitHub releases edit the tag annotations right? So there's not a universal solution

I think the opposite (since the tag comes first) is doable. With the help of github actions if not natively