Add versions support to the allow block#624
Draft
yeikel wants to merge 1 commit into
Draft
Conversation
bfd1170 to
a4ba96d
Compare
versions support to the allow blockversions support to the ignore block
Add `Versions []string` field to the `Allowed` struct, enabling `versions` list support in the `allow` block of `dependabot.yml`. This matches the existing pattern in the `Condition` (ignore) struct which already has `UpdateTypes []string`, and mirrors how `versions` works in the `ignore` block.
a4ba96d to
d20b65e
Compare
versions support to the ignore blockversions support to the allow block
5 tasks
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.
Summary
Add
Versions []stringfield to theAllowedstruct, enablingversionslist support in theallowblock ofdependabot.yml.This matches the existing pattern in the
Condition(ignore) struct which already hasUpdateTypes []string, and is complementary to #605 which addedupdate-typessupport to theallowblock.Changes
internal/model/job.go: AddVersions []stringfield toAllowedstruct withjson:"versions,omitempty" yaml:"versions,omitempty"tagsinternal/model/job_test.go: Addversionsentry toexampleJobfixture underallowed-updates, addTestAllowedVersions(YAML unmarshal) andTestAllowedVersionsJSON(JSON round-trip) testsRelated issues
Closes dependabot/dependabot-core#15198.