renovatebot/renovate

automergeSchedule not working if it's outside of normal schedule

Open

#24275 opened on Sep 6, 2023

View on GitHub
 (5 comments) (5 reactions) (0 assignees)TypeScript (14,066 stars) (1,916 forks)batch import
core:automergehelp wantedpriority-4-low

Description

Discussed in https://github.com/renovatebot/renovate/discussions/24005

Originally posted by fallemand August 21, 2023

How are you running Renovate?

Mend Renovate hosted app on github.com

If you're self-hosting Renovate, tell us what version of Renovate you run.

No response

If you're self-hosting Renovate, select which platform you are using.

None

Was this something which used to work for you, and then stopped?

It used to work, and then stopped

Describe the problem

I have the following config:

"packageRules": [
    {
      "matchUpdateTypes": [
        "minor",
        "patch"
      ],
      "automerge": true
    }
  ],
  "schedule": [
    "after 9am every weekend"
  ],
  "automergeSchedule": [
    "after 9am and before 5pm every weekday"
  ],

I want PRs to be created during the weekend (where CI consumption is low), and then be automerged in working hours (in case a problem appears). But the automerge is not happening because it's outside of the schedule.

Relevant debug logs

renovate.log

Contributor guide