Skip to content

Commit

Permalink
Sync dev branch release drafter config files
Browse files Browse the repository at this point in the history
  • Loading branch information
makubacki committed Nov 18, 2024
1 parent 60d1ae3 commit edb88c8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
14 changes: 14 additions & 0 deletions .sync/Files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,26 @@ group:
- source: .sync/workflows/config/release-draft/release-draft-config.yml
dest: .github/release-draft-config-n.yml
template:
filter_to_backport: true
latest: true
release_branch: true
- source: .sync/workflows/config/release-draft/release-draft-config.yml
dest: .github/release-draft-config-n-dev.yml
template:
filter_to_backport: false
latest: true
release_branch: true
- source: .sync/workflows/config/release-draft/release-draft-config.yml
dest: .github/release-draft-config-n-1.yml
template:
filter_to_backport: true
latest: false
release_branch: true
- source: .sync/workflows/config/release-draft/release-draft-config.yml
dest: .github/release-draft-config-n-1-dev.yml
template:
filter_to_backport: false
latest: true
release_branch: true
repos: |
makubacki/mu_basecore
7 changes: 4 additions & 3 deletions .sync/workflows/config/release-draft/release-draft-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,12 @@ tag-template: 'v$RESOLVED_VERSION'
{%- 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 %}
{%- set actual_branch = latest_mu_dev_branch if latest else previous_mu_dev_branch %}
commitish: {{ actual_branch }}
filter-by-commitish: true
include-labels: "type:backport"
latest: {{ latest | string }}
{%- if filter_to_backport %}
include-labels: ["type:backport"]
{% endif %}
{% endif %}

template: |
Expand Down

0 comments on commit edb88c8

Please sign in to comment.