@yemi33/minions 0.1.779 → 0.1.780
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -1
- package/engine/ado.js +1 -1
- package/engine/github.js +2 -2
- package/engine/shared.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/engine/ado.js
CHANGED
|
@@ -420,7 +420,7 @@ async function pollPrStatus(config) {
|
|
|
420
420
|
|
|
421
421
|
// Auto-complete: set auto-complete on PR when builds green + review approved
|
|
422
422
|
if (pr.status === PR_STATUS.ACTIVE && pr.reviewStatus === 'approved' && pr.buildStatus === 'passing' && !pr._autoCompleted) {
|
|
423
|
-
const autoComplete = config.engine?.autoCompletePrs
|
|
423
|
+
const autoComplete = config.engine?.autoCompletePrs === true; // opt-in
|
|
424
424
|
if (autoComplete) {
|
|
425
425
|
try {
|
|
426
426
|
const mergeStrategy = config.engine?.prMergeMethod === 'merge' ? 1 : config.engine?.prMergeMethod === 'rebase' ? 2 : 3; // 3 = squash
|
package/engine/github.js
CHANGED
|
@@ -420,10 +420,10 @@ async function pollPrStatus(config) {
|
|
|
420
420
|
|
|
421
421
|
// Auto-complete: merge PR when builds green + review approved
|
|
422
422
|
if (pr.status === PR_STATUS.ACTIVE && pr.reviewStatus === 'approved' && pr.buildStatus === 'passing' && !pr._autoCompleted) {
|
|
423
|
-
const autoComplete = config.engine?.autoCompletePrs
|
|
423
|
+
const autoComplete = config.engine?.autoCompletePrs === true; // opt-in
|
|
424
424
|
if (autoComplete) {
|
|
425
425
|
try {
|
|
426
|
-
const mergeMethod = config.engine?.prMergeMethod
|
|
426
|
+
const mergeMethod = ['squash', 'merge', 'rebase'].includes(config.engine?.prMergeMethod) ? config.engine.prMergeMethod : 'squash';
|
|
427
427
|
await execAsync(`gh pr merge ${prNum} --${mergeMethod} --repo ${slug} --delete-branch`, { timeout: 30000, encoding: 'utf-8' });
|
|
428
428
|
pr._autoCompleted = true;
|
|
429
429
|
log('info', `Auto-completed PR ${pr.id}: builds green + review approved → merged (${mergeMethod})`);
|
package/engine/shared.js
CHANGED
|
@@ -547,7 +547,7 @@ const ENGINE_DEFAULTS = {
|
|
|
547
547
|
lockRetryBackoffMs: 500, // base backoff between lock retries (doubles each attempt: 500ms, 1s, 2s, ...)
|
|
548
548
|
maxBuildFixAttempts: 3, // max consecutive auto-fix dispatch cycles per PR before escalation to human
|
|
549
549
|
buildFixGracePeriod: 600000, // 10min — wait for CI to run after build fix before re-dispatching
|
|
550
|
-
autoCompletePrs:
|
|
550
|
+
autoCompletePrs: false, // auto-merge PRs when builds green + review approved (opt-in)
|
|
551
551
|
prMergeMethod: 'squash', // merge method: squash, merge, rebase
|
|
552
552
|
ccModel: 'sonnet', // model for Command Center and doc-chat (sonnet, haiku, opus)
|
|
553
553
|
ccEffort: null, // effort level for CC/doc-chat (null, 'low', 'medium', 'high')
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yemi33/minions",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.780",
|
|
4
4
|
"description": "Multi-agent AI dev team that runs from ~/.minions/ — five autonomous agents share a single engine, dashboard, and knowledge base",
|
|
5
5
|
"bin": {
|
|
6
6
|
"minions": "bin/minions.js"
|