This repository was archived by the owner on Feb 3, 2026. It is now read-only.
Create workflow to autofix dependabot PR#9
Merged
Conversation
8ea9707 to
8530f85
Compare
There was a problem hiding this comment.
Pull Request Overview
This PR introduces a new environment variable to bypass Yarn’s --immutable lockfile enforcement, updates the plugin code and documentation accordingly, and adds a GitHub Actions workflow to auto-fix Dependabot PRs.
- Add
WORKSPACE_LOCKFILE_FORCE_WRITEcheck in both source and bundled code to control lockfile writes under--immutable - Update README to document the new environment variable
- Add
.github/workflows/dependabot-auto-fix.ymlto automatically install, fix lockfiles, commit, and auto-merge Dependabot PRs
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/index.ts | Introduce isImmutable flag based on WORKSPACE_LOCKFILE_FORCE_WRITE |
| bundles/@yarnpkg/plugin-workspace-lockfile.js | Mirror the new env var logic in the bundled plugin |
| README.md | Document WORKSPACE_LOCKFILE_FORCE_WRITE usage |
| .github/workflows/dependabot-auto-fix.yml | New workflow to auto-fix and auto-merge Dependabot pull requests |
Comments suppressed due to low confidence (2)
README.md:124
- It may be helpful to explicitly state the default behavior (when the variable is absent or set to anything other than
true) so users know the env var must be exactlytrue.
### `WORKSPACE_LOCKFILE_FORCE_WRITE`
.github/workflows/dependabot-auto-fix.yml:16
- Add
with: fetch-depth: 0under the checkout step to ensure full history is available for the auto-merge and squash operation.
- uses: actions/checkout@v4
ThomasTrepanier
approved these changes
Jun 26, 2025
Contributor
ThomasTrepanier
left a comment
There was a problem hiding this comment.
Reviewed 4 of 4 files at r1, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @AdrienPoupa, @alexisloiselle, @Cellule, @Cloudsky01, @jpineault, @ptessier, and @Urik)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This change is