MCPcopy Create free account
hub / github.com/decaporg/decap-cms / getIssueComments

Method getIssueComments

packages/decap-cms-backend-github/src/API.ts:1745–1752  ·  view source on GitHub ↗

* Paged, because this endpoint defaults to 30 per page - a thread past that * silently lost its older notes, in the pane and in polling alike. * * Errors propagate deliberately. Returning an empty list on a failed request * is indistinguishable from a thread whose comments were all delet

(issueNumber: number)

Source from the content-addressed store, hash-verified

1743 * leaves the manager's last state alone and lets it retry.
1744 */
1745 private async getIssueComments(issueNumber: number): Promise<GitHubIssue[]> {
1746 const response = await this.requestAllPages<GitHubIssue>(
1747 `${this.repoURL}/issues/${issueNumber}/comments`,
1748 { params: { per_page: 100 } },
1749 );
1750
1751 return Array.isArray(response) ? response : [];
1752 }
1753
1754 /**
1755 * Create a comment on a GitHub issue

Callers 2

getIssueWithETagMethod · 0.95
getEntryNotesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected