Skip to content

Commit

Permalink
Make patch automerging disable-able
Browse files Browse the repository at this point in the history
  • Loading branch information
HappyTetrahedron committed May 24, 2024
1 parent 7b60589 commit d3a8ef1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cookiecutter.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
"add_matrix": "y",
"add_go_unit": "n",

"automerge_patch": "y",
"automerge_patch_v0": "n",

"copyright_holder": "VSHN AG <[email protected]>",
"copyright_year": "1950",

Expand Down
4 changes: 4 additions & 0 deletions {{ cookiecutter.slug }}/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,12 @@
],
"separateMinorPatch": true,
"packageRules": [
{% if cookiecutter.automerge_patch == "y" %}
{
"matchUpdateTypes": ["patch"],
{% if cookiecutter.automerge_patch_v0 != "y" %}
"matchCurrentVersion": "!/^v?0\\./",{# negative match: do not match versions that match regex `^v?0\.` #}
{% endif %}
"automerge": true,
{# We can't use Platform Automerge because the repositories are configured manually, so we can't be sure the "require status checks" option is always enabled, and without that, platformAutomerge does not wait for tests to pass. #}
"platformAutomerge": false,
Expand All @@ -37,6 +40,7 @@
"automerge"
]
}
{% endif %}
{# re: SYN-785 - Later rules take precedence, so add more specific package rules below. #}
]
}

0 comments on commit d3a8ef1

Please sign in to comment.