Skip to content
Source
Sign inSign up

Review a dependency pull request

Software factory / Runs

Review a dependency pull request

A pull request from the bot changes package.json files and the lockfile. After a fix run, it also changes your code. Read what changed and why, then merge it.

2 min read

You need:

1. Open the pull request

The bot opened it from a factory/deps/... branch. It goes through screening first, as a pull request from a person without write access does. Then it gets the full pull request steps, the audit too.

2. Read the package.json changes

Open Files changed. Each package.json changes only the planned versions.

Note

Code compared each file with the plan before each push, and refuses a file with an added, removed or other dependency. This includes peerDependencies, overrides, resolutions and pnpm.overrides.

3. Read the code changes

A code change is a fix of the agent. Its commit message says what it fixed. With write access, click Run log on the Dependencies tab to read the cause and each command.

4. Look for dropped updates

Open the Dependencies tab. Under Update groups, each dropped dependency shows as "Dropped" with the reason.

5. Merge

Wait for CI and for the Safe row of the Factory panel. Then merge the pull request as any other.

Done

The new versions and the new lockfile are on the default branch.

When the branch does not match the plan

Code also compares the branch with the plan after each run. If the branch does not match, the group shows Failed with "The branch does not match the plan."

When a person pushes to the branch

If you push to the branch of a group, it shows Changed by a person. No update run and no fix run changes that branch after that.

To give the branch back, merge or close the pull request, and delete the branch. Then click Update, or Bump or Sync versions for their groups.

Update branch on the pull request does not count as a push of a person. It only merges the base into the branch, so the agent keeps the branch.

When a new update comes

A new update of a group, for example after a newer version came out, pushes a new branch from the default branch. This replaces the fix commits of the earlier update.