Commit Graph
2 Commits
Author SHA1 Message Date
sneak 8f4e8e6fe1 Replace script/update-policy with a short wget-and-commit script (closes #165)
check / check (push) Successful in 1m14s
The script fetches a fixed list of three files from the main branch of
prompts with wget: docs/REPO_POLICIES.md, docs/CODE_STYLEGUIDE.md and
itself. It moves them into place and commits them. It does not push. It
stops when a fetch fails, before anything is replaced, and when a listed
file has uncommitted changes. It runs under busybox.

The line-keeping rules, the hash argument and the push are gone; the
policies and checklists say so.

Model: opus-5-5
2026-11-18 20:28:23 +00:00
clawbot 936ead8425 Add script/update-policy to re-vendor policy files (closes #162)
check / check (push) Successful in 24s
One command fetches the policy files a repo vendors from `prompts`, keeps the repo's own entries, commits them by name and pushes. A line the canonical file has never held stops the script before anything is written, as does a failed fetch. The canonical `.dockerignore` gains the closing comment the script needs. `test/update-policy.sh` runs in the `test` phase of `Dockerfile`.

Judgement call: `.gitea/workflows/check.yml` and `.prettierrc` are replaced whole.
Limitation: a repo with its own `.golangci.yml` settings, such as `sneak/homoicon`, stops until those are dealt with.

Model: opus-5-5
2026-11-09 11:00:11 +01:00