Prepare the repository to be public: scrub infrastructure, add community files #8

Merged
chrnx merged 3 commits from chore/scrub-before-publish into develop 2026-09-23 17:01:07 +00:00
Owner

main is about to be mirrored to a public repository for the first time (#7), so everything in the tree becomes readable by anyone, and outside contributions become possible. Three things needed doing first.

1. Stop naming internal infrastructure

ci.yml carried the internal registry's hostname in a step that authenticated to it — twice. That step was also dead code: .npmrc no longer points the @green-tea scope anywhere, and core resolves from npmjs.org. Removing it took out a published hostname and an instruction that does nothing, in one edit.

AGENTS.md named the origin by its repository path. Core's public copy says "Development lives on a private Gitea instance" and stops there, which is the right level. promote.yml still names the forge, because core's public copy does and the two should read alike — naming the product was never the problem.

No credentials, keys, personal paths or addresses anywhere else in the tree.

2. Add the community files

The repository had a LICENSE and nothing else. Adds CONTRIBUTING.md, CODE_OF_CONDUCT.md, SECURITY.md, DCO, two issue templates with a config.yml, and a pull request template.

This reverses a decision from #6. That PR mirrored main alone, reasoning that a repository with no documented contribution flow does not need a branch nobody targets. True right up until we decided to document one. CONTRIBUTING.md has to send people somewhere and main is the wrong answer — a pull request there puts the forges out of step and breaks the next promotion — so develop → contrib is back, the same arrangement core runs.

Adapted rather than copied: Node 22 not core's stale 18; no build step, with deno publish --dry-run standing in for one; the traps specific to this repository (turning import type into a value import, adding a build, writing for Node alone, changing engines without the README's Runtimes table); and a SECURITY.md scoped per package that routes framework vulnerabilities to core, since the advisory has to live where the fix does.

There is also a plugin proposal template, to ask in a paragraph the question that is expensive in an already-written pull request: whether a thing belongs in the official set or is better as the author's own package. It says the second is a first-class outcome, because it usually is.

3. Make CI actually run for those contributions

Caught in review, and it was a hole rather than a gap: a pull request against a branch a workflow does not list triggers nothing at all — not a reduced set of checks, none. Adding contrib to the mirror while ci.yml watched only develop and main would have given an external contributor no signal, and whoever merged their work none either.

So contrib joins both trigger lists, and the three github.server_url != 'https://github.com' guards are gone. Their reason went with Verdaccio. Guarding CI to one forge while inviting contributions to the other cannot both be true.

Verified

Including the way a public runner would see it — the workflow names no secrets and no internal hosts, and a fresh clone runs everything with nothing configured:

npm ci on a clean clone 183 packages, no auth needed
lint / format:check / typecheck / complexity:check clean (one pre-existing no-explicit-any warning in test/helpers.ts)
npm test 60/60
test:deno / test:bun / test:edge pass
deno publish --dry-run all three simulate clean
internal hostnames in tracked files none

Order

This must land before #7. Promoting first would publish the tree as it stands, hostname and all.

