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

Method getIssueState

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

* Get the current state of an issue (without ETag)

(issueNumber: number)

Source from the content-addressed store, hash-verified

1723 * Get the current state of an issue (without ETag)
1724 */
1725 async getIssueState(issueNumber: number): Promise<IssueState> {
1726 const response = await this.getIssueWithETag(issueNumber, null);
1727 if (response.status === 200 && response.data) {
1728 return response.data;
1729 }
1730 throw new Error('Failed to get issue state');
1731 }
1732 /**
1733 * Get comments from a GitHub issue
1734 */

Callers

nothing calls this directly

Calls 1

getIssueWithETagMethod · 0.95

Tested by

no test coverage detected