Commit Graph
2 Commits
Author SHA1 Message Date
sneak 3601ebf2a1 Replace script/update-policy with script/write-upstream-policy-files and script/commit-upstream-policy-files (closes #165)
check / check (push) Successful in 1m56s
script/write-upstream-policy-files fetches the shared policy files
from prompts over HTTP and writes them into a repo clone, or into its
own repo. It commits nothing. It keeps a repo's own entries in
.gitignore, .dockerignore, .editorconfig and .golangci.yml. It stops
before writing when one of those files, or a repo's own script of the
same name, has a line it cannot keep.

script/commit-upstream-policy-files replaces script/update-policy. It
fetches the current script/write-upstream-policy-files, runs it on its
own repo and commits the result without pushing.
make commit-upstream-policy-files replaces make update-policy.

test/commit-upstream-policy-files.sh replaces test/update-policy.sh.
The Dockerfile's test stage runs it with no timeout, with coreutils so
that cp is GNU cp.

Model: opus-5-5
2026-11-16 22:15:52 +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