> 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).

# Find Review Comments

- Component: `appmixer.github.list.FindReviewComments`
- 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.FindReviewComments>

Search the inline review comments of a repository — the ones anchored to a line of a pull request diff. Give a pull request number to search a single pull request, or leave it empty to search the whole repository. Optionally filter by author login and by bots vs. humans.

## 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 | Optional. Search only this pull request (e.g. `1259`), in which case every comment is returned. Leave empty to search the whole repository, which returns the 100 most recently updated review comments. |
| Author (`author`) | text | Optional. Comma-separated author logins, matched case-insensitively as substrings (e.g. `copilot, dependabot`). Substring matching is intentional: the same actor is reported under a different login on every GitHub API surface, so `copilot` matches `Copilot` and `copilot-pull-request-reviewer` alike. |
| Author Type (`authorType`) | select | Restrict to comments written by bot accounts (code review bots, apps) or by human accounts. |
| Updated Since (`since`) | date-time | Optional. Only comments updated at or after this moment. Note that GitHub filters on last-updated, not created, so an old comment that was edited recently is included. |
| 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/FindReviewComments?outPort=out&ignoreAuth=true`.

### Port `notFound`

| Field | Type | Description |
| --- | --- | --- |
| Repository (`repositoryId`) | string | - |
| Pull Request Number (`pullRequestNumber`) | string | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.github.list.FindReviewComments",
  "label": "Find Review Comments",
  "description": "Search the inline review comments of a repository — the ones anchored to a line of a pull request diff. Give a pull request number to search a single pull request, or leave it empty to search the whole repository. Optionally filter by author login and by bots vs. humans.",
  "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",
    "scope": {
      "userId": "{{userId}}"
    }
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "repositoryId": {
            "type": "string",
            "pattern": "[^/]+[/][^/]+"
          },
          "pullRequestNumber": {
            "type": "string"
          },
          "author": {
            "type": "string"
          },
          "authorType": {
            "type": "string",
            "enum": [
              "any",
              "bots",
              "humans"
            ]
          },
          "since": {
            "type": "string",
            "format": "date-time"
          },
          "outputType": {
            "type": "string",
            "enum": [
              "array",
              "first",
              "object",
              "file"
            ]
          }
        },
        "required": [
          "repositoryId"
        ]
      },
      "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": "Optional. Search only this pull request (e.g. `1259`), in which case every comment is returned. Leave empty to search the whole repository, which returns the 100 most recently updated review comments."
          },
          "author": {
            "type": "text",
            "label": "Author",
            "index": 3,
            "tooltip": "Optional. Comma-separated author logins, matched case-insensitively as substrings (e.g. `copilot, dependabot`). Substring matching is intentional: the same actor is reported under a different login on every GitHub API surface, so `copilot` matches `Copilot` and `copilot-pull-request-reviewer` alike."
          },
          "authorType": {
            "type": "select",
            "label": "Author Type",
            "index": 4,
            "defaultValue": "any",
            "tooltip": "Restrict to comments written by bot accounts (code review bots, apps) or by human accounts.",
            "options": [
              {
                "label": "Anyone",
                "value": "any"
              },
              {
                "label": "Bots only",
                "value": "bots"
              },
              {
                "label": "Humans only",
                "value": "humans"
              }
            ]
          },
          "since": {
            "type": "date-time",
            "label": "Updated Since",
            "index": 5,
            "tooltip": "Optional. Only comments updated at or after this moment. Note that GitHub filters on last-updated, not created, so an old comment that was edited recently is included."
          },
          "outputType": {
            "type": "select",
            "label": "Output Type",
            "index": 6,
            "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/FindReviewComments?outPort=out&ignoreAuth=true",
        "data": {
          "properties": {
            "generateOutputPortOptions": true
          },
          "messages": {
            "in/outputType": "inputs/in/outputType",
            "in/repositoryId": "dummy/dummy"
          }
        }
      }
    },
    {
      "name": "notFound",
      "schema": {
        "type": "object",
        "properties": {
          "repositoryId": {
            "type": "string",
            "title": "Repository",
            "example": "Appmixer-ai/appmixer-connectors"
          },
          "pullRequestNumber": {
            "type": "string",
            "title": "Pull Request Number",
            "example": "1259"
          }
        }
      }
    }
  ],
  "icon": "(data URI omitted)"
}
```
