Skip to content

feat(renovate): track commit-only Flatpak sources - #1018

Merged
ReenigneArcher merged 2 commits into
masterfrom
codex/flatpak-commit-renovate
Nov 21, 2026
Merged

ReenigneArcher merged 2 commits into
masterfrom
codex/flatpak-commit-renovate

Conversation

@ReenigneArcher

@ReenigneArcher ReenigneArcher commented Nov 21, 2026 •

Copy link
Copy Markdown
Member

Description

Let Flatpak Git sources pinned by commit declare their update branch in x-renovate.ref. Renovate can then follow the branch while Flatpak checks out the recorded commit.

The existing Flatpak manager handles release archives, Git tags, branches, and commit-only sources together. A mixed file appears once in the Dependency Dashboard.

Use the upstream project for depName and allow packageName to select a Git mirror. When packageName is omitted, the rule uses the source URL and defaults to exact versioning.

This supports the staged Flatpak dependencies in Sunshine #6158.

Screenshot

Issues Fixed or Closed

Roadmap Issues

Testing

  • node --test tests/renovate-config.test.mjs passed all 30 tests. The mixed-source test renders the Dependency Dashboard and verifies one entry for a file containing five dependencies. It also checks commit replacement and mirror URL overrides.
  • renovate-config-validator --strict --no-global renovate/flatpak.json5 passed.
  • Tested the preset against the Sunshine branch. Renovate detected all nine annotated Flatpak sources and replaced all four commit-only pins in a local test.
  • git diff --check passed.

Type of Change

  • feat: New feature (non-breaking change which adds functionality)
  • fix: Bug fix (non-breaking change which fixes an issue)
  • docs: Documentation only changes
  • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semicolons, etc.)
  • refactor: Code change that neither fixes a bug nor adds a feature
  • perf: Code change that improves performance
  • test: Adding missing tests or correcting existing tests
  • build: Changes that affect the build system or external dependencies
  • ci: Changes to CI configuration files and scripts
  • chore: Other changes that don't modify src or test files
  • revert: Reverts a previous commit
  • BREAKING CHANGE: Introduces a breaking change (can be combined with any type above)

Checklist

  • Code follows the style guidelines of this project
  • Code has been self-reviewed
  • Code has been commented, particularly in hard-to-understand areas
  • Code docstring/documentation-blocks for new or existing methods/components have been added or updated
  • Tests have been added or updated for new or modified functionality, including regression tests for bug fixes

AI Usage

See our AI usage policy.

  • AI tools were used while preparing this PR

This pull request was generated by Codex using GPT-6.2 Sol at extra-high thinking level.

@ReenigneArcher

Copy link
Copy Markdown
Member Author

This pull request was generated by Codex using GPT-6.2 Sol at extra-high thinking level.

@sonarqubecloud

Copy link
Copy Markdown

@ReenigneArcher
ReenigneArcher merged commit f32cbbf into master Nov 21, 2026
22 checks passed
@ReenigneArcher
ReenigneArcher deleted the codex/flatpak-commit-renovate branch November 21, 2026 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant