Skip to content
Back to skills

Lookup Github Unresolved Review Comments

ASecurity

Lookup unresolved review comments in the current GitHub Pull Request

  • 2 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added February 10, 2026
developmentbashnodegitapi

Works with

  • api

Security analysis

A100/100

Scanned February 10, 2026

npx -y skills add tomoasleep/dotfiles --skill lookup-github-unresolved-review-comments --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Lookup Github Unresolved Review Comments?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Lookup Github Unresolved Review Comments
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tomoasleep-lookup-github-unresolved-review-comments/badge)](https://www.skillsdirectory.com/skills/tomoasleep-lookup-github-unresolved-review-comments)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: lookup-github-unresolved-review-comments
description: Lookup unresolved review comments in the current GitHub Pull Request
---

#### ghコマンド

以下のコマンドでResolveしていないレビューコメントを取得できます。

```bash
OWNER_REPO=$(gh repo view --json nameWithOwner --jq '.nameWithOwner')
OWNER=$(echo $OWNER_REPO | cut -d'/' -f1)
REPO=$(echo $OWNER_REPO | cut -d'/' -f2)
PR_NUMBER=$(gh pr view --json number --jq '.number')

gh api graphql -f query="
query {
  repository(owner: \"${OWNER}\", name: \"${REPO}\") {
    pullRequest(number: ${PR_NUMBER}) {
      number
      title
      url
      state
      author {
        login
      }
      reviewRequests(first: 20) {
        nodes {
          requestedReviewer {
            ... on User {
              login
            }
          }
        }
      }
      reviewThreads(last: 20) {
        edges {
          node {
            isResolved
            isOutdated
            path
            line
            comments(last: 20) {
              nodes {
                author {
                  login
                }
                body
                url
                createdAt
              }
            }
          }
        }
      }
    }
  }
}" --jq '
  .data.repository.pullRequest as $pr |
  {
    pr_number: $pr.number,
    title: $pr.title,
    url: $pr.url,
    state: $pr.state,
    author: $pr.author.login,
    requested_reviewers: [.data.repository.pullRequest.reviewRequests.nodes[].requestedReviewer.login],
    unresolved_threads: [
      $pr.reviewThreads.edges[] |
      select(.node.isResolved == false) |
      {
        path: .node.path,
        line: .node.line,
        is_outdated: .node.isOutdated,
        comments: [
          .node.comments.nodes[] |
          {
            author: .author.login,
            body: .body,
            url: .url,
            created_at: .createdAt
          }
        ]
      }
    ]
  }
'
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.