View as Markdown

Log pattern matching for Auto⁠-⁠Retry rules

Auto-Retry rules can now match against job log content to decide whether a failed job should be retried


  • CI Insights

A new log_pattern condition is now available for Auto-Retry rules. When a CI job fails, Mergify can stream the job’s logs and match them against regex patterns you define. This lets you target retries to specific, known transient failures — such as network timeouts or flaky infrastructure errors — instead of blindly retrying every failure.

Was this page helpful?