Draft Releases with Release Drafter
ciEnableReleaseDrafter defaults to true, so ciGenerateGithubWorkflow generates release-drafter.yml automatically, which runs release-drafter/release-drafter on every push to the release branch to keep a draft GitHub Release up to date with categorized notes for each merged pull request. Set it to false to opt out:
ThisBuild / ciEnableReleaseDrafter := false
The first time the feature generates a release-drafter.yml, ciGenerateGithubWorkflow also scaffolds .github/release-drafter.yml โ release-drafter's own config file โ from ciReleaseDrafterCategories/ciReleaseDrafterExcludeLabels/ciReleaseDrafterAutolabeler/ciReleaseDrafterVersionResolver, if that file doesn't already exist. Unlike every other generated file, it is never rewritten or deleted afterward, even if those settings change or ciEnableReleaseDrafter is turned back off: category/label taxonomy is inherently per-repo and meant to be hand-customized once scaffolded, so ciCheckGithubWorkflow's drift check does not cover it either โ only .github/workflows/release-drafter.yml (the workflow file) participates in that check, the same as ci.yml/auto-approve.yml/auto-merge.yml/deploy-preview.yml.
release-drafter.yml's push trigger runs on ciReleaseDrafterBranch when set, otherwise the first entry of ciEnabledBranches, otherwise main โ GitHub Actions' static on.push.branches list can't use the same default_branch runtime expression this plugin uses elsewhere, so a literal branch name is always required. Repos maintaining multiple release series (e.g. series/2.x) should set ciReleaseDrafterBranch explicitly.
This is purely additive: it does not change ci.yml's own triggers or jobs, and it does not publish the draft release automatically โ a human still does that, which is what fires the existing release: published-gated release jobs. Because the feature defaults to on, a repo that already hand-maintains a release-drafter.yml (release-drafter's own README convention) has that file overwritten by the generated workflow the next time ciGenerateGithubWorkflow runs, exactly like ci.yml โ silently, with no warning, so custom triggers, runs-on or steps are lost. ciCheckGithubWorkflow fails until the regenerated file is committed. The hand-edited .github/release-drafter.yml config file is unaffected. To keep a hand-written workflow, set ciEnableReleaseDrafter := false: when disabled, the plugin only deletes a release-drafter.yml it generated itself โ identified by the "autogenerated" header every generated workflow carries โ and never a hand-written one. To customize the generated workflow instead, use ciReleaseDrafterBranch, ciReleaseDrafterCategories, ciReleaseDrafterExcludeLabels, ciReleaseDrafterAutolabeler and ciReleaseDrafterVersionResolver.