Replace script/update-policy with script/write-upstream-policy-files and script/commit-upstream-policy-files (closes #165)
check / check (push) Successful in 38s
check / check (push) Successful in 38s
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. A repo gets only the documents its own work uses; its copies of the others are deleted. It keeps a repo's own entries in .gitignore, .dockerignore, .editorconfig and .golangci.yml, and stops, writing nothing, rather than lose 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
This commit is contained in:
1 parent
964d973e3c
commit
427e507504
11 files changed
+1473
-825
No files matched your search
@@ -118,7 +118,7 @@ alpine. We provide:
|
||||
`script/docker` for the image tag
|
||||
- `script/test` — `docker build --target test --output type=cacheonly .`,
|
||||
building the `test` phase of the `Dockerfile`, which runs
|
||||
`test/update-policy.sh`, without writing an image
|
||||
`test/commit-upstream-policy-files.sh`, without writing an image
|
||||
- `script/lint` — `docker build --target lint --output type=cacheonly .`,
|
||||
building the `lint` phase, which runs prettier over the markdown files,
|
||||
without writing an image
|
||||
@@ -138,9 +138,14 @@ 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/write-upstream-policy-files` — fetch the vendored policy files from
|
||||
this repo over HTTP and write them into a repo (our own extension). It writes
|
||||
into the repo given as its argument, or its own repo with no argument. It
|
||||
stops when its target is this repo.
|
||||
- `script/commit-upstream-policy-files` — fetch the current
|
||||
`script/write-upstream-policy-files`, run it on its own repo and commit the
|
||||
result without pushing (our own extension). It is for the repos that vendor
|
||||
the policy files. It stops when run here.
|
||||
|
||||
`make hooks` installs the pre-commit hook that runs `script/precommit`.
|
||||
|
||||
|
||||
Reference in new issue
Block a user