gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitd046940ad046940alog: vinzenz contract note sentmred046940a/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

  • d046940alog: vinzenz contract note sentmre
  • db443456log: vinzenz note retry 2mre
  • 802f229alog: kunibert repo ping provenmre
  • 2d2eaa92log: Kunibert connected to kunibert repomre
  • 65d5f80alogmre
  • dab74b0dW49 report, logmre
  • fd4fc028Exercise member status reads with a populated check statemre
  • 536ca6f9Allow repository members to read pull workflow APIs with user tokensmre
  • 705dd834W49 missionmre
  • b554cd5flogmre
  • f4c9440ddeploy.sh: tar --hard-dereference for the live data backupmre
  • 1a687b15Merge branch 'w48-member-merge'mre
  • 166c775fW48 report, logmre
  • 1b4623f0Members merge pull requests: API route, button on /pulls and /pulls/N, one shared merge pathmre
  • 1075c38cW48 mission, logmre
  • 17bdd0d6V37/V39 missions, logmre
  • 146de5f8Re-vendor gitoria to Hybriel set-day39 (51e921d7)mre
  • e874e44dtests/status-keyed: app token lives 60 s so it outlives the gate's two restartsmre
  • 270b8d61deploy.sh: DEPLOY_STOP_START=1 stops, waits for the old pid, then starts (mpackdb freeze, replaces the standby swap)mre
  • 3f9235b8project.hl: drop the dummy /pulls/:n component route (hybriel#294 is fixed in day37)mre