1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-24 04:16:27 +02:00
Hidde Beydals 326a8c885e
feat: support make_latest for GitHub release (#4161)
This commit adds a `make_latest` boolean to the release configuration,
to allow signaling to GitHub if the release should be marked as latest.

Albeit being a boolean, the internal Go type is a string to allow
to distinguish an empty string (default behavior: `true`) from an
explicit `false`.

For more information around the GitHub API field, see

https://docs.github.com/en/rest/releases/releases?apiVersion=2022-11-28#create-a-release

I did not include the `legacy` option, to not adopt something which
appears to be scheduled for removal in the future.

In addition, I opted for `make_latest` over `latest` because the
option is only available for GitHub. Which keeps the latter key
reserved for e.g. future use of a config option which is used across
Git providers.

Fixes #4159

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-07-14 01:45:57 +00:00
..
2023-07-06 16:51:23 +00:00
2023-07-06 16:51:23 +00:00
2023-06-16 13:31:23 -03:00
2023-07-06 16:51:23 +00:00
2023-07-06 16:54:22 +00:00
2023-05-27 00:16:07 -03:00
2023-07-06 16:51:23 +00:00
2023-07-06 16:51:23 +00:00
2023-04-30 00:02:38 +00:00
2023-06-12 12:10:53 +00:00
2023-07-06 16:51:23 +00:00