Skip to content

Add versions support to the allow block#624

Draft
yeikel wants to merge 1 commit into
dependabot:mainfrom
yeikel:add-condition-versions
Draft

Add versions support to the allow block#624
yeikel wants to merge 1 commit into
dependabot:mainfrom
yeikel:add-condition-versions

Conversation

@yeikel
Copy link
Copy Markdown

@yeikel yeikel commented Jun 2, 2026

Summary

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 is complementary to #605 which added update-types support to the allow block.

Changes

  • internal/model/job.go: Add Versions []string field to Allowed struct with json:"versions,omitempty" yaml:"versions,omitempty" tags
  • internal/model/job_test.go: Add versions entry to exampleJob fixture under allowed-updates, add TestAllowedVersions (YAML unmarshal) and TestAllowedVersionsJSON (JSON round-trip) tests

Related issues

Closes dependabot/dependabot-core#15198.

@yeikel yeikel force-pushed the add-condition-versions branch from bfd1170 to a4ba96d Compare June 2, 2026 02:11
@yeikel yeikel changed the title Add versions support to the allow block Add versions support to the ignore block Jun 2, 2026
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.
@yeikel yeikel force-pushed the add-condition-versions branch from a4ba96d to d20b65e Compare June 2, 2026 02:17
@yeikel yeikel changed the title Add versions support to the ignore block Add versions support to the allow block Jun 2, 2026
@yeikel yeikel closed this Jun 2, 2026
@yeikel yeikel reopened this Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support to versions for the allow block

1 participant