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

# appmixer.github.list.CreateComment

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

Post a comment to the conversation timeline of an issue or a pull request. This is not an inline comment on a line of a diff (use Create Review Comment), nor a reply inside a review thread (use Reply To Review Comment), nor a comment on a commit.

## 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. |
| Issue (`issue`) | text | Select an Issue to comment on. You can also type the value manually. |
| Body (`body`) | textarea | Body of Comment. |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| ID (`id`) | integer | - |
| URL (`url`) | string | - |
| Body (`body`) | string | - |
| Created At (`created_at`) | string | - |
| User ID (`user.id`) | integer | - |
| User Login (`user.login`) | string | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.github.list.CreateComment",
  "author": "Appmixer <info@appmixer.com>",
  "icon": "(data URI omitted)",
  "description": "Post a comment to the conversation timeline of an issue or a pull request. This is not an inline comment on a line of a diff (use Create Review Comment), nor a reply inside a review thread (use Reply To Review Comment), nor a comment on a commit.",
  "private": false,
  "auth": {
    "service": "appmixer:github",
    "scope": [
      "user",
      "public_repo",
      "repo",
      "notifications",
      "gist"
    ]
  },
  "quota": {
    "manager": "appmixer:github",
    "resources": "requests",
    "scope": {
      "userId": "{{userId}}"
    }
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "repositoryId": {
            "type": "string"
          },
          "issue": {
            "type": "string"
          },
          "body": {
            "type": "string"
          }
        },
        "required": [
          "repositoryId",
          "issue"
        ]
      },
      "inspector": {
        "inputs": {
          "repositoryId": {
            "type": "text",
            "group": "transformation",
            "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"
              }
            }
          },
          "issue": {
            "type": "text",
            "group": "transformation",
            "label": "Issue",
            "index": 2,
            "source": {
              "url": "/component/appmixer/github/list/ListIssues?outPort=out",
              "data": {
                "properties": {
                  "repositoryId": "inputs/in/repositoryId"
                },
                "transform": "./transformers#issuesToSelectArray"
              }
            },
            "tooltip": "Select an Issue to comment on. You can also type the value manually."
          },
          "body": {
            "type": "textarea",
            "group": "transformation",
            "tooltip": "Body of Comment.",
            "label": "Body",
            "index": 3
          }
        },
        "groups": {
          "transformation": {
            "label": "Transformation",
            "index": 1
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "options": [
        {
          "label": "ID",
          "value": "id",
          "schema": {
            "type": "integer",
            "example": 1234567890
          }
        },
        {
          "label": "URL",
          "value": "url",
          "schema": {
            "type": "string",
            "example": "https://api.github.com/repos/octocat/Hello-World/issues/1"
          }
        },
        {
          "label": "Body",
          "value": "body",
          "schema": {
            "type": "string",
            "example": "I'm having a problem with this."
          }
        },
        {
          "label": "Created At",
          "value": "created_at",
          "schema": {
            "type": "string",
            "example": "2024-01-15T10:30:00Z"
          }
        },
        {
          "label": "User ID",
          "value": "user.id",
          "schema": {
            "type": "integer",
            "example": 583231
          }
        },
        {
          "label": "User Login",
          "value": "user.login",
          "schema": {
            "type": "string",
            "example": "octocat"
          }
        }
      ]
    }
  ]
}
```
