ci(release): automate post-release tasks - #2847
Merged
Merged
Conversation
Re-adds a job that opens the pull request resetting develop from master after a release, removed in modflowpy#1856 when it relied on a broken PEP 440 local version segment. Modeled on the equivalent jobs in modflowapi and modflow-devtools. Publishing a release now drafts a branch that sets the development version for the next cycle and opens a draft PR into develop. update_version.py is reworked to follow modflow-devtools' CLI: --release strips the development segment, --post-release computes the next cycle's version, --dry-run prints without writing (replacing --get), and the resulting version is always printed to stdout while progress goes to stderr. --post-release targets the next anticipated minor with a .devN segment carrying the released patch number (3.10.0.dev2 after 3.9.2, 3.12.0.dev0 after 3.11.0), matching every past manual reset. The release guide drops the manual branch-and-bump instructions. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VKLyLu5TbszS9HZxti4tk8
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #2847 +/- ##
===========================================
+ Coverage 55.5% 72.5% +16.9%
===========================================
Files 644 659 +15
Lines 124135 132282 +8147
===========================================
+ Hits 68947 95919 +26972
+ Misses 55188 36363 -18825 🚀 New features to boost your workflow:
|
wpbonelli
marked this pull request as ready for review
September 9, 2026 20:38
Member
Author
|
CI failures are unrelated |
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.
Restore a CI job to automatically open a pull request from
masterintodevelopafter a release. We had this a while ago but it was removed in #1856. Drop the old manual instructions from the release guide. Tweakupdate_version.py