MCPcopy Create free account
hub / github.com/remix-run/react-router / getCommits

Function getCommits

scripts/release-comments.ts:103–120  ·  view source on GitHub ↗
(from: Tag, to: Tag)

Source from the content-addressed store, hash-verified

101}
102
103function getCommits(from: Tag, to: Tag): Array<string> {
104 let stdout = logAndExec(
105 [
106 "git",
107 "log",
108 "--pretty=format:%H",
109 `${from.raw}...${to.raw}`,
110 DIRECTORY_TO_CHECK!,
111 ],
112 true,
113 );
114
115 invariant(stdout.trim() !== "", "No commits found between tags");
116
117 let gitCommits = stdout.split("\n");
118 debug(`> commitCount: ${gitCommits.length}`);
119 return gitCommits;
120}
121
122async function commentOnPrAndLinkedIssues(pr: MergedPR, latest: Tag) {
123 let prComment = `🤖 Hello there,\n\nWe recently published version \`${latest.clean}\` which includes this pull request. If you'd like to take it for a test run please try it out and let us know what you think!\n\nThanks!`;

Callers 1

Calls 3

logAndExecFunction · 0.90
invariantFunction · 0.70
debugFunction · 0.70

Tested by

no test coverage detected