diff --git a/.sync/workflows/config/release-draft/release-draft-config.yml b/.sync/workflows/config/release-draft/release-draft-config.yml index cec70bc2..073b7fcd 100644 --- a/.sync/workflows/config/release-draft/release-draft-config.yml +++ b/.sync/workflows/config/release-draft/release-draft-config.yml @@ -25,13 +25,9 @@ tag-template: 'v$RESOLVED_VERSION' {# `release_branch` applies a commitish. `latest` then determines the branch to use. -#} {# If a commitish is not specified, then the `github.ref` value is implicitly used. -#} {%- if release_branch %} -{%- set latest_mu_dev_branch = "refs/heads/" + (sync_version.latest_mu_release_branch | replace("release", "dev")) %} -{%- set previous_mu_dev_branch = "refs/heads/" + (sync_version.previous_mu_release_branch | replace("release", "dev")) %} -{% set actual_branch = latest_mu_dev_branch if latest else previous_mu_dev_branch %} -commitish: {{ actual_branch }} +{% set release_branch = "refs/heads/" + (sync_version.latest_mu_release_branch if latest else sync_version.previous_mu_release_branch) %} +commitish: {{ release_branch }} filter-by-commitish: true -include-labels: "type:backport" -latest: {{ latest | string }} {% endif %} template: |