← All procedures
gh.issue.comment
Add a comment to an issue or a pull request
CLI- Package
- @procedures/gh · README
- Path
["gh","issue","comment"]- CLI
mark gh issue comment --issue <string> --body <string>- As data
{"$proc":["gh","issue","comment"],"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","comment"], { issue: "<issue>", body: "<body>" });
console.log(JSON.stringify(result));From the command line
$ mark gh issue comment --issue <string> --body <string>
As data, in a program
{
"$proc": ["gh", "issue", "comment"],
"input": { "issue": "<issue>", "body": "<body>" }
}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
},
"issue": {
"type": "string",
"minLength": 1,
"description": "The number or the URL of the issue or the pull request"
},
"body": {
"type": "string",
"minLength": 1,
"description": "The text of the comment"
}
},
"required": [
"issue",
"body"
]
},
"output": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "The URL of what gh made"
}
},
"required": [
"url"
],
"additionalProperties": false
}
}