Skip to content

Commit

Permalink
Merge pull request #101 from projectsyn/feat/automerge-patch
Browse files Browse the repository at this point in the history
Auto-merge patch level dependencies in component renovate config
  • Loading branch information
HappyTetrahedron authored May 24, 2024
2 parents b5c430d + d3a8ef1 commit 6bd83e1
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
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
20 changes: 19 additions & 1 deletion {{ cookiecutter.slug }}/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,23 @@
"labels": [
"dependency"
],
"separateMinorPatch": true
"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,
"labels": [
"dependency",
"automerge"
]
}
{% endif %}
{# re: SYN-785 - Later rules take precedence, so add more specific package rules below. #}
]
}

0 comments on commit 6bd83e1

Please sign in to comment.