|
73 | 73 |
|
74 | 74 | prefixAreaLabel = flag.Bool("prefix-area-label", true, "If enabled, will prefix the area label.")
|
75 | 75 |
|
| 76 | + preReleaseVersion = flag.Bool("pre-release-version", false, "If enabled, will add a pre-release warning header. (default false)") |
| 77 | + deprecation = flag.Bool("deprecation", true, "If enabled, will add a templated deprecation warning header.") |
76 | 78 | addKubernetesVersionSupport = flag.Bool("add-kubernetes-version-support", true, "If enabled, will add the Kubernetes version support header.")
|
77 | 79 |
|
78 | 80 | tagRegex = regexp.MustCompile(`^\[release-[\w-\.]*\]`)
|
@@ -307,15 +309,34 @@ func run() int {
|
307 | 309 | }
|
308 | 310 | }
|
309 | 311 |
|
| 312 | + if *preReleaseVersion { |
| 313 | + fmt.Printf("🚨 This is a RELEASE CANDIDATE. Use it only for testing purposes. If you find any bugs, file an [issue](https://github.com/%s/issues/new).\n", *repo) |
| 314 | + } |
| 315 | + |
310 | 316 | if *addKubernetesVersionSupport {
|
311 |
| - // TODO Turn this into a link (requires knowing the project name + organization) |
312 | 317 | fmt.Print(`## 👌 Kubernetes version support
|
313 | 318 |
|
314 | 319 | - Management Cluster: v1.**X**.x -> v1.**X**.x
|
315 | 320 | - Workload Cluster: v1.**X**.x -> v1.**X**.x
|
316 | 321 |
|
317 | 322 | [More information about version support can be found here](https://cluster-api.sigs.k8s.io/reference/versions.html)
|
318 | 323 |
|
| 324 | +`) |
| 325 | + } |
| 326 | + |
| 327 | + fmt.Print(`## Highlights |
| 328 | +
|
| 329 | +* REPLACE ME |
| 330 | +
|
| 331 | +`) |
| 332 | + |
| 333 | + if *deprecation { |
| 334 | + fmt.Print(`## Deprecation Warning |
| 335 | +
|
| 336 | +REPLACE ME: A couple sentences describing the deprecation, including links to docs. |
| 337 | +
|
| 338 | +* [GitHub issue #REPLACE ME](REPLACE ME) |
| 339 | +
|
319 | 340 | `)
|
320 | 341 | }
|
321 | 342 |
|
|
0 commit comments