gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit565cb508565cb508log: H25 round 1mre565cb508/tests/pulls-seed.hl

889 B

  1. // 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.
  2. // 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 TOKEN
  3. import { args } from 'hl:proc'
  4. import { ensureUser, setUserName } from '../lib/users.hl'
  5. import { createRepo } from '../lib/repos.hl'
  6. import { addKey } from '../lib/sshkeys.hl'
  7. import { createToken } from '../lib/tokens.hl'
  8. a = args()
  9. u = ensureUser('gate-ident-w40')
  10. setUserName(u.id, 'Gate Pusher')
  11. r = createRepo(u.id, a[0], '')
  12. if (r.error != null) { hlError(r.error) }
  13. t = createToken(u.id, 'gate')
  14. if (t.error != null) { hlError(t.error) }
  15. if (a.length > 1) {
  16. k = addKey(u.id, 'gate', a[1])
  17. if (k.error != null) { hlError(k.error) }
  18. }
  19. console.log('USER ' + u.id)
  20. console.log('TOKEN ' + t.token)

Branches

Latest commits

  • 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
  • 03cb650blog: W61 theme decisionmre
  • 248bce85Report final style gates, CSS mappings and 136 whole-image comparisonsmre
  • 153c344bRestore organization metadata exposed by the whole-image comparisonmre
  • 917a1465Update status gate assertions for the referenced state rulemre