Skip to content

add action to create pr in other repos if this repo has a new version#56

Open
ahms5 wants to merge 5 commits into
mainfrom
ci/autp-template
Open

add action to create pr in other repos if this repo has a new version#56
ahms5 wants to merge 5 commits into
mainfrom
ci/autp-template

Conversation

@ahms5
Copy link
Copy Markdown
Member

@ahms5 ahms5 commented Apr 11, 2026

Changes proposed in this pull request:

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 on repository_dispatch and opens a PR with peter-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.

Comment thread template/.github/workflows/create_pr_on_template_updates.yml.jinja
Comment thread template/.github/workflows/create_pr_on_template_updates.yml.jinja Outdated
Comment thread template/.github/workflows/create_pr_on_template_updates.yml.jinja
Comment thread tests/test_copier.py Outdated
ahms5 and others added 3 commits April 27, 2026 17:37
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@ahms5 ahms5 force-pushed the ci/autp-template branch from 01d46ab to 9a50255 Compare April 27, 2026 15:38
Copy link
Copy Markdown
Contributor

@h-chmeruk h-chmeruk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread template/.github/workflows/create_pr_on_template_updates.yml.jinja Outdated
@github-project-automation github-project-automation Bot moved this from Backlog to Require review in Weekly Planning May 5, 2026
…inja

Co-authored-by: Hanna Chmeruk <119290248+h-chmeruk@users.noreply.github.com>
@ahms5 ahms5 requested a review from h-chmeruk May 6, 2026 11:45
@h-chmeruk h-chmeruk added this to the v0.1.0 milestone May 8, 2026
@h-chmeruk h-chmeruk added enhancement New feature or request git Related to git workflows/templates/etc. labels May 8, 2026
Copy link
Copy Markdown
Contributor

@h-chmeruk h-chmeruk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! Could you please also fix the ruff error? Otherwise approved :)

@ahms5 ahms5 requested a review from h-chmeruk May 10, 2026 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request git Related to git workflows/templates/etc.

Projects

Status: Require review

Development

Successfully merging this pull request may close these issues.

3 participants