Software factory / Runs
Set a rule for a dependency
One dependency must not update, or must not take a major version. Set a rule for it, and the next check of the Dependencies tab follows the rule.
2 min read
You need:
- Write access to the repository.
1. Open the rule menu
On the Dependencies tab, in the Rule column, click the menu button of the dependency.
2. Pick a rule
- Ignore this dependency: never update it.
- No major updates: only minor and patch updates.
- Ignore version and the version: skip only the newest usable version. A newer release counts as usual.
3. Check again
The next check uses the rule. To use it now, click Check now.
Done
The Rule column shows the rule, and the Rules list below the table has it. A dependency with Ignore this dependency shows the state Ignored by a rule.
Remove a rule
Open the menu of the dependency again, and click Remove the rule. You can also click Remove under Rules.
From src, REST or MCP
src deps rule set left-pad --ignore
src deps rule set react --no-major
src deps rule set lodash --ignore-version 4.17.20
src deps rule remove @types/node
| You want to | REST | MCP |
|---|---|---|
| Set the rule of a dependency | PUT /api/v1/repos/{owner}/{repo}/factory/dependencies/rules/{name} | set_dependency_rule |
| Remove the rule of a dependency | DELETE .../factory/dependencies/rules/{name} | remove_dependency_rule |
- A rule
PUTtakes{"kind": "ignore"},{"kind": "no-major"}or{"kind": "ignore-version", "version": "4.17.20"}. - A scoped name works with its
/, for example.../rules/@types/node.