# Show merged PR status when no open PR exists · gitcafe/t3code

[View on GitCafe](https://git.cafe/gitcafe/t3code/commit/46347e2bd273dd387d52b265691ab456d3e936be)

Repository: [gitcafe/t3code](https://git.cafe/gitcafe/t3code)

Visibility: public

Requested revision: 46347e2bd273dd387d52b265691ab456d3e936be

Requested commit: 46347e2bd273dd387d52b265691ab456d3e936be

Commit: 46347e2bd273dd387d52b265691ab456d3e936be

Tree: 93a0eec5dd1f4de200266ae37bf5ab1f8c87339a

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
Show merged PR status when no open PR exists

- extend `GitStatusResult` with nullable `mergedPr` metadata
- in server git status, query merged PR only when no open PR is found
- in sidebar, display a `Merged` status pill for threads on branches with merged PRs
- update server/web/contracts tests for the new status shape

```

## Parents

- [7fc53dadc7d66483cdeac70f233059490785c9e2](https://git.cafe/gitcafe/t3code/commit/7fc53dadc7d66483cdeac70f233059490785c9e2?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/t3code/tree/46347e2bd273dd387d52b265691ab456d3e936be?format=markdown)
