gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitbfd7826dbfd7826ddocs: neutral example organisation namemrebfd7826d/lib/apps-table.hl

1006 B

  1. // lib/apps-table.hl — the apps table (gitoria#41) and its plain reads, apart from lib/apps.hl so that lib/events.hl (gitoria#43) can read the apps
  2. // without importing apps.hl (apps.hl raises the ping through events.hl). Statics only. Row shape: see lib/apps.hl.
  3. import { MPackDB } from 'hl:mpackdb'
  4. import { storageDir, countOfList } from './util.hl'
  5. static appsTable = new MPackDB(file = storageDir + '/apps.db', primaryKey = '@id', indexes = ['!keyHash', 'repo'])
  6. // a whole app record with some fields changed (update() replaces the record: every field must be given again)
  7. static appWith = (a, change) => {
  8. o = { id = a.id repo = a.repo name = a.name hookUrl = a.hookUrl keyHash = a.keyHash secret = a.secret createdBy = a.createdBy created = a.created lastDelivery = a.lastDelivery lastStatus = a.lastStatus }
  9. for (k of change.keys()) { o[k] = change[k] }
  10. return o
  11. }
  12. static appsOfRepo = (repoId) => {
  13. all = appsTable.find('repo', repoId)
  14. return countOfList(all) == 0 ? [] : all
  15. }

Branches

Latest commits

  • bfd7826ddocs: neutral example organisation namemre
  • 01b71c2edocs: neutral wording in missions, reports and logmre
  • 3eeea733log: 2026-11-09 PR flow plan and membersmre
  • e7c2ff1fdocs: neutral name for the apps-api reviewmre
  • 120b7abdlog: step 3 queuedmre
  • 358474bflog: P50 livemre
  • 477d7bdcMerge branch 'p50'mre
  • 00efc06fP50 reportmre
  • e3f85afblog: commit mention slipmre
  • 4d1a4cf4log: #25 numbersmre
  • 1af0a60ddocs: H25 run() correctionmre
  • eefa2dbcRepo setting: refuse direct pushes to the main branch (pre-receive over HTTPS and ssh)mre
  • 8c8ba2f1log: PR flow announcedmre
  • fa00cd35log: Kunibert pings provenmre
  • 3a68cfaclog: components decisionmre
  • 87de8e31log: Kunibert connected to 9 app reposmre
  • c22aff69log: PR-only rollout startedmre
  • 25309981log: STOP and paused workers 2026-11-08mre
  • 5286803alog: worker briefs and reports of 2026-11-08mre
  • 85c86605log: 2026-11-08 Arachne on list shapemre