.macroscope/backport-review.md
Review backport PRs within the context of:
main branch - are all changes backported?You should particularly pay attention to tests that are being backported - may the PR author have made mistakes?
IMPORTANT: only run this check on backport PRs. Hints on how to identify backport PRs will follow.
Backport PRs often have these characteristics:
backport label[9.4], [8.19]).This will backport the following commits from text.Stop if the PR isn't a backport and do NOT leave any comments on the PR to not create noise.
The goal is to identify the original PR that was merged into the main branch. It is often linked from within the PR description, and will very likely have a similar title to the backport PR (without any version prefix).
Fetch the original PR's diff and file list via GET /repos/elastic/kibana/pulls/{originalPR}.
Review the backport PR diff against the original PR. When a parity issue is found, link to the equivalent line in the original PR.
Highlight:
<<<<<<<, =======, or >>>>>>> exist in the diff..github/CODEOWNERS, deleted global setups still in Playwright config, require.resolve of deleted fixtures).targetBranch (e.g., using "Data View" on a 7.17 backport).Provide a compact review. Surface signal; humans decide on merging.
Post findings as inline PR comments on the offending line. Each inline comment must use a collapsible section to keep the PR readable. Structure:
**<short finding title>**
<1–2 sentence high-level overview of the issue and the fix.>
<details>
<summary>See details</summary>
<Full explanation, concrete fix, code blocks, before and after examples, and — for parity findings — a link to the equivalent line in the original PR like [original PR line](https://github.com/elastic/kibana/pull/<originalPR>/files#diff-...).>
</details>
Skip the <details> block if the finding genuinely fits in one line (e.g., a stray conflict marker). Preserve the blank lines inside the template exactly as shown; GitHub needs them to render the collapsible correctly.
When at least one inline comment is posted, the review comment body should follow this structure:
Review body template (use verbatim):
**Backport Review**: <status>
<sup>Share feedback in the [#appex-qa](https://elastic.slack.com/archives/C04HT4P1YS3) channel.</sup>
<status> must be exactly:
found <N> issue(s). See inline comments for details.No heading (##), no severity breakdown, no per-commit log.
On new comment pushes: