Wrap overlay text instead of cutting it; the project check is a regression check, renamed check.sh; concrete Headroom steps; Mouse-1 measured
This commit is contained in:
24
bin/office
24
bin/office
@@ -49,23 +49,27 @@ def scaffold(folder, name):
|
||||
harness = os.path.join(folder, ".harness")
|
||||
os.makedirs(harness, exist_ok=True)
|
||||
|
||||
verify = os.path.join(harness, "verify.sh")
|
||||
if not os.path.exists(verify):
|
||||
with open(verify, "w") as f:
|
||||
check = os.path.join(harness, "check.sh")
|
||||
if not os.path.exists(check):
|
||||
with open(check, "w") as f:
|
||||
f.write("""#!/bin/sh
|
||||
# The command that decides a task in this project is finished.
|
||||
# This project's own check, run by bin/merge before and after it puts a task's
|
||||
# work on the base branch. Exit 0 means "the project still passes".
|
||||
#
|
||||
# Leave it as it is to accept that there is no agreed command: bin/merge will
|
||||
# say so and let the review decide. Replace the body with the real one when the
|
||||
# project has tests, for example:
|
||||
# It does not decide that a task is finished: an agent sets a task's status, and
|
||||
# the review decides whether the change is good. This is the regression check,
|
||||
# the same thing a CI pipeline would run.
|
||||
#
|
||||
# Leave it as it is while the project has no tests. bin/merge will say there is
|
||||
# no check and let the review decide. Replace the body when tests exist:
|
||||
#
|
||||
# exec go test ./...
|
||||
# exec make test
|
||||
echo "no verify command agreed for this project"
|
||||
echo "this project has no check yet"
|
||||
exit 0
|
||||
""")
|
||||
os.chmod(verify, 0o755)
|
||||
written.append(verify)
|
||||
os.chmod(check, 0o755)
|
||||
written.append(check)
|
||||
|
||||
notes = os.path.join(harness, "NOTES.md")
|
||||
if not os.path.exists(notes):
|
||||
|
||||
Reference in New Issue
Block a user