feat(prinfo): add the PR/MR state in schema 1.4
Closed
JI
10h ago+208+208+012345678901234567890123456789-11-11-01234567890123456789
The PR/MR info material (CHAINLOOP_PR_INFO) does not record if the PR/MR is open, closed or merged. Policies cannot evaluate a rule only for merged PRs/MRs. For example, pr-min-approvals fails for each open PR that does not have its approvals yet.
This change adds the PR/MR info schema 1.4 with an optional state field (open, closed, merged). The 1.4 schema is the 1.3 schema with this one new field, so it keeps both forms of author. The CLI does not set state. The Chainloop platform sets it in its PR validation runs.
Refs PFM-8051.
AI disclosure: Claude Code helped to write this change.