`main` is about to be mirrored to a public repository for the first time (#7), so everything in the tree becomes readable by anyone, and outside contributions become possible. Three things needed doing first. ## 1. Stop naming internal infrastructure `ci.yml` carried the internal registry's hostname in a step that authenticated to it — twice. That step was also **dead code**: `.npmrc` no longer points the `@green-tea` scope anywhere, and core resolves from npmjs.org. Removing it took out a published hostname and an instruction that does nothing, in one edit. `AGENTS.md` named the origin by its repository path. Core's public copy says "Development lives on a private Gitea instance" and stops there, which is the right level. `promote.yml` still names the forge, because core's public copy does and the two should read alike — naming the product was never the problem. No credentials, keys, personal paths or addresses anywhere else in the tree. ## 2. Add the community files The repository had a `LICENSE` and nothing else. Adds `CONTRIBUTING.md`, `CODE_OF_CONDUCT.md`, `SECURITY.md`, `DCO`, two issue templates with a `config.yml`, and a pull request template. **This reverses a decision from #6.** That PR mirrored `main` alone, reasoning that a repository with no documented contribution flow does not need a branch nobody targets. True right up until we decided to document one. `CONTRIBUTING.md` has to send people somewhere and `main` is the wrong answer — a pull request there puts the forges out of step and breaks the next promotion — so `develop → contrib` is back, the same arrangement core runs. Adapted rather than copied: **Node 22** not core's stale 18; **no build step**, with `deno publish --dry-run` standing in for one; the traps specific to this repository (turning `import type` into a value import, adding a build, writing for Node alone, changing `engines` without the README's Runtimes table); and a `SECURITY.md` scoped per package that routes framework vulnerabilities to core, since the advisory has to live where the fix does. There is also a **plugin proposal template**, to ask in a paragraph the question that is expensive in an already-written pull request: whether a thing belongs in the official set or is better as the author's own package. It says the second is a first-class outcome, because it usually is. ## 3. Make CI actually run for those contributions Caught in review, and it was a hole rather than a gap: **a pull request against a branch a workflow does not list triggers nothing at all** — not a reduced set of checks, none. Adding `contrib` to the mirror while `ci.yml` watched only `develop` and `main` would have given an external contributor no signal, and whoever merged their work none either. So `contrib` joins both trigger lists, and the three `github.server_url != 'https://github.com'` guards are gone. Their reason went with Verdaccio. Guarding CI to one forge while inviting contributions to the other cannot both be true. ## Verified Including the way a public runner would see it — the workflow names **no secrets and no internal hosts**, and a fresh clone runs everything with nothing configured: | | | |---|---| | `npm ci` on a clean clone | 183 packages, no auth needed | | `lint` / `format:check` / `typecheck` / `complexity:check` | clean (one pre-existing `no-explicit-any` warning in `test/helpers.ts`) | | `npm test` | 60/60 | | `test:deno` / `test:bun` / `test:edge` | pass | | `deno publish --dry-run` | all three simulate clean | | internal hostnames in tracked files | none | ## Order **This must land before #7.** Promoting first would publish the tree as it stands, hostname and all.
chrnx added 2 commits 2026-09-23 16:55:42 +00:00
`main` is about to be mirrored to a public repository for the first time, so
everything in the tree becomes readable by anyone. Two things in here were
written when only the development forge could see them.

`ci.yml` carried the internal registry's hostname in a step that authenticated
to it — twice. That step is also dead: `.npmrc` no longer points the @green-tea
scope anywhere, and core resolves from npmjs.org. So this removes a published
hostname and an instruction that does nothing, in the same edit.

`AGENTS.md` named the origin by its repository path. Core's public copy says
"Development lives on a private Gitea instance" and stops there, which is the
right level: a reader learns the shape of the workflow without learning where it
lives, and a path they cannot reach tells them nothing anyway.

`promote.yml` keeps saying the forge by name, because core's public copy does and
the two should read alike. Naming the product is not the problem; naming the host
was.

Checked the rest while here: no credentials, no keys, no personal paths or
addresses, no issue templates routing anyone to a forge they cannot open.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
docs: add the community files GitHub expects before this goes public
CI / dco (pull_request) Successful in 5s
CI / build (pull_request) Successful in 12s
CI / runtimes (bun) (pull_request) Successful in 11s
CI / runtimes (deno) (pull_request) Successful in 11s
CI / runtimes (edge) (pull_request) Successful in 8s
e1ea1542c9
The repository had a LICENSE and nothing else. Adds CONTRIBUTING, a code of
conduct, a security policy, the DCO, issue templates and a pull request
template — the set GitHub checks for, written for these packages rather than
copied from core.

**This adds a `contrib` branch, reversing a decision made earlier today.** The
promotion originally mirrored `main` alone, on the reasoning that a repository
with no documented contribution flow does not need a branch nobody targets. That
reasoning held right up until we decided to document one. CONTRIBUTING has to
send people somewhere, `main` is the wrong answer — a pull request there puts the
forges out of step and breaks the next promotion — so `develop → contrib` is
back, the same arrangement core runs.

What is adapted rather than inherited:

- Node 22, not core's 18, which is what every package here already requires.
- No build step anywhere. JSR transpiles the source, so `deno publish --dry-run`
  is what stands in for one.
- The four traps an assistant falls into *here*: turning `import type` into a
  value import, adding a build, writing for Node alone, and changing `engines`
  without the README's Runtimes table.
- SECURITY scopes each package separately, and sends vulnerabilities in the
  framework itself to core — same people, but the advisory has to live where the
  fix does.

There is also a plugin proposal template, which exists to ask the question that
is cheaper in a paragraph than in a written pull request: whether a thing belongs
in the official set at all, or is better as the author's own package. The
template says the second outcome is first-class, because it usually is.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
chrnx added 1 commit 2026-09-23 16:58:53 +00:00
ci: run on both forges, and watch contrib
CI / dco (pull_request) Successful in 5s
CI / build (pull_request) Successful in 12s
CI / runtimes (bun) (pull_request) Successful in 12s
CI / runtimes (deno) (pull_request) Successful in 11s
CI / runtimes (edge) (pull_request) Successful in 9s
57c4707bc5
Adding `contrib` to the mirror without adding it here was a hole, not a gap.
A pull request against a branch a workflow does not list triggers **nothing** —
not a reduced set of checks, none — so an external contributor would have seen
no signal at all, and neither would whoever merged their work. The branch and
its CI had to land together; the previous commit shipped only half of that.

So `contrib` joins `develop` and `main` in both trigger lists, and the three
`github.server_url != 'https://github.com'` guards are gone. Their reason went
with Verdaccio: the packages used to build against a core that existed only on
an internal registry a public runner cannot reach, and they resolve
`@green-tea/core` from npmjs.org now. Guarding CI to one forge while inviting
contributions to the other cannot both be true.

The dco job keeps `github.event_name == 'pull_request'`, matching core, so it
reports on pull requests and costs nothing on push.

Verified the way a public runner would: the workflow names no secrets and no
internal hosts, and a fresh clone runs `npm ci`, lint, typecheck, the Node suite
and `deno publish --dry-run` with nothing configured.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
chrnx merged commit 4a98046da2 into develop 2026-09-23 17:01:07 +00:00
chrnx deleted branch chore/scrub-before-publish 2026-09-23 17:01:08 +00:00
Sign in to join this conversation.