Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Automatically open PR for subproject CHANGELOG.md updates #1328

Merged
merged 1 commit into from
Jan 29, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 17 additions & 7 deletions .github/workflows/CI_pypi_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,21 @@ jobs:
--include-path "${{ steps.pathfinder.outputs.project_path }}/**/*"
--tag-pattern "${{ steps.pathfinder.outputs.project_path }}-v*"

- name: Commit changelog
uses: EndBug/add-and-commit@v9
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
author_name: "HaystackBot"
author_email: "[email protected]"
message: "Update the changelog"
add: ${{ steps.pathfinder.outputs.project_path }}
push: origin HEAD:main
token: ${{ secrets.HAYSTACK_BOT_TOKEN }}
commit-message: "Update changelog for ${{ steps.pathfinder.outputs.project_path }}"
branch: update-changelog-${{ steps.pathfinder.outputs.project_path }}
title: "docs: update changelog for ${{ steps.pathfinder.outputs.project_path }}"
add-paths: |
${{ steps.pathfinder.outputs.project_path }}/CHANGELOG.md
body: |
This PR updates the changelog for ${{ steps.pathfinder.outputs.project_path }} integration
with the latest changes just released on PyPi. Please review the changelog diff below and adjust it
if necessary.

A good changelog diff simply lists these latest changes on top of the CHANGELOG.md file.
If there are some diffs that seem out of place, please adjust the CHANGELOG.md file manually.
Either way, please merge this PR as soon as possible.