gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit9f502db19f502db1gitoria#46: W46b briefmre9f502db1/tests/pulls-probe.hl

720 B

  1. // tests/pulls-probe.hl — the gate's read side (tests/pull-numbers.mjs): the contract's pull JSON of every number and wasHeadOf for given shas.
  2. // GITORIA_STORAGE=… GITORIA_GIT=… bin/hybriel tests/pulls-probe.hl <slug> <highest n> [<n>:<sha> …] → lines `PULL <json>` and `WAS <n>:<sha> <true|false>`
  3. import { args } from 'hl:proc'
  4. import { pullObject, wasHeadOf } from '../lib/pullsync.hl'
  5. a = args()
  6. let n = 1
  7. while (n <= toNumber(a[1])) {
  8. console.log('PULL ' + JSON.stringify(pullObject(a[0], n)))
  9. n = n + 1
  10. }
  11. console.log('PULL ' + JSON.stringify(pullObject(a[0], toNumber(a[1]) + 1)))
  12. for (x of a.slice(2)) {
  13. p = x.split(':')
  14. console.log('WAS ' + x + ' ' + wasHeadOf(a[0], toNumber(p[0]), p[1]))
  15. }

Branches

Latest commits

  • 9f502db1gitoria#46: W46b briefmre
  • 9678a8f3gitoria#46: contract v1.4, statuses keyed by app + contextmre
  • bdcbbaa9gitoria#47: rate limits, status read route, statuses + required on the pull (merge w47-limits)mre
  • 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
  • 5de7f578gitoria#47: rate limits per app (429, Retry-After), status read route, statuses and required on the pull, one JSON check for every write routemre
  • 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