> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# List Review Threads

- Component: `appmixer.github.list.ListReviewThreads`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.github 4.2.0](https://connectors.appmixer.com/connector/appmixer.github/4.2.0.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.github/4.2.0/component/appmixer.github.list.ListReviewThreads>

List the review threads of a pull request with their thread ID, resolved and outdated flags, file path and first comment. Thread resolution exists only in GitHub's GraphQL API — a review comment fetched over REST has no resolved field — so this is the only way to see which threads are still open. Feed the thread ID into Resolve Review Thread.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Repository (`repositoryId`) | text | Enter the repository in `owner/repo` format (e.g. `octocat/Hello-World`). You can also pick from the dynamically loaded list of your repositories. |
| Pull Request Number (`pullRequestNumber`) | text | The number of the pull request whose review threads to list (e.g. `1259`). |
| Resolved State (`resolvedState`) | select | Return every thread, or only the resolved or unresolved ones. "What is still open on this pull request" is the usual question. |
| Output Type (`outputType`) | select | Choose whether you want to receive the result set as one complete list, or first item only or one item at a time or stream the items to a file. |

## Output ports

### Port `out`

Variables are loaded dynamically from `/component/appmixer/github/list/ListReviewThreads?outPort=out&ignoreAuth=true`.

## Full metadata (component.json)

```json
{
  "name": "appmixer.github.list.ListReviewThreads",
  "label": "List Review Threads",
  "description": "List the review threads of a pull request with their thread ID, resolved and outdated flags, file path and first comment. Thread resolution exists only in GitHub's GraphQL API — a review comment fetched over REST has no resolved field — so this is the only way to see which threads are still open. Feed the thread ID into Resolve Review Thread.",
  "author": "Appmixer <info@appmixer.com>",
  "version": "1.0.0",
  "private": false,
  "auth": {
    "service": "appmixer:github",
    "scope": [
      "public_repo",
      "repo"
    ]
  },
  "quota": {
    "manager": "appmixer:github",
    "resources": "requests-projects",
    "scope": {
      "userId": "{{userId}}"
    }
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "repositoryId": {
            "type": "string",
            "pattern": "[^/]+[/][^/]+"
          },
          "pullRequestNumber": {
            "type": "string"
          },
          "resolvedState": {
            "type": "string",
            "enum": [
              "any",
              "unresolved",
              "resolved"
            ]
          },
          "outputType": {
            "type": "string",
            "enum": [
              "array",
              "first",
              "object",
              "file"
            ]
          }
        },
        "required": [
          "repositoryId",
          "pullRequestNumber"
        ]
      },
      "inspector": {
        "inputs": {
          "repositoryId": {
            "type": "text",
            "label": "Repository",
            "index": 1,
            "tooltip": "Enter the repository in `owner/repo` format (e.g. `octocat/Hello-World`). You can also pick from the dynamically loaded list of your repositories.",
            "source": {
              "url": "/component/appmixer/github/list/ListRepos?outPort=repositories",
              "data": {
                "transform": "./transformers#reposToSelectArray"
              }
            }
          },
          "pullRequestNumber": {
            "type": "text",
            "label": "Pull Request Number",
            "index": 2,
            "tooltip": "The number of the pull request whose review threads to list (e.g. `1259`)."
          },
          "resolvedState": {
            "type": "select",
            "label": "Resolved State",
            "index": 3,
            "defaultValue": "any",
            "tooltip": "Return every thread, or only the resolved or unresolved ones. \"What is still open on this pull request\" is the usual question.",
            "options": [
              {
                "label": "Any",
                "value": "any"
              },
              {
                "label": "Unresolved only",
                "value": "unresolved"
              },
              {
                "label": "Resolved only",
                "value": "resolved"
              }
            ]
          },
          "outputType": {
            "type": "select",
            "label": "Output Type",
            "index": 4,
            "defaultValue": "array",
            "tooltip": "Choose whether you want to receive the result set as one complete list, or first item only or one item at a time or stream the items to a file.",
            "options": [
              {
                "label": "First Item Only",
                "value": "first"
              },
              {
                "label": "All items at once",
                "value": "array"
              },
              {
                "label": "One item at a time",
                "value": "object"
              },
              {
                "label": "Store to CSV file",
                "value": "file"
              }
            ]
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "source": {
        "url": "/component/appmixer/github/list/ListReviewThreads?outPort=out&ignoreAuth=true",
        "data": {
          "properties": {
            "generateOutputPortOptions": true
          },
          "messages": {
            "in/outputType": "inputs/in/outputType",
            "in/repositoryId": "dummy/dummy",
            "in/pullRequestNumber": "1",
            "in/resolvedState": "inputs/in/resolvedState"
          }
        }
      }
    }
  ],
  "icon": "(data URI omitted)"
}
```
