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

Method findEntryIssue

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

* Find existing issue for an entry (returns null if not found)

(collectionName: string, slug: string)

Source from the content-addressed store, hash-verified

1644 * Find existing issue for an entry (returns null if not found)
1645 */
1646 async findEntryIssue(collectionName: string, slug: string): Promise<GitHubIssue | null> {
1647 try {
1648 return await this.findNotesIssue(collectionName, slug, 'all');
1649 } catch (error) {
1650 console.warn('Failed to look up existing notes issue:', error);
1651 return null;
1652 }
1653 }
1654 /**
1655 * Get issue with ETag support for conditional requests
1656 * Returns { status: 304 } if not modified, or { status: 200, data, etag } if modified

Callers 2

getEntryNotesMethod · 0.95
addNoteToEntryMethod · 0.95

Calls 1

findNotesIssueMethod · 0.95

Tested by

no test coverage detected