ci: Automatically open PR for subproject CHANGELOG.md updates #1328
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.
Why:
To address issues with unpredictable automatic changelog commits in pypi releases of our subprojects, this PR introduces automated pull requests for changelog updates. This provides more control and flexibility, enabling quick reviews, easy edits, and better handling of edge cases. It also allows us to refine the
cliff.toml
configuration without the risk of unexpected errors in changelogs.What:
add-and-commit
action with thecreate-pull-request
action to open pull requests for changelog updates instead of committing directly.How can it be used:
Upon each release, the workflow will execute the following:
This generates a pull request for the changelog update with clear branch names and commit messages, making it easier to review and edit before merging.
How did you test it:
The changes were tested in a controlled environment to ensure the workflow correctly generates pull requests for changelog updates. Validation included confirming:
cliff.toml
configuration.Notes for the reviewer:
create-pull-request
action to confirm they align with repository standards.