gitoria
All repositories: gitoria
1006 B
// 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// without importing apps.hl (apps.hl raises the ping through events.hl). Statics only. Row shape: see lib/apps.hl.import { MPackDB } from 'hl:mpackdb'import { storageDir, countOfList } from './util.hl'static appsTable = new MPackDB(file = storageDir + '/apps.db', primaryKey = '@id', indexes = ['!keyHash', 'repo'])// a whole app record with some fields changed (update() replaces the record: every field must be given again)static appWith = (a, change) => {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 }for (k of change.keys()) { o[k] = change[k] }return o}static appsOfRepo = (repoId) => {all = appsTable.find('repo', repoId)return countOfList(all) == 0 ? [] : all}
Branches
- f1-broken-json
- f2-api-bugs
- gp-gate-ports
- heap-revert
- hl25-records
- ident-chooser-selector
- mainmain branch
- p51-public-pr-reads
- records-1112
- s25-no-session-on-login-error
- v59
- w52-person-approval
- w52b-approval-followup
- w52c-header-phone
- w53-pulls-speed-pr
- w54-repo-rename-pr
- w55-rename-org
- w56-owner-members
- w62-pr-close
- w63-force-push
- w64-org-slash
Latest commits
- fefaedd2log: tracker PR-only, HL25 startedmre
- 21aa57calog: parkmre
- e9f950a8reports: G25c soakmre
- a7783686log: deploy 9f41ffcmre
- 9f41ffc1log: W30b mergedmre
- bef635c1Merge branch 'w30b'mre
- 15b996a5Org list: keyed rows by @id, newest first, concat instead of hand loopmre
- c4f6d9e3reports: G25c growth huntmre
- b88e39f1log: privacy cleanup donemre
- 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