Replace script/update-policy with a short wget-and-commit script (closes #165)
check / check (push) Successful in 1m22s
check / check (push) Successful in 1m22s
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 before anything is replaced when a fetch fails, when a listed file has uncommitted changes, and when REPO_POLICIES.md is still at the repo root. It runs under busybox. The line-keeping rules, the hash argument and the push are gone. The policies and checklists say so, and name docs/REPO_POLICIES.md as the file's place. Model: opus-5-5
This commit was merged in pull request #181.
This commit is contained in:
1 parent
630437e620
commit
d004fd272c
6 files changed
+135
-771
No files matched your search
@@ -138,9 +138,9 @@ alpine. We provide:
|
||||
`script/check`
|
||||
- `script/install-precommit` — installs the git pre-commit hook (our own
|
||||
extension); `make hooks` shims to it
|
||||
- `script/update-policy` — fetch the vendored policy files from this repo,
|
||||
commit them and push (our own extension); it is for the repos that vendor them
|
||||
and stops when run here
|
||||
- `script/update-policy` — fetch the shared policy files from this repo and
|
||||
commit them, without pushing (our own extension); it is for the repos that
|
||||
carry them and stops when run here
|
||||
|
||||
`make hooks` installs the pre-commit hook that runs `script/precommit`.
|
||||
|
||||
|
||||
Reference in new issue
Block a user