---
title: "draft_pr_* keys removed from the batch metadata"
date: 2026-11-30
tags:
  - "Merge Queue"
  - "Deprecations"
description: "The batch metadata no longer publishes draft_pr_number and draft_pr_head_sha: read batch_pr_number and batch_pr_head_sha instead."
---

The merge queue publishes each batch's metadata in its batch pull request's description, as a YAML block, and in the `refs/notes/mergify` git note. Each entry of `previous_failed_batches` and `previous_check_retries` now names its batch pull request with `batch_pr_number` and `batch_pr_head_sha` only. The older `draft_pr_number` and `draft_pr_head_sha` keys, which held the same values, are gone.

If a script of yours still reads them, such as `jq -r '.previous_failed_batches[-1].draft_pr_number // empty'`, switch it to `batch_pr_number` and `batch_pr_head_sha`: with `// empty`, the old key now returns nothing instead of failing. See [the batch metadata](https://docs.mergify.com/merge-queue/batches/metadata).

If your CI runs `mergify ci git-refs`, use mergify-cli 2026.7.21.1 or later.
