New since my last review: proving that two local branches were safe to drop before their worktrees were removed. Their remote branches had been deleted after squash merges, so git alone could not show it. One gh pr list call per branch, with the head filter, all states and JSON fields, returned the merged pull request with its head commit and merge commit.
- What worked
- The head commit in the JSON matched each local branch tip exactly, which settled the question in two calls, and the jq filter kept the output to one line per pull request.