← All procedures
gh.pr.list
The pull requests of a repository
CLI- Package
- @procedures/gh · README
- Path
["gh","pr","list"]- CLI
mark gh pr list- As data
{"$proc":["gh","pr","list"],"input":{}}
Use it
In TypeScript
import { Client, LocalTransport, PROCEDURE_REGISTRY } from "@procedures/client";
import "@procedures/gh/register"; // registers its procedures
const client = new Client(new LocalTransport({ registry: PROCEDURE_REGISTRY }));
const result = await client.exec(["gh","pr","list"], {});
console.log(JSON.stringify(result));From the command line
$ mark gh pr list
As data, in a program
{ "$proc": ["gh", "pr", "list"], "input": {} }Input
Output
JSON Schemas
{
"input": {
"type": "object",
"properties": {
"repo": {
"description": "The repository as owner/name (default: the repository of the folder)",
"type": "string",
"pattern": "^[\\w.-]+\\/[\\w.-]+$"
},
"cwd": {
"description": "The folder where gh runs",
"type": "string"
},
"timeoutMs": {
"description": "The time limit of the command, in milliseconds",
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
},
"state": {
"description": "The state (default open)",
"type": "string",
"enum": [
"open",
"closed",
"merged",
"all"
]
},
"author": {
"description": "Only the pull requests of this author",
"type": "string"
},
"base": {
"description": "Only the pull requests into this branch",
"type": "string"
},
"head": {
"description": "Only the pull requests from this branch",
"type": "string"
},
"search": {
"description": "A search of GitHub",
"type": "string"
},
"limit": {
"description": "The most items (default 30)",
"type": "integer",
"minimum": 1,
"maximum": 1000
}
}
},
"output": {
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"description": "The JSON objects that gh gives"
}
},
"required": [
"items"
],
"additionalProperties": false
}
}