Properties
| Name | Type | Description |
|---|---|---|
| repository | object | |
| branch | object | |
| commit | object |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/pullrequest_endpoint",
"title": "Pull Request Endpoint",
"type": "object",
"properties": {
"repository": {
"$ref": "#/components/schemas/repository"
},
"branch": {
"type": "object",
"title": "Pull Request Branch",
"properties": {
"name": {
"type": "string"
},
"merge_strategies": {
"type": "array",
"description": "Available merge strategies, when this endpoint is the destination of the pull request.",
"items": {
"type": "string",
"enum": [
"merge_commit",
"squash",
"fast_forward"
]
}
},
"default_merge_strategy": {
"type": "string",
"description": "The default merge strategy, when this endpoint is the destination of the pull request."
}
},
"additionalProperties": false,
"example": "example_value"
},
"commit": {
"type": "object",
"title": "Pull Request Commit",
"properties": {
"hash": {
"type": "string",
"pattern": "[0-9a-f]{7,}?"
}
},
"additionalProperties": false,
"example": "example_value"
}
},
"additionalProperties": false
}