Skip to content

Add Dependabot schedule day, time, and timezone options - #224

Merged
greg-at-moderne merged 4 commits into
openrewrite:mainfrom
Wanbinyu:issue-54-dependabot-schedule
Aug 26, 2026
Merged

Add Dependabot schedule day, time, and timezone options#224
greg-at-moderne merged 4 commits into
openrewrite:mainfrom
Wanbinyu:issue-54-dependabot-schedule

Conversation

@Wanbinyu

@Wanbinyu Wanbinyu commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

What's changed?

  • Add optional day, time, and timezone options to ChangeDependabotScheduleInterval while retaining the existing two-argument constructor.
  • Update or insert configured schedule fields for every matching package ecosystem, leaving optional fields unchanged when their recipe option is omitted.
  • Preserve existing scalar formatting and comments, insert missing fields in Dependabot schedule order, and normalize flow mappings only when new fields must be added.
  • Regenerate recipes.csv and add coverage for matching/non-matching ecosystems, multiple update entries, existing/missing fields, null options, comments, ordering, .yml/.yaml, declarative configuration, flow mappings, and idempotency.

What's your motivation?

Allow users to configure the full Dependabot schedule supported by the existing recipe.

Testing

  • ./gradlew.bat --no-daemon test --tests org.openrewrite.github.ChangeDependabotScheduleIntervalTest
  • ./gradlew.bat recipeCsvGenerate
  • ./gradlew.bat recipeCsvValidate
  • ./gradlew.bat --no-daemon clean build
  • git diff --check

Checklist

@Wanbinyu
Wanbinyu marked this pull request as ready for review August 26, 2026 09:01
@github-project-automation github-project-automation Bot moved this from In Progress to Ready to Review in OpenRewrite Aug 26, 2026
@greg-at-moderne
greg-at-moderne merged commit 1d0c706 into openrewrite:main Aug 26, 2026
1 check passed
@github-project-automation github-project-automation Bot moved this from Ready to Review to Done in OpenRewrite Aug 26, 2026
@greg-at-moderne

Copy link
Copy Markdown
Contributor

Thanks for the quality contribution. I have made some amendments to this PR:

  • coverage for empty schedule
  • coverage for (rather rare, but still) so called flow-syntax, e.g.
              updates:
                - { package-ecosystem: github-actions, directory: /, schedule: { interval: daily } }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

ChangeDependabotScheduleInterval - Add option to configure the schedule

2 participants