gitoria
All repositories: gitoria
889 B
// tests/pulls-seed.hl — the gate's seed (tests/pull-numbers.mjs): a user, an empty repo and a push token in a TEST storage.// GITORIA_STORAGE=<abs table dir> GITORIA_GIT=<abs git root> bin/hybriel tests/pulls-seed.hl <slug> [ssh public key line] → prints USER <id> and TOKENimport { args } from 'hl:proc'import { ensureUser, setUserName } from '../lib/users.hl'import { createRepo } from '../lib/repos.hl'import { addKey } from '../lib/sshkeys.hl'import { createToken } from '../lib/tokens.hl'a = args()u = ensureUser('gate-ident-w40')setUserName(u.id, 'Gate Pusher')r = createRepo(u.id, a[0], '')if (r.error != null) { hlError(r.error) }t = createToken(u.id, 'gate')if (t.error != null) { hlError(t.error) }if (a.length > 1) {k = addKey(u.id, 'gate', a[1])if (k.error != null) { hlError(k.error) }}console.log('USER ' + u.id)console.log('TOKEN ' + t.token)
Branches
- f1-broken-json
- f2-api-bugs
- gp-gate-ports
- heap-revert
- hl25-records
- ident-chooser-selector
- mainmain branch
- p51-public-pr-reads
- records-1112
- s25-no-session-on-login-error
- v59
- w52-person-approval
- w52b-approval-followup
- w52c-header-phone
- w53-pulls-speed-pr
- w54-repo-rename-pr
- w55-rename-org
- w56-owner-members
- w62-pr-close
- w63-force-push
- w64-org-slash
Latest commits
- 37a86d93tests/reviews: seeded fake hook's DNS failures are not server errors (flaky gate)mre
- 07ab845bvendor: Hybriel set-day50 (run() leak fix #335)mre
- 71b2fa4blog: hybriel#335mre
- bd94cc7elog: #25 cause found (run() leak)mre
- 565cb508log: H25 round 1mre
- 90a0af84log: H25 startedmre
- 87bd53b8mission H25mre
- 71a746cflog: day48 livemre
- bf568e14log: V48 mergedmre
- 09955dedMerge v48: Hybriel set-day48, theme layouts ce4a0bamre
- f2a2b0cevendor: Hybriel set-day48, theme layouts ce4a0bamre
- 5d0834e7log: Apollo model rulemre
- fe8e5bd5log: #25 sample, V48 missionmre
- 8580c5d9log: theme fix from Atlasmre
- 46823d93log: Apollo budget correctionmre
- f6d32341log: Apollo on budget and #25 nextmre
- d7184f53log: batch live, #25 evidencemre
- 5e25e816log: W61 mergedmre
- aafe330dTidy: drop evidence JSON (kept in scratch), collapse blank linesmre
- aca1fda1Merge W61: theme from layouts 17e0f03, Views refer to Style rules (gitoria#37 #27)mre