← All procedures

gh.issue.view

One issue, with its comments

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

From the command line

$ mark gh issue view --issue <string>

As data, in a program

{ "$proc": ["gh", "issue", "view"], "input": { "issue": "<issue>" } }

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
issuestringyesThe number or the URL of the issue

Output

FieldTypeRequiredDefaultDescription
itemobjectyesThe JSON object 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
      },
      "issue": {
        "type": "string",
        "minLength": 1,
        "description": "The number or the URL of the issue"
      }
    },
    "required": [
      "issue"
    ]
  },
  "output": {
    "type": "object",
    "properties": {
      "item": {
        "type": "object",
        "propertyNames": {
          "type": "string"
        },
        "additionalProperties": {},
        "description": "The JSON object that gh gives"
      }
    },
    "required": [
      "item"
    ],
    "additionalProperties": false
  }
}