Skip to content

feat(forge): carry PR head SHA, mergeable state and review commit id (RIG-5182) - #2194

Merged
mattwilkinsonn merged 1 commit into
mainfrom
compass-forge/rig-5182-pr-fields
Oct 12, 2026
Merged

mattwilkinsonn merged 1 commit into
mainfrom
compass-forge/rig-5182-pr-fields

Conversation

@rigel-mintaka

@rigel-mintaka rigel-mintaka commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

This PR is part of a stack containing 2 PRs:

  1. main
  2. "feat(forge): carry PR head SHA, mergeable state and review commit id (RIG-5182)" (this PR)
  3. feat(forge): merge-queue provider with Trunk and a queue sweep (RIG-5183) #2210

Summary

Status board T14 (RIG-5182): the GitHub reader keeps three fields it already receives and the stored pr JSONB now carries them.

Tests

  • TestGetPullRequestHappy and the golden fixtures decode the three fields from GitHub responses. Mutation: dropping the mergeable_state copy fails both.
  • TestTranslatePullRequestRoundTrip covers the wire copy.
  • TestPullRequestFieldsSurviveStoredPRRoundTrip (pgtest): the fields survive the stored pr JSONB, and a row stored without them decodes empty.

Notes

No other provider produces PRs; Linear has no PR reads.

…(RIG-5182)

GitHub's pull detail and review rows already return head.sha,
mergeable_state and commit_id. Decode them into forge.PullRequest and
forge.Review, and copy them into the head_sha, mergeable_state and
commit_id proto fields so the stored pr JSONB carries them.

Co-authored-by: Matt Wilkinson <matt@rigel.build>
@trunk-io

trunk-io Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

@linear-code

linear-code Bot commented Oct 11, 2026

Copy link
Copy Markdown

RIG-5182

@github-actions

Copy link
Copy Markdown

Compass engineering docs preview: https://compass-forge-rig-5182-pr-fi.compass-eng-docs.pages.dev

Deployed from compass-forge/rig-5182-pr-fields at c912f3b.

@mattwilkinsonn
mattwilkinsonn merged commit ce09ae6 into main Oct 12, 2026
20 checks passed
@mattwilkinsonn
mattwilkinsonn deleted the compass-forge/rig-5182-pr-fields branch October 12, 2026 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants