Add managed_files config for updating arbitrary files on release#81
Merged
zachdaniel merged 1 commit intozachdaniel:masterfrom Mar 24, 2026
Merged
Conversation
Adds a `managed_files` configuration option that allows updating version
strings in an arbitrary list of files during release. This is useful for
poncho apps or other projects that need to update multiple mix.exs files
or other versioned files.
Each entry is a tuple: `{path, :mix}`, `{path, :string}`, or
`{path, replace_fn, pattern_fn}` for custom replacements.
The existing `manage_mix_version?` and `manage_readme_version` options
continue to work and are merged into the managed files list.
zachdaniel
approved these changes
Mar 24, 2026
Owner
|
🔥 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
managed_filesconfiguration option that allows updating version strings in an arbitrary list of files during release{path, :mix},{path, :string}, or{path, replace_fn, pattern_fn}for custom replacementsmix.exsfiles or other versioned filesmanage_mix_version?andmanage_readme_versionoptions continue to work and are merged into the managed files listExample config
Changes
GitOps.Config— newmanaged_files/0that mergesmanage_mix_version?,manage_readme_version, and the newmanaged_filesconfig into a single list of desugared{path, replace_fn, pattern_fn}tuplesGitOps.VersionReplace— replacedupdate_mix_project/4andupdate_readme/4with a singleupdate_managed_file/4that operates on desugared 3-tuplesMix.Tasks.GitOps.Release— unified the separate mix.exs and README handling into a single loop over managed filesTest plan