To avoid failure of the main build, which triggers on-call notification in the early morning, we can try to merge to main only at certain hours and days, preferably the working hours of our different sites, but waking hours are good too :)
Not sure I agree that's the right approach. If we want to prevent off hours oncall alerts we should configure pagerduty to treat build failures as a less severe case.
Use Case
To avoid failure of the main build, which triggers on-call notification in the early morning, we can try to merge to main only at certain hours and days, preferably the working hours of our different sites, but waking hours are good too :)
Proposed Solution
chatGPT says we can do it with a mergify condition https://chatgpt.com/share/c30c3b21-1799-43d6-bb4c-373420096e6e
Implementation Notes
No response
Component
No response
Community Notes