Repository navigation
feat: add CI, an example merge policy, and install prerequisites - #14
Merged
Merged
Conversation
CI runs check-port and its tests, then the script suites and typecheck, on every PR and push to main. Without it merge-gate refuses every PR here with checks-missing. merge-policy.example.json is loaded by a policy test so it cannot rot, and the README documents the opt-in merge policy and the gh, gh stack, and bun requirements. Tested: bun scripts/check-port.ts (0 findings); bun test merge-gate/policy (25 pass); bun run test in skills/poteto-mode/scripts (174 pass); bun run typecheck (clean). The workflow itself runs for the first time on this PR.
humanOnly needs a collaborator's approval on the head, not 'only you merge'. The README now says how to create the policy file and lists the PR conditions merge-gate also checks. CI gets contents: read and cancels superseded runs. Tested: claims re-read against decide.ts and policy.ts; bun scripts/check-port.ts (0 findings).
…destructive **/*billing* only matched a file named billing, so src/billing/charge.ts needed no human. The example now covers directories and its test checks real paths. The curl step no longer overwrites an edited policy, the README warns that plugin update overwrites models.md edits, and CI pins bun 1.3.x so a bun release cannot turn every agent merge red. Tested: bun test merge-gate/policy (25 pass); bun run typecheck clean; bun scripts/check-port.ts (0 findings).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The repo has no CI, so
merge-gaterefuses every PR here withchecks-missing, and a bad merge reaches every installer because the plugin has no version. The README also never says whatmerge-gateneeds or what the policy file looks like.What changed
.github/workflows/ci.ymlrunscheck-port, its tests, the script suites, and the typecheck.merge-policy.example.json, loaded by a policy test so it stays valid.Verification
check-port0 findings, 174 script tests pass, typecheck clean.