gitoria
All repositories: gitoria
24.3 KB
// lib/pullsync.hl — PULL REQUEST RECORDS (gitoria#40, part of the push API #38; contract docs/apps-api.md §3, §4).// A pull request is still a commit whose subject starts `|||PR` (git-helpers.hl parsePull), but now it is also STORED, so it has// a number that never changes and is never reused. Two tables, both keyed by the repo's ID (never the slug: a repo can be renamed):// pullRecs pk @id index !key, !shaKey, repo { rid (the repo's @id), number, key "<repo>#<n>", shaKey "<repo> <sha>", sha (the |||PR commit), source,// target, implicit (the target is the repo's main branch), state open|closed|merged, head, authorId, authorName,// heads (every head the PR has had, oldest first: an app may review an earlier one), createdMs, updatedMs } storage/mpackdb/pullrecs.db// pullInit pk @id index !repo { rid } a repo whose PRs were numbered once (the numbers of the old ones, oldest first)// ensurePulls(slug) numbers the PRs a repo already has, once, without changes (before the first push / page view)// syncPulls(slug, userId) compares git with the records → the CHANGES (opened|reopened|synchronize|closed|merged), each with the// ref refs/pull/<n>/head already pointing at the new head; logChange writes them (until gitoria#43 sends events)// pullObject(slug, n) the contract's `pull` JSON; withNumbers(list, slug) puts "#N" on the rows of /pulls.// Match by marker sha, or an unambiguous replacement on the same source branch (#56).// Merged is final. Nothing here throws: a failed git call skips that PR until the next sync.import { syncAndRaise } from './events.hl'import { MPackDB } from 'hl:mpackdb'import { now, timestamp } from 'hl:time'import { appendFile, mkDir, exists, readFile, listDir } from 'hl:fs'import { run } from 'hl:proc'import { randomBytes } from 'hl:crypto'import { NL, storageDir, countOfList, firstOf, repoOrigin, px } from './util.hl'import { repoBySlug } from './repos.hl'import { nameOfUser } from './users.hl'import { gitRaw, pickDefault } from './git.hl'import { tabs, isHexId, safeName, parsePull } from './git-helpers.hl'import { bodyOfLines, ticketNames } from './pullsync-helpers.hl'import { approvalsOf } from './approvals.hl'import { approvalsJson } from './approvals-helpers.hl'import { statusesOf, statusJson, requiredOf, approversOf } from './statuses.hl'static pullRecs = new MPackDB(file = storageDir + '/pullrecs.db', primaryKey = '@id', indexes = ['!key', '!shaKey', 'rid'])static pullInit = new MPackDB(file = storageDir + '/pullinit.db', primaryKey = '@id', indexes = ['!rid'])static changeLog = storageDir + '/pull-changes.log'static maxNew = 50static scan = 500static zeroId = '0000000000000000000000000000000000000000'// Atomic mkdir owns a PR's read/replace section across containers.// A short flock guard serializes lease creation, expiry and release, including owner-file setup.// The directory expires after a minute if a worker dies; the token prevents an old release removing a new lease.static pullClaimDir = storageDir + '/pull-claims'static claimPull = (String id) => {mkDir(pullClaimDir, 448)path = pullClaimDir + '/' + idtoken = randomBytes(12, 'hex')script = 'if [ -d "$1" ] && [ -n "$(find "$1" -maxdepth 0 -mmin +1 -print)" ]; then rm -f "$1/owner"; rmdir "$1" || exit 1; fimkdir "$1" 2>/dev/null || exit 1printf "%s" "$2" > "$1/owner"'r = run(['flock', pullClaimDir + '/guard', 'sh', '-c', script, 'sh', path, token], { timeout = 5 })return r != null && r.exit == 0 ? { path = path token = token } : null}static releasePull = (Hybrid claim) => {script = 'if [ "$(cat "$1/owner" 2>/dev/null)" = "$2" ]; then rm -f "$1/owner"; rmdir "$1"; fi'run(['flock', pullClaimDir + '/guard', 'sh', '-c', script, 'sh', claim.path, claim.token], { timeout = 5 })return null}// Like pullInit, this is a per-repo marker; directories make it visible to both containers.// Consume by rename before syncing, so another busy write can leave a new marker safely.static resyncDir = storageDir + '/pull-resync'static resyncing = {}static markPullResync = (Hybrid repo, String userId) => {mkDir(resyncDir, 448)mkDir(pullClaimDir, 448)script = 'if mkdir "$1" 2>/dev/null; then printf "%s" "$2" > "$1/request"; fi'run(['flock', pullClaimDir + '/guard', 'sh', '-c', script, 'sh', resyncDir + '/' + repo.id, JSON.stringify({ userId = userId })])return null}static resumePullResync = (String slug) => {repo = repoBySlug(slug)if (repo == null || resyncing[repo.id] == true) { return null }path = resyncDir + '/' + repo.idif (!exists(resyncDir)) { return null }let pending = exists(path)if (!pending) {for (entry of listDir(resyncDir)) {if (entry.name.startsWith(repo.id + '.')) { pending = true }}}if (!pending) { return null }resyncing[repo.id] = truetaken = path + '.' + randomBytes(12, 'hex')script = 'if [ -d "$1" ]; then mv "$1" "$2" && touch "$2"; exit $?; fifor old in "$1".*; doif [ -d "$old" ] && [ -n "$(find "$old" -maxdepth 0 -mmin +2 -print)" ]; then mv "$old" "$2" && touch "$2"; exit $?; fidoneexit 1'r = run(['flock', pullClaimDir + '/guard', 'sh', '-c', script, 'sh', path, taken])if (r != null && r.exit == 0) {request = JSON.tryParse(readFile(taken + '/request'))syncAndRaise(slug, request == null ? null : request.userId)run(['rm', '-r', taken])}delete resyncing[repo.id]return null}// ---- small git answers -------------------------------------------------------------------------------------// the first line of a git call's output, or '' (failed, nothing, or not a plain id when `hexOnly`)static firstLine = (slug, args) => {r = gitRaw(slug, args)if (r == null || r.exit != 0 || r.lines.length == 0) { return '' }return r.lines[0]}static isAncestor = (slug, a, b) => {if (a == null || b == null || a == '' || b == '') { return false }r = gitRaw(slug, ['merge-base', '--is-ancestor', a, b])return r != null && r.exit == 0}// { name: tip sha } of every branch, and the names in orderstatic branchTips = (slug) => {tips = {}names = []r = gitRaw(slug, ['for-each-ref', '--format=%(refname:short)%09%(objectname)', 'refs/heads'])if (r != null && r.exit == 0) {for (l of r.lines) {f = tabs(l)if (f.length == 2 && safeName(f[0]) && isHexId(f[1])) {tips[f[0]] = f[1]names.push(f[0])}}}return { tips = tips names = names ok = r != null && r.exit == 0 }}// The recorded source wins while it contains the marker. Without one, prefer the known head's// branch before another branch that merely contains the marker (for example a later PR).static sourceOf = (String slug, String sha, String target, String preferred, String head) => {return sourceResult(slug, sha, target, preferred, head).source}// The list cache also needs to know whether EVERY git read succeeded. Keep sourceOf's string contract.static sourceResult = (String slug, String sha, String target, String preferred, String head) => {r = gitRaw(slug, ['for-each-ref', '--contains', sha, '--format=%(refname:short)%09%(objectname)', 'refs/heads'])if (r == null || r.exit != 0) { return { source = '' ok = false } }candidates = []for (l of r.lines) {f = tabs(l)if (f.length == 2 && safeName(f[0]) && f[0] != target && isHexId(f[1])) {if (f[0] == preferred) { return { source = f[0] ok = true } }candidates.push({ name = f[0] tip = f[1] })}}knownHead = head == null || head == '' ? sha : headfor (c of candidates) { if (c.tip == knownHead) { return { source = c.name ok = true } } }let complete = truefor (c of candidates) {ancestor = gitRaw(slug, ['merge-base', '--is-ancestor', knownHead, c.tip])if (ancestor == null || (ancestor.exit != 0 && ancestor.exit != 1)) { complete = false }if (ancestor != null && ancestor.exit == 0) { return { source = c.name ok = complete } }}return { source = candidates.length > 0 ? candidates[0].name : '' ok = complete }}// the commit that put the PR into the target: the first one on the target's first-parent line that has the PR commit as an ancestor// (the merge commit of the Merge button; a fast-forward's commit itself); the target's tip when git cannot saystatic mergeCommitOf = (slug, sha, targetTip) => {r = gitRaw(slug, ['rev-list', '--first-parent', '--ancestry-path', '--reverse', sha + '..' + targetTip])if (r != null && r.exit == 0 && r.lines.length > 0 && isHexId(r.lines[0])) { return r.lines[0] }return targetTip}// ---- the refs/pull/N/head ref (and refs/pull/N/heads/<sha> for every head it ever had) ----------------------------------------------------------------------------// point it at `head`, with the old value given (a ref that is not there must not be there). → true when it points there afterwardsstatic setPullRef = (slug, n, head) => {ref = 'refs/pull/' + n + '/head'cur = firstLine(slug, ['rev-parse', '--verify', '-q', ref])if (cur == head) { return true }r = gitRaw(slug, ['update-ref', '-m', 'pull request ' + n, ref, head, cur == '' ? zeroId : cur])if (r == null || r.exit != 0) { return false }// every head stays referenced (refs/pull/N/heads/<sha>, hidden like the rest of refs/pull): an app may review an earlier head, git gc must not drop itgitRaw(slug, ['update-ref', '-m', 'pull request ' + n + ' head', 'refs/pull/' + n + '/heads/' + head, head])return true}// ---- the records -------------------------------------------------------------------------------------------static recordsOf = (repoId) => {all = pullRecs.find('rid', repoId)return countOfList(all) == 0 ? [] : all}static recordBySha = (repoId, sha) => { return firstOf(pullRecs.find('shaKey', repoId + ' ' + sha)) }static recordByNumber = (repoId, n) => { return firstOf(pullRecs.find('key', repoId + '#' + n)) }// the next number: one more than the highest (records are never removed, so a number is never used twice)static nextNumber = (repoId) => {let top = 0for (r of recordsOf(repoId)) { if (r.number > top) { top = r.number } }return top + 1}// every head the record has had (a list of shas); the current one is always in itstatic headsOf = (rec) => {out = []if (rec.heads != null && countOfList(rec.heads) > 0) { for (h of rec.heads) { out.push(h) } }if (rec.head != null && !out.includes(rec.head)) { out.push(rec.head) }return out}static withHead = (rec, head) => {out = headsOf(rec)if (!out.includes(head)) { out.push(head) }return out}// was this sha ever a head of pull request N of the repo? (gitoria#44: a review of an earlier head is fine, only a sha that never was one is stale)static wasHeadOf = (slug, n, sha) => {repo = repoBySlug(slug)if (repo == null || n == null || sha == null || hlTypeName(sha) != 'String') { return false }rec = recordByNumber(repo.id, n)return rec != null && headsOf(rec).includes(sha)}static isInitialized = (repoId) => { return firstOf(pullInit.find('rid', repoId)) != null }static changeOf = (rec, action, before, after, forced, mergeCommit, pusherId) => {let sender = nullif (pusherId != null) { sender = { id = pusherId name = nameOfUser(pusherId) } }return { number = rec.number action = action before = before after = after forced = forced mergeCommit = mergeCommit sender = sender }}// the commits of the repo that start a pull request, oldest first, not yet stored: [{ sha, ct, author, parsed }]static newCandidates = (slug, repoId) => {out = []lg = gitRaw(slug, ['log', '-' + scan, '--branches', '--format=%H%x09%ct%x09%an%x09%s'])if (lg == null || lg.exit != 0) { return out }for (l of lg.lines) {f = tabs(l)if (f.length >= 4 && isHexId(f[0]) && f[0].length == 40) {pr = parsePull(f.slice(3).join(' '))if (pr != null && out.length < maxNew && recordBySha(repoId, f[0]) == null) {out.push({ sha = f[0] ct = toNumber(f[1]) * 1000 author = f[2] parsed = pr })}}}// commit time, oldest first (an insertion sort: no sort(), hybriel #1)let i = 1while (i < out.length) {cur = out[i]let j = i - 1while (j >= 0 && out[j].ct > cur.ct) {out[j + 1] = out[j]j = j - 1}out[j + 1] = curi = i + 1}return out}// One vanished open marker and one unseen marker on the same surviving branch.static replacementOf = (String slug, Hybrid rec, Hybrid records, Hybrid bt, String target) => {tip = bt.tips[rec.source]if (rec.state != 'open' || rec.manualClosedBy != null || tip == null || rec.source == target) { return { ok = true replacement = null } }gone = gitRaw(slug, ['merge-base', '--is-ancestor', rec.sha, tip])if (gone == null || (gone.exit != 0 && gone.exit != 1)) { return { ok = false } }if (gone.exit == 0) { return { ok = true replacement = null } }other = sourceResult(slug, rec.sha, target, rec.source, rec.head)if (!other.ok) { return { ok = false } }if (other.source != '') { return { ok = true replacement = null } }if (bt.tips[target] != null && isAncestor(slug, rec.sha, bt.tips[target])) { return { ok = true replacement = null } }let vanished = 0for (r of records) {if (r.source == rec.source && r.state == 'open' && r.manualClosedBy == null) {a = gitRaw(slug, ['merge-base', '--is-ancestor', r.sha, tip])if (a == null || (a.exit != 0 && a.exit != 1)) { return { ok = false } }if (a.exit == 1) { vanished = vanished + 1 }}}if (vanished != 1) { return { ok = true replacement = null } }// Stop parsing once a second unseen marker makes this branch ambiguous.lg = gitRaw(slug, ['log', '--format=%H%x09%s', tip])if (lg == null || lg.exit != 0) { return { ok = false } }found = []for (line of lg.lines) {f = tabs(line)if (f.length >= 2) {parsed = parsePull(f.slice(1).join(' '))if (parsed != null && recordBySha(rec.rid, f[0]) == null) { found.push({ sha = f[0] parsed = parsed })if (found.length == 2) { break }}}}return { ok = true replacement = found.length == 1 ? found[0] : null }}// the whole comparison. quiet = number the existing PRs and return no changes (ensurePulls). → the changes (a list)static syncNow = (slug, pusherId, quiet) => {changes = []repo = repoBySlug(slug)if (repo == null) { return changes }bt = branchTips(slug)if (!bt.ok) { if (resyncing[repo.id] == true) { markPullResync(repo, pusherId) } return changes }dflt = pickDefault(bt.names, repo.branch)stamp = now()records = recordsOf(repo.id)proposals = {}uses = {}// Scan all potential pairs before writing: a marker cannot replace two PRs.for (rec of records) {target = rec.implicit == true && dflt != null ? dflt : rec.targetresult = replacementOf(slug, rec, records, bt, target)if (!result.ok) { markPullResync(repo, pusherId) return changes }if (result.replacement != null) {proposals[rec.id] = result.replacementsha = result.replacement.shauses[sha] = uses[sha] == null ? 1 : uses[sha] + 1}}reserved = []// 1. the PRs we knowfor (rec of records) {if (rec.state != 'merged') {target = rec.implicit == true && dflt != null ? dflt : rec.targettargetTip = bt.tips[target]let source = rec.sourcelet tip = source != '' ? bt.tips[source] : nulllet onBranch = tip != null && isAncestor(slug, rec.sha, tip)if (!onBranch) {// the commit may sit on another branch now (the branch was renamed)other = sourceOf(slug, rec.sha, target, rec.source, rec.head)if (other != '' && bt.tips[other] != null) {source = othertip = bt.tips[other]onBranch = true}}proposal = proposals[rec.id]replacement = proposal != null && uses[proposal.sha] == 1 ? proposal : nullif (replacement != null) { reserved.push(replacement.sha) }u = recu.target = targetu.source = sourcelet action = ''let before = rec.headlet after = rec.headlet forced = falselet mergeCommit = nullif (replacement != null) {after = tipforced = trueu.sha = replacement.shau.shaKey = repo.id + ' ' + replacement.shau.implicit = replacement.parsed.target == ''u.target = u.implicit ? dflt : replacement.parsed.target}mergeTip = bt.tips[u.target]if (mergeTip != null && isAncestor(slug, u.sha, mergeTip)) {action = 'merged'u.state = 'merged'if (onBranch) { after = tip }mergeCommit = mergeCommitOf(slug, u.sha, mergeTip)} else if (replacement != null) {action = 'synchronize'} else if (onBranch && rec.state == 'closed' && rec.manualClosedBy == null) {action = 'reopened'u.state = 'open'after = tip} else if (onBranch && tip != rec.head) {action = 'synchronize'after = tipforced = !isAncestor(slug, rec.head, tip)} else if (!onBranch && rec.state == 'open') {action = 'closed'u.state = 'closed'}u.head = afteru.heads = withHead(rec, after)if (action != '' || source != rec.source || target != rec.target) {// the ref first: an event is only sent for a head that can be fetchedif (action == '' || setPullRef(slug, rec.number, after)) {// Git calls yield: another request/container may have closed or reopened this PR.// Read after the final git call, immediately before replacing the row.let claim = claimPull(rec.id)let tries = 0while (claim == null && tries < 10) {run(['sleep', '0.3'])tries = tries + 1claim = claimPull(rec.id)}if (claim == null) {console.log('pull-sync busy ' + slug + '#' + rec.number + ': queued for resync')markPullResync(repo, pusherId)continue}latest = pullRecs.fetch(rec.id)if (latest == null || latest.state == 'merged') { releasePull(claim) continue }if (replacement != null && (latest.state != 'open' || latest.manualClosedBy != null || latest.sha != rec.sha || latest.head != rec.head)) {releasePull(claim)markPullResync(repo, pusherId)continue}u.manualClosedBy = latest.manualClosedByu.manualClosedMs = latest.manualClosedMsif (u.state != 'merged' && latest.manualClosedBy != null) {u.state = 'closed'if (action == 'reopened') { action = '' }} else if (u.state != 'merged' && onBranch && rec.manualClosedBy != null && latest.manualClosedBy == null) {u.state = latest.state}u.heads = withHead(latest, after)u.updatedMs = stamppullRecs.update(rec.id, u)releasePull(claim)if (action != '' && !quiet) { changes.push(changeOf(u, action, before, after, forced, mergeCommit, pusherId)) }}}}}// 2. the PRs we have not seen, oldest first (numbers follow the commit time)for (c of newCandidates(slug, repo.id)) {if (reserved.includes(c.sha)) { continue }target = c.parsed.target == '' ? dflt : c.parsed.targettargetTip = bt.tips[target]source = sourceOf(slug, c.sha, target)merged = targetTip != null && isAncestor(slug, c.sha, targetTip)if (merged || (source != '' && bt.tips[source] != null)) {head = !merged && source != '' ? bt.tips[source] : c.shan = nextNumber(repo.id)author = quiet || pusherId == null ? null : pusherIdrec = { rid = repo.id number = n key = repo.id + '#' + n shaKey = repo.id + ' ' + c.sha sha = c.sha source = source target = target implicit = c.parsed.target == '' state = merged ? 'merged' : 'open' head = head heads = [head] authorId = author authorName = author != null ? nameOfUser(author) : c.author createdMs = quiet ? c.ct : stamp updatedMs = quiet ? c.ct : stamp }if (setPullRef(slug, n, head)) {id = pullRecs.put(rec)if (id != null && !quiet) {saved = pullRecs.fetch(id)changes.push(changeOf(saved, merged ? 'merged' : 'opened', null, head, false, merged ? mergeCommitOf(slug, c.sha, targetTip) : null, pusherId))}}}}return changes}// number the PRs a repo already has, ONCE (quiet); call it before a push is taken and when /pulls is builtstatic ensurePulls = (slug) => {repo = repoBySlug(slug)if (repo == null || isInitialized(repo.id)) { return null }syncNow(slug, null, true)// an empty repo (no branch yet) has nothing to number and is initialized too: its first PR is a live onepullInit.put({ rid = repo.id })return null}// THE ENTRY: compare git with the records. Never fails the caller: whatever goes wrong yields the changes found so far (none).// userId = the gitoria user who pushed or merged (null when unknown). Every change is logged (logChange) and returned.static syncPulls = (slug, userId) => {ensurePulls(slug)changes = syncNow(slug, userId, false)for (c of changes) { logChange(slug, c) }return changes}// All writes to pull records stay in this topic file. Callers check mayPush first.static setManualPull = (String userId, String slug, Number number, Boolean closed) => {repo = repoBySlug(slug)ensurePulls(slug)found = repo == null ? null : recordByNumber(repo.id, number)if (found == null) { return { error = 'no such pull request' code = 404 } }claim = claimPull(found.id)if (claim == null) { return { error = 'this pull request is being updated; try again' code = 409 reason = 'busy' } }result = writeManualPull(userId, slug, found.id, closed)releasePull(claim)return result}// Only called while holding this PR's claim; no git calls between the fresh read and replacement.static writeManualPull = (String userId, String slug, String id, Boolean closed) => {rec = pullRecs.fetch(id)if (rec == null) { return { error = 'no such pull request' code = 404 } }if (rec.state == 'merged') { return { error = 'this pull request is already merged' code = 409 reason = 'already_merged' } }if ((closed && rec.state != 'open') || (!closed && (rec.state != 'closed' || rec.manualClosedBy == null))) {return { error = 'this pull request cannot change to that state' code = 409 reason = 'invalid_state' }}u = recu.state = closed ? 'closed' : 'open'u.manualClosedBy = closed ? userId : nullu.manualClosedMs = closed ? now() : nullu.updatedMs = now()pullRecs.update(rec.id, u)change = changeOf(u, closed ? 'closed' : 'reopened', rec.head, rec.head, false, null, userId)logChange(slug, change)return { ok = true change = change }}// the change log until gitoria#43 sends events: one JSON line in storage/pull-changes.log (and the console)static logChange = (slug, c) => {repo = repoBySlug(slug)line = JSON.stringify({ time = timestamp(now()) repoId = repo != null ? repo.id : null slug = slug number = c.number action = c.action before = c.before after = c.after forced = c.forced mergeCommit = c.mergeCommit sender = c.sender })appendFile(changeLog, line + NL, 384)console.log('pull-change ' + line)return null}// ---- the contract's `pull` object (§4) --------------------------------------------------------------------static pullObject = (String slug, Number n, Hybrid approvalRows = null) => {repo = repoBySlug(slug)if (repo == null || n == null) { return null }rec = recordByNumber(repo.id, n)if (rec == null) { return null }msg = gitRaw(slug, ['log', '-1', '--format=%B', rec.sha])lines = msg != null && msg.exit == 0 ? msg.lines : []pr = lines.length > 0 ? parsePull(lines[0]) : nulltitle = pr != null && pr.title != '' ? pr.title : (rec.source != '' ? rec.source : rec.sha.slice(0, 8))body = bodyOfLines(lines)baseTip = firstLine(slug, ['rev-parse', '--verify', '-q', 'refs/heads/' + rec.target])mergeBase = baseTip != '' ? firstLine(slug, ['merge-base', baseTip, rec.head]) : ''project = repo.tktProject != null ? repo.tktProject : ''statuses = []for (r of statusesOf(repo.id, rec.head)) { statuses.push(statusJson(r)) }return {number = rec.numbertitle = titlebody = bodydraft = falsestate = rec.stateauthor = { id = rec.authorId name = rec.authorName }source = rec.sourcetarget = rec.targethead = rec.headref = 'refs/pull/' + rec.number + '/head'baseRef = 'refs/heads/' + rec.targetbase = baseTip != '' ? baseTip : nullmergeBase = mergeBase != '' ? mergeBase : nulltickets = ticketNames(title + NL + body, project)url = repoOrigin(slug) + '/pulls/' + rec.numbercreated = timestamp(rec.createdMs)updated = timestamp(rec.updatedMs)statuses = statusesrequired = requiredOf(repo.id)approvers = approversOf(repo.id)approvals = approvalsJson(approvalRows == null ? approvalsOf(repo.id, rec.number) : approvalRows, rec.head)}}// the rows of /pulls with their number: `number` (0 = not stored) and `numberText` ("#3")static withNumbers = (list, slug) => {out = []repo = repoBySlug(slug)for (p of list) {q = prec = repo != null ? recordBySha(repo.id, p.sha) : nullq.number = rec != null ? rec.number : 0q.numberText = rec != null ? '#' + rec.number : ''q.pageHref = rec != null ? px(slug) + '/pulls/' + rec.number : p.hrefout.push(q)}return out}
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
- a4a33081Merge branch 'w63-force-push' into mainGitoria
- 52576cb0force push: defer on a failed scan, one-to-one pairs, docs (#56)mre
- 5a7b3e68|||PR a force push keeps the same pull request (#56)mre
- cc1be2d6Merge branch 'w62-pr-close' into mainGitoria
- 6e03be0apull state: keep the resync marker until the sync ran (#56)mre
- 93bdd26cpull state: wait for a claimed row, resync when it stays busy (#56)mre
- e53d284bpull state: stop on a failed branch scan, claim the row on writes (#56)mre
- d8608224close and reopen: keep a manual close against sync (#56)mre
- ffb60746|||PR close and reopen pull requests (#56)mre
- fe209ffeMerge branch 'w56-owner-members' into mainGitoria
- fa0754c8|||PR repository owner transfer and members API (#55)mre
- 8862e537Merge branch 'w55-rename-org' into mainGitoria
- 014d2b7fOne immutable readers snapshot per move for the left-organization event (#53)mre
- 1859d506Decide who hears a repo left its organization by its readers before the move (#53)mre
- 499f25f2Review fixes for the Settings organization move (#53)mre
- ed3b922b|||PR move a repository into an organization in Settings (#53)mre
- 74ec2af8Merge branch 'w54-repo-rename-pr' into mainGitoria
- 9f7ce8d8Preserve rename compatibility and live page titlesmre
- c3d95b6e|||PR separate names and addresses, rename repositories in Settings (#53)mre
- ce08920dMerge branch 'w52c-header-phone' into mainGitoria