← All procedures

gh.run.list

The workflow runs of a repository

CLI
Package
@procedures/gh · README
Path
["gh","run","list"]
CLI
mark gh run list
As data
{"$proc":["gh","run","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","run","list"], {});
console.log(JSON.stringify(result));

From the command line

$ mark gh run list

As data, in a program

{ "$proc": ["gh", "run", "list"], "input": {} }

Input

FieldTypeRequiredDefaultDescription
repostringnoThe repository as owner/name (default: the repository of the folder)
cwdstringnoThe folder where gh runs
timeoutMsintegernoThe time limit of the command, in milliseconds
workflowstringnoThe name or the file of a workflow
branchstringnoOnly the runs of this branch
statusstringnoOnly the runs with this status, for example completed or failure
limitintegernoThe most runs (default 20)

Output

FieldTypeRequiredDefaultDescription
itemsobject[]yesThe JSON objects that gh gives
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
      },
      "workflow": {
        "description": "The name or the file of a workflow",
        "type": "string"
      },
      "branch": {
        "description": "Only the runs of this branch",
        "type": "string"
      },
      "status": {
        "description": "Only the runs with this status, for example completed or failure",
        "type": "string"
      },
      "limit": {
        "description": "The most runs (default 20)",
        "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
  }
}