@the-vibe-company/armada 0.1.2 → 0.1.3
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/README.md +17 -1
- package/dist/armada.js +1885 -1056
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -80,6 +80,21 @@ armada release --reason "wrong ticket"
|
|
|
80
80
|
- `report` and `release` find the ticket from `--ticket`, then `ARMADA_TICKET`, then the current git branch (`feature/abc-12-…`).
|
|
81
81
|
- Turso is optional. When it is not configured or not reachable, the commands still write Linear and print a warning.
|
|
82
82
|
|
|
83
|
+
## Merge a finished pull request (coordinator)
|
|
84
|
+
|
|
85
|
+
```sh
|
|
86
|
+
armada merge 34 --dry-run # the checklist only
|
|
87
|
+
armada merge 34 # or the pull request URL; --ticket ABC-12 when the branch names no ticket
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
- The checklist names every failure and exits 1: the ticket carries `ready-to-merge` and its newest `Agent status: ready-to-merge — PR #34, head <sha>` comment names this pull request with the full 40-character SHA of its current head; the pull request is open, not a draft, titled in Commitizen format and `CLEAN` for GitHub; every `[gates] required_checks` check is green on the head; no review thread is unresolved.
|
|
91
|
+
- A head that lacks commits of its base branch is refused, unless `[gates] local_commands` is set: then the head is merged into the base in a throwaway `git worktree`, the commands run there, and the worktree is removed.
|
|
92
|
+
- Hints, never blocking: top-level functions, classes, types and constants the pull request removes or renames that the base branch still uses in files the pull request does not touch.
|
|
93
|
+
- One merge at a time per project: a `merge` lease in Turso (20 minutes, renewed before the merge) makes a second coordinator wait. When Turso is configured but unreachable the merge is refused; `--no-lock` forces it, with a warning and "merged without lock" in the ticket's merged comment. Without Turso configured at all (one coordinator) the merge runs unlocked with a warning.
|
|
94
|
+
- The merge is `gh pr merge <n> --squash --match-head-commit <sha>`, never `--delete-branch` (it removes local worktrees that have the branch checked out). A GitHub 5xx is retried with backoff, each time after checking that the pull request is still open at the same head. Success is reported only once GitHub shows the pull request as merged at that head.
|
|
95
|
+
- Then the ticket moves to Done with its agent labels removed, the pull request is linked, `Agent status: merged — …` is posted, the Turso hand-back is resolved and the runtime handle released. The output lists the workers in flight to tell and the worker session to archive with its runtime guide.
|
|
96
|
+
- It runs `gh` and `git` in the repository checkout and needs `LINEAR_API_KEY` and a GitHub token.
|
|
97
|
+
|
|
83
98
|
## Keys
|
|
84
99
|
|
|
85
100
|
Armada needs a few keys. Set them up once per machine with `armada auth login`, or pass them as environment variables, which always win over the stored ones (the way to go in CI and cloud sandboxes).
|
|
@@ -132,7 +147,8 @@ runtimes = ["Claude Code", "Codex", "Conductor"] # values of the runtime group
|
|
|
132
147
|
repository = "acme/widgets" # owner/name (required)
|
|
133
148
|
|
|
134
149
|
[gates]
|
|
135
|
-
required_checks = ["test"] # CI checks that must be green before a hand-back (default: every check)
|
|
150
|
+
required_checks = ["test"] # CI checks that must be green before a hand-back or a merge (default: every check)
|
|
151
|
+
local_commands = ["npm ci", "npm test"] # run by `armada merge` on a test merge of a head behind its base (default: none, rebase instead)
|
|
136
152
|
|
|
137
153
|
[policy]
|
|
138
154
|
silence_minutes = 15 # a worker with no report for longer is flagged silent (default 15)
|