loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request 'chore(renovate): move settings to shared go preset' (#5066) from viceice/forgejo:chore/renovate/moved-settings into forgejo

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/5066
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>

+27 -175
+27 -175
renovate.json
··· 1 1 { 2 2 "$schema": "https://docs.renovatebot.com/renovate-schema.json", 3 - "extends": [ 4 - "config:best-practices", 5 - ":approveMajorUpdates", 6 - ":maintainLockFilesWeekly", 7 - "schedule:daily", 8 - "schedule:automergeDaily", 9 - "local>forgejo-contrib/forgejo-renovate//go.json" 10 - ], 3 + "extends": ["local>forgejo/renovate-config"], 11 4 "ignorePresets": [ 12 5 ":semanticPrefixFixDepsChoreOthers", 13 6 "docker:pinDigests", ··· 18 11 "/^v[7-9]\\.\\d+/forgejo$/", 19 12 "/^v\\d\\d+\\.\\d+\\/forgejo$/" 20 13 ], 21 - "semanticCommits": "disabled", 22 - "automergeStrategy": "merge-commit", 23 - "postUpdateOptions": [ 24 - "gomodTidy", 25 - "gomodUpdateImportPaths", 26 - "npmDedupe" 27 - ], 14 + "postUpdateOptions": ["gomodTidy", "gomodUpdateImportPaths", "npmDedupe"], 28 15 "prConcurrentLimit": 10, 29 - "internalChecksFilter": "strict", 30 16 "osvVulnerabilityAlerts": true, 31 - "labels": [ 32 - "dependency-upgrade" 33 - ], 17 + "labels": ["dependency-upgrade"], 34 18 "packageRules": [ 35 19 { 36 - "description": "Require approval for go and python minor version", 37 - "matchDepNames": [ 38 - "code.forgejo.org/oci/golang", 39 - "docker.io/library/golang", 40 - "docker.io/golang", 41 - "go", 42 - "golang", 43 - "python", 44 - "mcr.microsoft.com/devcontainers/go" 45 - ], 46 - "matchUpdateTypes": [ 47 - "minor" 48 - ], 20 + "description": "Require approval for python minor version", 21 + "matchDepNames": ["python"], 22 + "matchUpdateTypes": ["minor"], 49 23 "dependencyDashboardApproval": true 50 24 }, 51 25 { ··· 65 39 "github.com/google/pprof", 66 40 "github.com/golangci/misspell/cmd/misspell" 67 41 ], 68 - "extends": [ 69 - "schedule:quarterly" 70 - ] 42 + "extends": ["schedule:quarterly"] 71 43 }, 72 44 { 73 45 "description": "elasticsearch CI images are published about once a month and do not use semantic versioning or short tags", 74 - "matchDepNames": [ 75 - "elasticsearch" 76 - ], 77 - "extends": [ 78 - "schedule:quarterly" 79 - ] 46 + "matchDepNames": ["elasticsearch"], 47 + "extends": ["schedule:quarterly"] 80 48 }, 81 49 { 82 50 "description": "devcontainer is an optional tool used by some Forgejo contributors when working on the codebase", 83 51 "groupName": "devcontainer packages", 84 - "extends": [ 85 - "schedule:quarterly" 86 - ], 52 + "extends": ["schedule:quarterly"], 87 53 "automerge": true, 88 54 "matchPackageNames": [ 89 55 "ghcr.io/devcontainers/features/**", ··· 91 57 ] 92 58 }, 93 59 { 94 - "description": "Group golang packages", 95 - "matchDepNames": [ 96 - "code.forgejo.org/oci/golang", 97 - "docker.io/library/golang", 98 - "docker.io/golang", 99 - "go", 100 - "golang", 101 - "mcr.microsoft.com/devcontainers/go" 102 - ], 103 - "groupName": "golang packages" 104 - }, 105 - { 106 60 "description": "Group nodejs packages", 107 61 "matchDepNames": [ 108 62 "code.forgejo.org/oci/node", ··· 116 70 }, 117 71 { 118 72 "description": "x/tools/* are used in the CI only and upgraded together", 119 - "matchUpdateTypes": [ 120 - "minor", 121 - "patch", 122 - "digest" 123 - ], 73 + "matchUpdateTypes": ["minor", "patch", "digest"], 124 74 "automerge": true, 125 75 "groupName": "x/tools", 126 - "matchPackageNames": [ 127 - "golang.org/x/tools{/,}**" 128 - ] 129 - }, 130 - { 131 - "description": "Group linter minor and patch updates", 132 - "extends": ["packages:linters"], 133 - "matchUpdateTypes": ["minor", "patch"], 134 - "groupName": "linters" 76 + "matchPackageNames": ["golang.org/x/tools{/,}**"] 135 77 }, 136 78 { 137 79 "description": "Group postcss minor and patch updates", ··· 142 84 { 143 85 "description": "Split minor and patch updates", 144 86 "matchDepNames": [ 145 - "code.forgejo.org/oci/golang", 146 - "docker.io/library/golang", 147 - "docker.io/golang", 148 87 "github.com/urfave/cli/v2", 149 - "go", 150 - "golang", 151 - "mcr.microsoft.com/devcontainers/go", 152 88 "python", 153 89 "swagger-ui-dist", 154 90 "vue" ··· 157 93 }, 158 94 { 159 95 "description": "Automerge patch updates", 160 - "matchDepNames": [ 161 - "vue", 162 - "github.com/urfave/cli/v2", 163 - "swagger-ui-dist" 164 - ], 165 - "matchUpdateTypes": [ 166 - "patch" 167 - ], 96 + "matchDepNames": ["vue", "github.com/urfave/cli/v2", "swagger-ui-dist"], 97 + "matchUpdateTypes": ["patch"], 168 98 "automerge": true 169 99 }, 170 100 { 171 101 "description": "Automerge renovate updates", 172 - "matchDatasources": [ 173 - "docker" 174 - ], 102 + "matchDatasources": ["docker"], 175 103 "matchPackageNames": [ 176 104 "code.forgejo.org/forgejo-contrib/renovate", 177 105 "ghcr.io/visualon/renovate" 178 106 ], 179 - "matchUpdateTypes": [ 180 - "minor", 181 - "patch", 182 - "digest" 183 - ], 107 + "matchUpdateTypes": ["minor", "patch", "digest"], 184 108 "automerge": true 185 109 }, 186 110 { 187 111 "description": "Add reviewer and additional labels to renovate PRs", 188 - "matchDatasources": [ 189 - "docker" 190 - ], 112 + "matchDatasources": ["docker"], 191 113 "matchPackageNames": [ 192 114 "code.forgejo.org/forgejo-contrib/renovate", 193 115 "ghcr.io/visualon/renovate" ··· 197 119 }, 198 120 { 199 121 "description": "Update renovate with higher prio to come through rate limit", 200 - "matchDatasources": [ 201 - "docker" 202 - ], 122 + "matchDatasources": ["docker"], 203 123 "matchPackageNames": [ 204 124 "code.forgejo.org/forgejo-contrib/renovate", 205 125 "ghcr.io/visualon/renovate" 206 126 ], 207 - "extends": [ 208 - "schedule:weekly" 209 - ], 127 + "extends": ["schedule:weekly"], 210 128 "prPriority": 10, 211 - "reviewers": ["viceice"], 212 - "addLabels": ["forgejo/ci", "test/not-needed"], 213 129 "groupName": "renovate" 214 130 }, 215 131 { 216 - "description": "Update go patch with higher prio to come through rate limit", 217 - "matchDepNames": [ 218 - "go", 219 - "golang", 220 - "docker.io/golang", 221 - "docker.io/library/golang" 222 - ], 223 - "matchUpdateTypes": [ 224 - "patch" 225 - ], 226 - "prPriority": 10, 227 - "schedule": [ 228 - "at any time" 229 - ] 230 - }, 231 - { 232 - "description": "Bump go.mod directive versions", 233 - "matchDatasources": ["golang-version"], 234 - "matchManagers": ["gomod"], 235 - "matchDepTypes": ["golang"], 236 - "matchDepNames": ["go"], 237 - "rangeStrategy": "bump" 238 - }, 239 - { 240 - "description": "Disable actions/cascading-pr for now <https://github.com/renovatebot/renovate/issues/28120>", 241 - "matchDepNames": [ 242 - "actions/cascading-pr" 243 - ], 244 - "matchManagers": [ 245 - "github-actions" 246 - ], 247 - "enabled": false 248 - }, 249 - { 250 132 "description": "Automerge some packages when CI succeeds", 251 - "extends": [ 252 - "packages:linters", 253 - "packages:test" 254 - ], 133 + "extends": ["packages:linters", "packages:test"], 255 134 "matchDepNames": [ 256 135 "github.com/editorconfig-checker/editorconfig-checker/v2/cmd/editorconfig-checker", 257 136 "github.com/golangci/golangci-lint/cmd/golangci-lint", ··· 275 154 }, 276 155 { 277 156 "description": "Hold back on some package updates for a few days", 278 - "matchDepNames": [ 279 - "monaco-editor" 280 - ], 157 + "matchDepNames": ["monaco-editor"], 281 158 "minimumReleaseAge": "30 days" 282 159 }, 283 160 { 284 161 "description": "disallow `eslint-plugin-no-use-extend-native` v0.6.0+, requires eslint v9", 285 - "matchDepNames": [ 286 - "eslint-plugin-no-use-extend-native" 287 - ], 162 + "matchDepNames": ["eslint-plugin-no-use-extend-native"], 288 163 "allowedVersions": "<0.6.0" 289 164 }, 290 165 { 291 166 "description": "Require approval for stable branches (must be last rule to override all others)", 292 - "matchBaseBranches": [ 293 - "/^v\\d+\\.\\d+\\/forgejo$/" 294 - ], 167 + "matchBaseBranches": ["/^v\\d+\\.\\d+\\/forgejo$/"], 295 168 "dependencyDashboardApproval": true, 296 - "schedule": [ 297 - "at any time" 298 - ] 169 + "schedule": ["at any time"] 299 170 } 300 171 ], 301 172 "customManagers": [ 302 173 { 303 - "description": "Update go-version in forgejo workflows", 304 - "customType": "regex", 305 - "fileMatch": [ 306 - "^.forgejo/workflows/.+\\.yml$" 307 - ], 308 - "matchStrings": [ 309 - "\\s+go-version: ['\"]?(?<currentValue>.+?)['\"]?\\s" 310 - ], 311 - "depNameTemplate": "go", 312 - "datasourceTemplate": "golang-version", 313 - "versioningTemplate": "go-mod-directive" 314 - }, 315 - { 316 174 "description": "Update node-version in forgejo workflows", 317 175 "customType": "regex", 318 - "fileMatch": [ 319 - "^.forgejo/workflows/.+\\.yml$" 320 - ], 321 - "matchStrings": [ 322 - "\\s+node-version: ['\"]?(?<currentValue>.+?)['\"]?\\s" 323 - ], 176 + "fileMatch": ["^.forgejo/workflows/.+\\.yml$"], 177 + "matchStrings": ["\\s+node-version: ['\"]?(?<currentValue>.+?)['\"]?\\s"], 324 178 "depNameTemplate": "node", 325 179 "datasourceTemplate": "node-version" 326 180 }, 327 181 { 328 182 "description": "Update deps inside Makefile", 329 183 "customType": "regex", 330 - "fileMatch": [ 331 - "^Makefile$" 332 - ], 184 + "fileMatch": ["^Makefile$"], 333 185 "matchStrings": [ 334 186 " \\?= (?<depName>.+?)@(?<currentValue>.+?) # renovate: datasource=(?<datasource>.+?)(?: packageName=(?<packageName>.+?))?( versioning=(?<versioning>.+?))?\\s" 335 187 ]