MCPcopy Create free account
hub / github.com/github/gh-aw / writePatch

Function writePatch

actions/setup/js/create_pull_request.test.cjs:1738–1742  ·  view source on GitHub ↗
(branch, content)

Source from the content-addressed store, hash-verified

1736 }
1737
1738 function writePatch(branch, content) {
1739 const p = canonicalPatchPath(branch);
1740 fs.writeFileSync(p, content);
1741 return p;
1742 }
1743
1744 function extractCompareUrlFromIssueBody(issueBody) {
1745 const match = String(issueBody).match(/https:\/\/[^)\s]+\/compare\/[^)\s]+/);

Callers 1

Calls 1

canonicalPatchPathFunction · 0.70

Tested by

no test coverage detected