gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit772c401f772c401fgitoria#45: W45 report, logmre772c401f/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

  • 772c401fgitoria#45: W45 report, logmre
  • b6b793afgitoria#45: PR page with reviews, threads, conversation, Review again (merge w45-pr-page)mre
  • fb9e7554gitoria#45: browser gate: a /pulls title links to the PR pagemre
  • f7198131gitoria#45: tests/pr-page.mjs gatemre
  • 483141d0gitoria#45: Settings shows the Apps heading only to the ownermre
  • e2eff8f6gitoria#45: the PR page /pulls/N with reviews, threads, verdicts, conversation, comment, reply, resolve and Review againmre
  • 7a602839gitoria#45: raiseEvent can send to one app only; people's comments, replies and resolving in reviews.hlmre
  • 19edc1f5gitoria#44: contract v1.3.1, what outdated meansmre
  • 7c2277ccgitoria#38: worker reports W40–W46, logmre
  • 1c3fa842gitoria#45 #47: worker briefsmre
  • 0a46bf7dgitoria#47: apps API contract v1.3 (status read route, statuses + required on the pull)mre
  • 3373f7c3gitoria#38: push API contract v1.2.1, reviews, worker briefs and logmre
  • 34143d2cgitoria#46: closing brace of appComments lost in the mergemre
  • 54927c9cgitoria#46: PR statuses and required checks before merge (merge w46-status)mre
  • 187e1871gitoria#46: badges without decorative bordersmre
  • 6b022798gitoria#46: tests/status.mjs in GATESmre
  • c6162f00gitoria#46: status badges on /pulls, Required before merge in Settingsmre
  • e5a0b64egitoria#46: PUT statuses/<sha>, required contexts block the merge on the servermre
  • 26a140e3gitoria#44: reviews, inline threads, replies, conversation for apps (merge w44-reviews)mre
  • 888dbf87gitoria#44: unknown API paths answer the contract's JSON 404 and sit above the page routesmre