-
-
Notifications
You must be signed in to change notification settings - Fork 2
Add workflow to sync rush.json with Dependabot updates #483
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
Conversation
This workflow automatically syncs the rush.json version with changes made by Dependabot to package.json and related files. It detects changes, updates the rush.json version, runs rush update, and commits the changes if any are detected.
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.
Pull request overview
This PR adds a GitHub Actions workflow to automatically synchronize the rush.json configuration file when Dependabot updates the @microsoft/rush dependency in package.json files. The workflow detects Rush version changes, updates the rush.json file accordingly, runs rush update to regenerate lockfiles, and commits the changes back to the pull request.
Key changes:
- New automated workflow triggered on Dependabot pull requests that modify package.json, rush.json, or common-versions.json files
- Two-job workflow: detection job identifies if @microsoft/rush was updated, and update job syncs rush.json and regenerates lockfiles
- Automated commit and push mechanism to apply changes directly to Dependabot PRs
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #483 +/- ##
=======================================
Coverage 98.89% 98.89%
=======================================
Files 108 108
Lines 2981 2981
Branches 621 622 +1
=======================================
Hits 2948 2948
Misses 33 33 🚀 New features to boost your workflow:
|
Updated the workflow to improve file handling and permissions.
This workflow automatically syncs the rush.json version with changes made by Dependabot to package.json and related files. It detects changes, updates the rush.json version, runs rush update, and commits the changes if any are detected.