build: move dependency updates from renovate to dependabot

Monthly, grouped, minor and patch merge themselves once the required checks pass. Toolchain updates stay manual because F-Droid compares its rebuild with the release APK. renovate.json stays only to keep the installed app from re-onboarding.
This commit is contained in:
Anthonyy232 committed 2026-11-15 10:10:41 -08:00
1 parent 007740d626
commit 51a67a709d
4 files changed
+60 -51

No files matched your search

+36
View File
@@ -0,0 +1,36 @@
version: 2
updates:
- package-ecosystem: gradle
directory: /
schedule:
interval: monthly
cooldown:
default-days: 5
groups:
# F-Droid rebuilds each release and compares it with ours: toolchain updates are merged by hand
toolchain:
patterns:
- gradle-wrapper
- com.android.application*
- com.android.tools.build*
- org.jetbrains.kotlin*
- com.google.devtools.ksp*
minor-patch:
update-types: [minor, patch]
major:
update-types: [major]
commit-message:
prefix: chore(deps)
- package-ecosystem: github-actions
directory: /
schedule:
interval: monthly
cooldown:
default-days: 5
groups:
minor-patch:
update-types: [minor, patch]
major:
update-types: [major]
commit-message:
prefix: chore(deps)
@@ -0,0 +1,22 @@
name: Dependabot auto-merge
on: pull_request
permissions:
contents: write
pull-requests: write
jobs:
auto-merge:
name: Auto-merge
if: github.event.pull_request.user.login == 'dependabot[bot]'
runs-on: ubuntu-latest
steps:
- id: meta
uses: dependabot/fetch-metadata@25dd0e34f4fe68f24cc83900b1fe3fe149efef98 # v3
# Waits for the ruleset's required checks
- if: steps.meta.outputs.update-type != 'version-update:semver-major' && steps.meta.outputs.dependency-group != 'toolchain'
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+1 -1
View File
@@ -34,7 +34,7 @@ An Android app that changes the home and lock screen wallpaper on a schedule: Ko
- A database schema change needs a migration that keeps user data, never a destructive fallback. Commit the exported schema.
- `metadata/en-US` is the F-Droid and IzzyOnDroid store listing: keep its text and screenshots true to the app.
- F-Droid rebuilds every release from source and compares it with the GitHub APK, so the build must stay reproducible. Its recipe deletes the `foojay` line from `settings.gradle.kts` with `sed`: keep that plugin on one line, and keep `dependenciesInfo` off.
- F-Droid pins the commit of every version: never rewrite a released commit or move a tag. `renovate/*`, `crowdin-translations` and `media` are live branches, not stale ones.
- F-Droid pins the commit of every version: never rewrite a released commit or move a tag. `crowdin-translations` and `media` are live branches, not stale ones.
- `app/lint-baseline.xml` holds only deliberate exceptions; fix new warnings instead of adding them to it.
## Done means
+1 -50
View File
@@ -1,52 +1,3 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:best-practices"],
"minimumReleaseAge": "14 days",
"packageRules": [
{
"description": ["Automerge aged low-risk updates after CI passes"],
"matchUpdateTypes": ["patch", "pin", "digest"],
"automerge": true
},
{
"description": ["Action digests have no release date to age against, so the cooldown would hold them forever"],
"matchUpdateTypes": ["digest"],
"minimumReleaseAge": null
},
{
"description": ["Review Compose as one compatible platform update"],
"matchPackageNames": ["androidx.compose:**"],
"groupName": "Jetpack Compose",
"automerge": false
},
{
"description": ["Coordinate AGP and Gradle compatibility manually"],
"matchDepNames": [
"com.android.application",
"com.android.library",
"com.android.test",
"com.android.tools.build:gradle",
"gradle"
],
"groupName": "Android build toolchain",
"automerge": false
},
{
"description": ["Keep the shared Kotlin version together and verify CodeQL support before merging"],
"matchDepNames": [
"org.jetbrains.kotlin.android",
"org.jetbrains.kotlin.plugin.compose",
"org.jetbrains.kotlin.plugin.serialization"
],
"groupName": "Kotlin compiler plugins",
"automerge": false
},
{
"description": ["Require an explicit maintainer decision for major updates"],
"matchUpdateTypes": ["major"],
"dependencyDashboardApproval": true,
"automerge": false
}
],
"platformAutomerge": false
"enabled": false
}