Enable GitHub auto-merge on a PR, trying the available merge methods in order
(rootDir: string, prNumber: string)
| 1174 | input: updatedBody, |
| 1175 | }), |
| 1176 | ); |
| 1177 | } |
| 1178 | |
| 1179 | if (!process.env.BUMPY_GH_TOKEN) { |
| 1180 | // Push again with the custom token now that the PR exists (see createVersionPr) |
| 1181 | pushWithToken(rootDir, branch, config); |
| 1182 | } |
| 1183 | } |
| 1184 | |
| 1185 | if (channel.versionPr.automerge && prNumber) { |
| 1186 | await enableAutoMerge(rootDir, prNumber); |
| 1187 | } |
| 1188 | |
| 1189 | // Switch back to the channel branch |
| 1190 | runArgs(['git', 'checkout', baseBranch], { cwd: rootDir }); |
| 1191 |
no test coverage detected
searching dependent graphs…