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

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

Update a pull request.

## Properties

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

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Pull Request (`pullRequest`) | text | Select a Pull Request to update. You can also type the value manually. |
| Title (`title`) | text | Title of the PR. |
| Description (`body`) | textarea | Description of the PR. |
| Base (`base`) | text | The name of the branch you want the PR pulled into. |
| State (`state`) | select | Choose whether you want to update the PR to open or closed. |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| ID (`id`) | integer | - |
| HTML URL (`html_url`) | string | - |
| URL (`url`) | string | - |
| Title (`title`) | string | - |
| Body (`body`) | string | - |
| State (`state`) | string | - |
| Number (`number`) | integer | - |
| Created At (`created_at`) | string | - |
| Closed At (`closed_at`) | string | - |
| Assignee ID (`assignee.id`) | integer | - |
| Assignee Login (`assignee.login`) | string | - |
| Assignee Type (`assignee.type`) | string | - |
| Assignee HTML URL (`assignee.html_url`) | string | - |
| User ID (`user.id`) | integer | - |
| User Login (`user.login`) | string | - |
| User Type (`user.type`) | string | - |
| User HTML URL (`user.html_url`) | string | - |
| Head (`head.label`) | string | - |
| Base (`base.label`) | string | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.github.list.UpdatePullRequest",
  "author": "Appmixer <info@appmixer.com>",
  "icon": "(data URI omitted)",
  "description": "Update a pull request.",
  "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": {
          "pullRequest": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "body": {
            "type": "string"
          },
          "base": {
            "type": "string"
          },
          "state": {
            "type": "string"
          }
        },
        "required": [
          "pullRequest"
        ]
      },
      "inspector": {
        "inputs": {
          "pullRequest": {
            "type": "text",
            "group": "transformation",
            "label": "Pull Request",
            "index": 1,
            "source": {
              "url": "/component/appmixer/github/list/ListPRs?outPort=out",
              "data": {
                "properties": {
                  "repositoryId": "properties/repositoryId"
                },
                "transform": "./transformers#prToSelectArray"
              }
            },
            "tooltip": "Select a Pull Request to update. You can also type the value manually."
          },
          "title": {
            "type": "text",
            "group": "transformation",
            "tooltip": "Title of the PR.",
            "label": "Title",
            "index": 2
          },
          "body": {
            "type": "textarea",
            "group": "transformation",
            "tooltip": "Description of the PR.",
            "label": "Description",
            "index": 3
          },
          "base": {
            "type": "text",
            "group": "transformation",
            "label": "Base",
            "index": 4,
            "source": {
              "url": "/component/appmixer/github/list/ListBranches?outPort=branches",
              "data": {
                "properties": {
                  "repositoryId": "properties/repositoryId"
                },
                "transform": "./transformers#branchesToSelectArray"
              }
            },
            "tooltip": "The name of the branch you want the PR pulled into."
          },
          "state": {
            "type": "select",
            "group": "transformation",
            "label": "State",
            "index": 5,
            "options": [
              {
                "label": "Open",
                "value": "open"
              },
              {
                "label": "Closed",
                "value": "closed"
              }
            ],
            "tooltip": "Choose whether you want to update the PR to open or closed."
          }
        },
        "groups": {
          "transformation": {
            "label": "Transformation",
            "index": 1
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "options": [
        {
          "label": "ID",
          "value": "id",
          "schema": {
            "type": "integer",
            "example": 1234567890
          }
        },
        {
          "label": "HTML URL",
          "value": "html_url",
          "schema": {
            "type": "string",
            "example": "https://github.com/octocat/Hello-World/issues/1"
          }
        },
        {
          "label": "URL",
          "value": "url",
          "schema": {
            "type": "string",
            "example": "https://api.github.com/repos/octocat/Hello-World/issues/1"
          }
        },
        {
          "label": "Title",
          "value": "title",
          "schema": {
            "type": "string",
            "example": "Found a bug"
          }
        },
        {
          "label": "Body",
          "value": "body",
          "schema": {
            "type": "string",
            "example": "I'm having a problem with this."
          }
        },
        {
          "label": "State",
          "value": "state",
          "schema": {
            "type": "string",
            "example": "open"
          }
        },
        {
          "label": "Number",
          "value": "number",
          "schema": {
            "type": "integer",
            "example": 42
          }
        },
        {
          "label": "Created At",
          "value": "created_at",
          "schema": {
            "type": "string",
            "example": "2024-01-15T10:30:00Z"
          }
        },
        {
          "label": "Closed At",
          "value": "closed_at",
          "schema": {
            "type": "string",
            "example": "2024-01-16T08:00:00Z"
          }
        },
        {
          "label": "Assignee ID",
          "value": "assignee.id",
          "schema": {
            "type": "integer",
            "example": 583231
          }
        },
        {
          "label": "Assignee Login",
          "value": "assignee.login",
          "schema": {
            "type": "string",
            "example": "octocat"
          }
        },
        {
          "label": "Assignee Type",
          "value": "assignee.type",
          "schema": {
            "type": "string",
            "example": "User"
          }
        },
        {
          "label": "Assignee HTML URL",
          "value": "assignee.html_url",
          "schema": {
            "type": "string",
            "example": "https://github.com/octocat"
          }
        },
        {
          "label": "User ID",
          "value": "user.id",
          "schema": {
            "type": "integer",
            "example": 583231
          }
        },
        {
          "label": "User Login",
          "value": "user.login",
          "schema": {
            "type": "string",
            "example": "octocat"
          }
        },
        {
          "label": "User Type",
          "value": "user.type",
          "schema": {
            "type": "string",
            "example": "User"
          }
        },
        {
          "label": "User HTML URL",
          "value": "user.html_url",
          "schema": {
            "type": "string",
            "example": "https://github.com/octocat"
          }
        },
        {
          "label": "Head",
          "value": "head.label",
          "schema": {
            "type": "string",
            "example": "octocat:new-feature"
          }
        },
        {
          "label": "Base",
          "value": "base.label",
          "schema": {
            "type": "string",
            "example": "octocat:main"
          }
        }
      ]
    }
  ],
  "properties": {
    "schema": {
      "properties": {
        "repositoryId": {
          "type": "string",
          "pattern": "[^/]+[/][^/]+"
        }
      },
      "required": [
        "repositoryId"
      ]
    },
    "inspector": {
      "inputs": {
        "repositoryId": {
          "type": "text",
          "group": "config",
          "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"
            }
          }
        }
      },
      "groups": {
        "config": {
          "label": "Configuration",
          "index": 1
        }
      }
    }
  }
}
```
