2021-10-30 14:50:23 +02:00
|
|
|
# Closing Milestones
|
2020-07-09 22:40:37 +02:00
|
|
|
|
2022-09-17 05:13:09 +02:00
|
|
|
GoReleaser can close repository milestones after successfully publishing all
|
|
|
|
artifacts.
|
2020-07-09 22:40:37 +02:00
|
|
|
|
|
|
|
Let's see what can be customized in the `milestones` section:
|
|
|
|
|
|
|
|
```yaml
|
2021-12-23 02:52:01 +02:00
|
|
|
# .goreleaser.yaml
|
2020-07-09 22:40:37 +02:00
|
|
|
milestones:
|
|
|
|
# You can have multiple milestone configs
|
|
|
|
-
|
|
|
|
# Repository for the milestone
|
|
|
|
# Default is extracted from the origin remote URL
|
|
|
|
repo:
|
|
|
|
owner: user
|
|
|
|
name: repo
|
|
|
|
|
|
|
|
# Whether to close the milestone
|
|
|
|
# Default is false
|
|
|
|
close: true
|
|
|
|
|
2021-11-21 17:34:28 +02:00
|
|
|
# Fail release on errors, such as missing milestone.
|
2020-07-09 22:40:37 +02:00
|
|
|
# Default is false
|
|
|
|
fail_on_error: true
|
|
|
|
|
|
|
|
# Name of the milestone
|
|
|
|
# Default is `{{ .Tag }}`
|
|
|
|
name_template: "Current Release"
|
|
|
|
```
|
|
|
|
|
|
|
|
!!! tip
|
2020-11-19 22:31:26 +02:00
|
|
|
Learn more about the [name template engine](/customization/templates/).
|