Skip to content

ci: implementing migrator workflow #3878

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

Open
wants to merge 58 commits into
base: main
Choose a base branch
from
Open

Conversation

germa89
Copy link
Collaborator

@germa89 germa89 commented Apr 30, 2025

Summary

As the title.

This pull request introduces a new GitHub Actions workflow, migrator.yml, designed to handle pull requests originating from forks. The workflow ensures that secrets required for CI processes can be accessed by migrating the forked PR into a branch within the base repository.

This pull request introduces a new GitHub Actions workflow, migrator.yml, to handle pull requests originating from forks. The workflow migrates forked PRs into branches within the base repository, enabling access to repository secrets for CI workflows.

Changes

  • New Workflow: Added migrator.yml to workflows.

  • Trigger Events:

    • Automatically triggered by comments containing @pyansys-ci-bot migrate or @pyansys-ci-bot sync on pull requests.
    • Can also be triggered manually via workflow_dispatch with an issue number input.
  • Key Steps:

    • Reacts to comments to confirm the action.
    • Fetches details about the source branch and repository.
    • Clones the forked repository and checks out the source branch.
    • Creates a new branch in the base repository, merges the source branch, and pushes the changes.
    • Opens a new pull request in the base repository if one does not already exist.
    • Posts comments to indicate success or failure of the migration process.

This workflow simplifies the process of handling forked pull requests, improving CI reliability and developer experience.

Example of fork PR: #3868
Example of migrated PR: #3886

germa89 added 23 commits April 24, 2025 11:26
…ling with improved branch checks and comments
@germa89 germa89 requested a review from a team as a code owner April 30, 2025 11:04
@ansys-reviewer-bot
Copy link
Contributor

Thanks for opening a Pull Request. If you want to perform a review write a comment saying:

@ansys-reviewer-bot review

@germa89 germa89 changed the title chore: hello ci: implementing migrator workflow Apr 30, 2025
@germa89 germa89 self-assigned this Apr 30, 2025
germa89 added 22 commits April 30, 2025 20:24
@germa89 germa89 requested a review from RobPasMue April 30, 2025 20:30
@github-actions github-actions bot added CI/CD Related with CICD, Github Actions, etc maintenance General maintenance of the repo (libraries, cicd, etc) labels Apr 30, 2025
@germa89 germa89 requested a review from klmcadams April 30, 2025 20:32
@germa89
Copy link
Collaborator Author

germa89 commented Apr 30, 2025

I think this is more or less ready. The conflict in the changes is still not clear to me, so I would appreciate any suggestions on this.

Pinging @RobPasMue since I discussed this topic with him and pinging @klmcadams because i would love her feedback on the conflict resolution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI/CD Related with CICD, Github Actions, etc maintenance General maintenance of the repo (libraries, cicd, etc)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants