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.
Feature Proposal
This PR adds a new
target-indirect
option, providing the ability to specify semver version for "indirect" dependency type PRs.Motivation
Dependabot PRs come with a
dependency-type
metadata prop which can hold different values includingindirect
.target-indirect
option uses the same approach taken with existingtarget-xxx
options to specifically targetindirect
dependency type.target-development
direct:development
target-production
direct:production
target-indirect
indirect
Extra info
"direct:development" Dependabot PRs
Example: https://github.com/toomuchdesign/openapi-ts-json-schema/actions/runs/11336643952/job/31526898957
PR metadata
"direct:production" Dependabot PRs
Example: https://github.com/toomuchdesign/openapi-ts-json-schema/actions/runs/10207116362/job/28241301745
PR metadata
"indirect" Dependabot PRs
Example: https://github.com/toomuchdesign/openapi-ts-json-schema/actions/runs/11336687684/job/31527015545
PR metadata
Extra notes
This feature should be able to provide a solution the Dependabot issue causing
indirect
group PRs lackingupdate-type
metadata. See: #659A specific test was added to cover such use case.
I'm quite puzzled about the
/dist
folder output. Is it expected to be included in PRs?It supports #644 for indirect dependency updates.
Checklist
npm run test
andnpm run benchmark
and the Code of conduct