build: add the pre-push review's configuration
.review-gates/config.json configures Crafter.Review's pre-push review for this repository. Its commits mode lists four lenses: repo-better-solution, repo-bug-prover, repo-security and repo-facts. For each it names a section of this repository's own, under .review-gates/lenses/. It sets requireSigned, forbids AI attribution trailers, and lists fourteen gate0 commands: the version check, the tests, a build of each product and five lint runs. It names no authors: a patch that came by mail, as the README asks for one, keeps its author. One of the five lint runs is new to the guide: the daemon's, whose sources list implementations/nostrod.cpp, which the other four's do not. "Code style" and the command list name it. .gitignore gains the review's two generated directories. AGENTS.template.md gains the directory in its table and two commit guidelines about the review, puts the review into the release recipe before the tag, names the two generated directories among what is never committed, and loses the sentence that asked for a Co-Authored-By trailer on a commit an agent wrote.
This commit is contained in:
parent
d35c486424
commit
564fcdfe0e
7 changed files with 372 additions and 4 deletions
48
.review-gates/config.json
Normal file
48
.review-gates/config.json
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
{
|
||||
"base": "origin/master",
|
||||
"rangeFrom": "upstream",
|
||||
"aiTrailers": "forbid",
|
||||
"requireSigned": true,
|
||||
"lenses": {
|
||||
"repo-better-solution": {
|
||||
"section": ".review-gates/lenses/repo-better-solution.md"
|
||||
},
|
||||
"repo-bug-prover": {
|
||||
"section": ".review-gates/lenses/repo-bug-prover.md"
|
||||
},
|
||||
"repo-security": {
|
||||
"section": ".review-gates/lenses/repo-security.md"
|
||||
},
|
||||
"repo-facts": {
|
||||
"section": ".review-gates/lenses/repo-facts.md"
|
||||
}
|
||||
},
|
||||
"modes": {
|
||||
"commits": {
|
||||
"kind": "commits",
|
||||
"lenses": [
|
||||
"repo-better-solution",
|
||||
"repo-bug-prover",
|
||||
"repo-security",
|
||||
"repo-facts"
|
||||
],
|
||||
"effort": "xhigh"
|
||||
}
|
||||
},
|
||||
"gate0": [
|
||||
"packaging/flatpak/release-version.sh",
|
||||
"crafter-build test --banks=bunq",
|
||||
"CPLUS_INCLUDE_PATH=/app/include/c++/v1 crafter-build lint --banks=bunq",
|
||||
"crafter-build --banks=bunq",
|
||||
"crafter-build --banks=bunq --lib",
|
||||
"crafter-build --banks=bunq --product=daemon",
|
||||
"CPLUS_INCLUDE_PATH=/app/include/c++/v1 crafter-build lint --banks=bunq --product=daemon",
|
||||
"crafter-build --product=checkout",
|
||||
"crafter-build --banks=bunq --product=fake-system",
|
||||
"CPLUS_INCLUDE_PATH=/app/include/c++/v1 crafter-build lint --banks=bunq --product=fake-system",
|
||||
"crafter-build --banks=bunq --product=app",
|
||||
"CPLUS_INCLUDE_PATH=/app/include/c++/v1 crafter-build lint --banks=bunq --product=app",
|
||||
"crafter-build --banks=bunq --product=app --debug-api",
|
||||
"CPLUS_INCLUDE_PATH=/app/include/c++/v1 crafter-build lint --banks=bunq --product=app --debug-api"
|
||||
]
|
||||
}
|
||||
Loading…
Reference in a new issue