# org.tangled.ci.approvePipeline

> Published by [tangled.org](https://lexicon.garden/identity/did:plc:wshs7t2adsemcrrd4snkeqli)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:wshs7t2adsemcrrd4snkeqli/org.tangled.ci.approvePipeline)
- [Documentation](https://lexicon.garden/lexicon/did:plc:wshs7t2adsemcrrd4snkeqli/org.tangled.ci.approvePipeline/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:wshs7t2adsemcrrd4snkeqli/org.tangled.ci.approvePipeline/examples)

## Definitions

### `org.tangled.ci.approvePipeline`

**Type**: `procedure`

Approve blocked pipeline.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `pipeline` | `string` (record-key) | Yes | pipeline id |
| `repo` | `string` (did) | Yes | git repository DID |

#### Errors

- **PipelineNotFound**: Pipeline not found
- **PipelineNotBlocked**: Pipeline has no workflow waiting for approval

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Approve blocked pipeline.",
      "errors": [
        {
          "description": "Pipeline not found",
          "name": "PipelineNotFound"
        },
        {
          "description": "Pipeline has no workflow waiting for approval",
          "name": "PipelineNotBlocked"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "pipeline": {
              "description": "pipeline id",
              "format": "record-key",
              "type": "string"
            },
            "repo": {
              "description": "git repository DID",
              "format": "did",
              "type": "string"
            }
          },
          "required": [
            "repo",
            "pipeline"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "org.tangled.ci.approvePipeline",
  "lexicon": 1
}
```
