Removed: the commit_message_template field, which rendered a customer-written Jinja2 template against pull request data on Mergify’s servers. It is replaced by a declarative block — title, body, trailers — where the common value is inherit, which makes Mergify omit the field and let GitHub render its own default. In the post’s words, that gets “the expressiveness GitHub already offers without adding new code we have to defend.”
Outcome: one templating engine no longer renders customer input into merge commits. The old field still works, hidden from the editor, with a counter tracking adoption so the legacy path can be retired.
The reason to look was cost, not an incident. “Keeping that safe turned out to be a permanent job”, and the upkeep never ended: every Jinja2 release, every edge case a customer hit. Skipping to another engine would not have helped — “The choice to accept user-supplied templating is what creates the cost.”
What made the removal cheap was counting. Mergify pulled every customer config in April, scanned 4,629 files across 1,262 organisations, and found that across 6,873 label values exactly one held a template (branch:{{ base }}). Of 551 uses of the assignee fields, 531 — 96% — were exactly {{ author }}. That variable is now resolved as a literal before the engine is entered; anything with a filter still goes through it.
The awkward parts stay in the record. Jinja2 still runs in several places in the engine, and each surface gets the same review rather than an automatic deletion. Templates are still accepted on some fields through a deprecation window ending 2026-09-30. And the bet could have failed: “If the scan had come back showing hundreds of orgs running real automation through templates, this would be a different post, and we’d carry that risk for years more.”
Sources: