add action to create pr in other repos if this repo has a new version#56
add action to create pr in other repos if this repo has a new version#56ahms5 wants to merge 5 commits into
Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds a new GitHub Actions workflow to downstream template-generated repositories so that, when a new template version is announced via repository_dispatch, each repo can automatically run copier update and open a draft PR with the updates.
Changes:
- Add a new workflow template (
create_pr_on_template_updates) that runs onrepository_dispatchand opens a PR withpeter-evans/create-pull-request. - Extend copier template tests to assert the workflow file is generated and contains the expected Python version.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
tests/test_copier.py |
Adds assertions that the new workflow is generated and includes the expected python-version. |
template/.github/workflows/create_pr_on_template_updates.yml.jinja |
Introduces the new workflow that applies Copier updates and creates a draft PR on new template version dispatch events. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
h-chmeruk
left a comment
There was a problem hiding this comment.
Thanks for implementing this!
I noticed that in the current implementation all the tests are failing, and I think the reason for this is the use of ${{ env.latest_version }}, see my comment below.
…inja Co-authored-by: Hanna Chmeruk <119290248+h-chmeruk@users.noreply.github.com>
h-chmeruk
left a comment
There was a problem hiding this comment.
Thank you! Could you please also fix the ruff error? Otherwise approved :)
Changes proposed in this pull request: