# dev.knotless.queuePull

> Published by [lexicons.knotless.dev](https://lexicon.garden/identity/did:plc:yqsg7znbbhfmj3a2nrpnaerk)

✓ This is the authoritative definition for this NSID.

## Description

Puts a pull in its branch's merge queue as the account logged in to this appview's pages.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.queuePull)
- [Documentation](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.queuePull/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.queuePull/examples)

## Definitions

### `dev.knotless.queuePull`

**Type**: `procedure`

Puts an open pull at the back of its target branch's merge queue, as `knotless merge --queue` does, as the account logged in to this appview's web pages, and returns at once with its place: a runner the repository names lands it with the batch it is in once that passes. One queued already keeps its place. The owner and collaborators may, in a repository that names runners. Requires the session cookie the pages' login sets.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `pull` | `string` (at-uri) | Yes | The dev.knotless.pull record. |
| `repo` | `string` (at-uri) | Yes | The repository's dev.knotless.repo record, as dev.knotless.getRepo takes it. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `base` | `string` | Yes | The branch whose queue it is in. |
| `of` | `integer` | Yes | How many are queued there. |
| `position` | `integer` | Yes | Its place in that queue, from 1. |

#### Errors

- **NotFound**: No such repository.
- **AuthenticationRequired**: No account is logged in to the pages, or its session has ended.
- **UpstreamFailure**: It was not queued, as the reason says.

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Puts an open pull at the back of its target branch's merge queue, as `knotless merge --queue` does, as the account logged in to this appview's web pages, and returns at once with its place: a runner the repository names lands it with the batch it is in once that passes. One queued already keeps its place. The owner and collaborators may, in a repository that names runners. Requires the session cookie the pages' login sets.",
      "errors": [
        {
          "description": "No such repository.",
          "name": "NotFound"
        },
        {
          "description": "No account is logged in to the pages, or its session has ended.",
          "name": "AuthenticationRequired"
        },
        {
          "description": "It was not queued, as the reason says.",
          "name": "UpstreamFailure"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "pull": {
              "description": "The dev.knotless.pull record.",
              "format": "at-uri",
              "type": "string"
            },
            "repo": {
              "description": "The repository's dev.knotless.repo record, as dev.knotless.getRepo takes it.",
              "format": "at-uri",
              "type": "string"
            }
          },
          "required": [
            "repo",
            "pull"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "base": {
              "description": "The branch whose queue it is in.",
              "type": "string"
            },
            "of": {
              "description": "How many are queued there.",
              "minimum": 1,
              "type": "integer"
            },
            "position": {
              "description": "Its place in that queue, from 1.",
              "minimum": 1,
              "type": "integer"
            }
          },
          "required": [
            "base",
            "position",
            "of"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "description": "Puts a pull in its branch's merge queue as the account logged in to this appview's pages.",
  "id": "dev.knotless.queuePull",
  "lexicon": 1
}
```
