Repository navigation
feat(pr-checks): new-dependency asks for a Dependencies section when a pull request adds one - #27
Draft
PiquelChips wants to merge 1 commit into
Draft
PiquelChips wants to merge 1 commit into
PiquelChips wants to merge 1 commit into
Conversation
PiquelChips
force-pushed
the
feat/pr-check-fix-has-test
branch
from
November 22, 2026 20:25
1982583 to
e0508d2
Compare
PiquelChips
force-pushed
the
feat/pr-check-new-dependency
branch
from
November 22, 2026 20:26
a74e42a to
164cb39
Compare
…a pull request adds one new-dependency (DP8) compares the workspace's [workspace.dependencies] and deny.toml's exception arrays before and after the pull request, through the API, and points at each addition when the description has no Dependencies section.
PiquelChips
force-pushed
the
feat/pr-check-fix-has-test
branch
from
November 22, 2026 22:13
e0508d2 to
fc5d60b
Compare
PiquelChips
force-pushed
the
feat/pr-check-new-dependency
branch
from
November 22, 2026 22:13
164cb39 to
58db183
Compare
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What and why
A new dependency or a cargo-deny exception should come with its reasons, as the
tech-stackskill writes them. Until now one could slip in with a one-line diff toCargo.toml. This addsnew-dependency(DP8) to the pull request checks of #21.Cargo.toml, a dependency named in[workspace.dependencies]after the pull request but not before. Both thename = …form and the[workspace.dependencies.name]form count.deny.toml, an element in one of these arrays that wasn't there before:advisories.ignore,licenses.allow,licenses.exceptions,bans.skip,bans.skip-tree,sources.allow-gitorsources.allow-registry. Inline arrays and[[array.tables]]both count.## Dependenciessection in the description. Once that section has more than comments, the check passes. What it says is left to review.Testing
Dependenciessection passes and an empty one doesn't;just check-changed origin/feat/pr-check-fix-has-testpasses.PRrun, which adds no dependency.Checklist
just check-changedpasses.Note
Written by Claude Opus 5.5 in Claude Code (via T3 Code)