File tree Expand file tree Collapse file tree 3 files changed +33
-0
lines changed Expand file tree Collapse file tree 3 files changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -13,3 +13,4 @@ RELEASED_VERSIONS.unsupported @stackrox/collector-team
13
13
** /konflux. * Dockerfile @ stackrox/rhtap-maintainers
14
14
/.tekton / @ stackrox/rhtap-maintainers
15
15
rpms. * @ stackrox/rhtap-maintainers
16
+ .github /renovate.json5 @ stackrox/rhtap-maintainers
Original file line number Diff line number Diff line change 71
71
"dockerfile" ,
72
72
"rpm" ,
73
73
] ,
74
+ "packageRules" : [ {
75
+ "matchPackageNames" : [ "/.*/" ] ,
76
+ "groupName" : "All updates" ,
77
+ "automerge" : true ,
78
+ // 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.
79
+ // Therefore, we use PR merge type and have automation approve PRs.
80
+ "automergeType" : "pr" ,
81
+ "automergeStrategy" : "squash" ,
82
+ // Tell Renovate that it can automerge branches at any time of the day.
83
+ "automergeSchedule" : [
84
+ "at any time"
85
+ ] ,
86
+ } ] ,
87
+ "labels" : [ "auto-approve" ] ,
74
88
}
Original file line number Diff line number Diff line change
1
+ name : auto-merge
2
+
3
+ on :
4
+ pull_request_target :
5
+ types :
6
+ - labeled
7
+
8
+ jobs :
9
+ auto-approve :
10
+ name : Auto-approve Konflux updates
11
+ runs-on : ubuntu-latest
12
+ if : github.actor == 'red-hat-konflux[bot]' && github.event.label.name == 'auto-approve'
13
+ steps :
14
+ - env :
15
+ GH_TOKEN : ${{ secrets.RHACS_BOT_GITHUB_TOKEN }}
16
+ run : |
17
+ set -euo pipefail
18
+ gh pr review ${{ github.event.pull_request.number }} --approve --body "Auto-approved by automation."
You can’t perform that action at this time.
0 commit comments