MCPcopy Create free account
hub / github.com/dmno-dev/bumpy / enableAutoMerge

Function enableAutoMerge

packages/bumpy/src/commands/ci.ts:1176–1188  ·  view source on GitHub ↗

Enable GitHub auto-merge on a PR, trying the available merge methods in order

(rootDir: string, prNumber: string)

Source from the content-addressed store, hash-verified

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

Callers 1

createChannelReleasePrFunction · 0.85

Calls 3

runArgsAsyncFunction · 0.90
validatePrNumberFunction · 0.85
withPatTokenFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…