(from: Tag, to: Tag)
| 101 | } |
| 102 | |
| 103 | function 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 | |
| 122 | async 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!`; |
no test coverage detected