-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add pre-commit script and job for syncing scripts to ansible playbooks #7
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 2 2
Lines 305 305
=========================================
Hits 305 305 ☔ View full report in Codecov by Sentry. |
caa7076
to
7ca1ca6
Compare
example of failing check for scripts folder: https://github.com/oamg/leapp-insights-tasks/actions/runs/7548234455/job/20549874644?pr=7 |
pre-commit serves to stage the file without the developer having to do it manually. github job serves to notify the developer if they forgot to run the pre-commit or if they forgot to stage the playbooks changes.
7ca1ca6
to
aa60972
Compare
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.
@Monnte please take a look, I would be more in favor to keep the sync from your PR because it's same in conversion repo, would it be adjustable for pre-commit as well as the worker sync? should be almost same right?
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.
Yep, the sync in my PR should work too. Maybe a little change will be needed to choose target folder to save playbooks.
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.
Looks good, basically just want answer from @Monnte, but we could merge it and then he can adjust it in his PR
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.
Alright, it can be merged then, we can adjust the sync in the merge script PR #6
ref: OAMG-9893
pre-commit serves to stage the file without the developer having to do it manually.
github job serves to notify the developer if they forgot to run the pre-commit or if they forgot to stage the playbooks changes.
The playbooks were generated from the new wrap_ script.