Skip to content

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

Open
ahms5 wants to merge 3 commits intomainfrom
ci/autp-template
Open

add action to create pr in other repos if this repo has a new version#56
ahms5 wants to merge 3 commits intomainfrom
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
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Comment thread tests/test_copier.py Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

2 participants