-
Notifications
You must be signed in to change notification settings - Fork 135
fix: migrator syntax problem #4031
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
base: main
Are you sure you want to change the base?
Conversation
Thanks for opening a Pull Request. If you want to perform a review write a comment saying: @ansys-reviewer-bot review |
Reviewer's GuideThis PR refactors the GitHub Actions migrator workflow to correct JS template syntax, bolster git push reliability, standardize inputs, introduce missing variables, streamline REST API calls, and refine conditional logic for comment creation. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4031 +/- ##
==========================================
- Coverage 89.17% 89.12% -0.05%
==========================================
Files 187 187
Lines 14970 14970
==========================================
- Hits 13349 13342 -7
- Misses 1621 1628 +7 🚀 New features to boost your workflow:
|
…s/pymapdl into fix/migrator-syntax-problem
It seems I did a total mess up in #3973. I am fixing that in here. |
Pinging @RobPasMue @jorgepiloto @MaxJPRey for review/awareness. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small comments, LGTM!
You can clone this branch in a new repository by doing: | ||
~~~terminal | ||
git clone -b ${prHeadBranch} --single-branch https://github.com/ansys/pymapdl.git |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't you programatically get the repository from the PR context? Just wondering
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I can. I believe github.repository
is the way.
If you have [GitHub CLI](https://cli.github.com/) installed, you can also use the following command to check out the pull request: | ||
~~~terminal | ||
gh pr checkout https://github.com/ansys/pymapdl/pull/${prNumber} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure!
I guess want me to prepare the workflow to be less PyMAPDL-dependent, for the future migration to ansys/actions
if that ever happens.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You got my point without even saying it 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very well then. I will reping you when ready :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @germa89 - much appreciated. Getting this as agnostic as possible from the repo will allow you to migrate it seamlessly. This is honestly a great feature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good approach. It will be helpful for all of us. Thanks @germa89
Description
Fix markdown code outside js literal string. Also small improvements.
More improvements fix should arise with usage.
Issue linked
Checklist
draft
if it is not ready to be reviewed yet.feat: adding new MAPDL command
)Summary by Sourcery
Fix syntax issues and enhance robustness in the migrator GitHub Actions workflow
Bug Fixes:
Enhancements:
CI: