Skip to content

Commit c11dbfd

Browse files
authored
release-3.23: disable renovate automerge (#2612)
* ROX-31317: disable mintmaker auto-approvals for release branches (#2609) * fix merge conflicts
1 parent bdb0dc0 commit c11dbfd

File tree

2 files changed

+25
-17
lines changed

2 files changed

+25
-17
lines changed

.github/renovate.json5

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -72,19 +72,27 @@
7272
"dockerfile",
7373
"rpm-lockfile",
7474
],
75-
"packageRules": [{
76-
"matchPackageNames": ["/.*/"],
77-
"groupName": "All updates",
78-
"automerge": true,
79-
// A known issue is that some non-Konflux CI jobs in currently fail, which may prevent successful auto-merging with a "branch" auto-merge setting.
80-
// Therefore, we use PR merge type and have automation approve PRs.
81-
"automergeType": "pr",
82-
"automergeStrategy": "squash",
83-
// Tell Renovate that it can automerge branches at any time of the day.
84-
"automergeSchedule": [
85-
"at any time"
86-
],
87-
"platformAutomerge": true,
88-
}],
89-
"labels": ["auto-approve", "build-builder-image", "rebuild-test-container"],
75+
"packageRules": [
76+
{
77+
"matchPackageNames": [
78+
"*",
79+
],
80+
"groupName": "All updates",
81+
"automerge": true,
82+
// A known issue is that some non-Konflux CI jobs currently fail, which may prevent successful auto-merging with a "branch" auto-merge setting.
83+
// Therefore, we use PR merge type and have automation approve PRs.
84+
"automergeType": "pr",
85+
"automergeStrategy": "squash",
86+
// Tell Renovate that it can automerge branches at any time of the day.
87+
"automergeSchedule": [
88+
"at any time",
89+
],
90+
}
91+
],
92+
"labels": [
93+
// Add auto-approve label which triggers the corresponding workflow.
94+
"auto-approve",
95+
"build-builder-image",
96+
"rebuild-test-container",
97+
],
9098
}

.github/workflows/auto-approve.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ on:
77

88
jobs:
99
auto-approve:
10-
name: Auto-approve Konflux updates
10+
name: Auto-approve Konflux updates for default branch
1111
runs-on: ubuntu-latest
12-
if: github.actor == 'red-hat-konflux[bot]' && github.event.label.name == 'auto-approve'
12+
if: github.actor == 'red-hat-konflux[bot]' && github.event.label.name == 'auto-approve' && github.event.pull_request.base.ref == github.event.pull_request.base.repo.default_branch
1313
steps:
1414
- env:
1515
GH_TOKEN: ${{ secrets.RHACS_BOT_GITHUB_TOKEN }}

0 commit comments

Comments
 (0)