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

- Component: `appmixer.github.list.GetPullRequestByNumber`
- Kind: Action
- Version: 1.0.1
- 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.GetPullRequestByNumber>

Fetches a single pull request based on the provided PR number.

## 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. |
| Pull Request Number (`number`) | text | Enter the pull request number. |

## Input ports

### Port `in`

_No fields defined for this port._

## Output ports

### Port `pullRequest`

| Field | Type | Description |
| --- | --- | --- |
| URL (`url`) | string | - |
| ID (`id`) | number | - |
| HTML URL (`html_url`) | string | - |
| Number (`number`) | number | - |
| State (`state`) | string | - |
| Title (`title`) | string | - |
| User (`user`) | object | - |
| Body (`body`) | string | - |
| Assignee (`assignee`) | object | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.github.list.GetPullRequestByNumber",
  "author": "Appmixer <info@appmixer.com>",
  "icon": "(data URI omitted)",
  "description": "Fetches a single pull request based on the provided PR number.",
  "version": "1.0.1",
  "private": false,
  "auth": {
    "service": "appmixer:github",
    "scope": [
      "user",
      "public_repo",
      "repo",
      "notifications",
      "gist"
    ]
  },
  "quota": {
    "manager": "appmixer:github",
    "resources": "requests",
    "scope": {
      "userId": "{{userId}}"
    }
  },
  "inPorts": [
    "in"
  ],
  "outPorts": [
    {
      "name": "pullRequest",
      "options": [
        {
          "label": "URL",
          "value": "url",
          "schema": {
            "type": "string",
            "example": "https://api.github.com/repos/octocat/Hello-World/issues/1"
          }
        },
        {
          "label": "ID",
          "value": "id",
          "schema": {
            "type": "number",
            "example": 987654321
          }
        },
        {
          "label": "HTML URL",
          "value": "html_url",
          "schema": {
            "type": "string",
            "example": "https://github.com/acme-corp/api-server/pull/42"
          }
        },
        {
          "label": "Number",
          "value": "number",
          "schema": {
            "type": "number",
            "example": 42
          }
        },
        {
          "label": "State",
          "value": "state",
          "schema": {
            "type": "string",
            "example": "open"
          }
        },
        {
          "label": "Title",
          "value": "title",
          "schema": {
            "type": "string",
            "example": "Add support for webhook events"
          }
        },
        {
          "label": "User",
          "value": "user",
          "schema": {
            "type": "object",
            "example": {
              "login": "octocat",
              "id": 583231
            }
          }
        },
        {
          "label": "Body",
          "value": "body",
          "schema": {
            "type": "string",
            "example": "This PR adds support for handling webhook events from external services."
          }
        },
        {
          "label": "Assignee",
          "value": "assignee",
          "schema": {
            "type": "object",
            "example": {
              "login": "octocat",
              "id": 583231
            }
          }
        }
      ]
    }
  ],
  "properties": {
    "schema": {
      "properties": {
        "repositoryId": {
          "type": "string",
          "pattern": "[^/]+[/][^/]+"
        },
        "number": {
          "type": "string"
        }
      },
      "required": [
        "repositoryId",
        "number"
      ]
    },
    "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"
            }
          }
        },
        "number": {
          "type": "text",
          "group": "config",
          "label": "Pull Request Number",
          "index": 2,
          "tooltip": "Enter the pull request number."
        }
      },
      "groups": {
        "config": {
          "label": "Configuration",
          "index": 1
        }
      }
    }
  }
}
```
