gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit097c52ba097c52baStyle the login error through its View idmre097c52ba/lib/pullmerge.hl

1.1 KB

  1. // lib/pullmerge.hl — MERGING A PULL REQUEST ON A PERSON'S BEHALF (gitoria#48): the ONE place the Merge button (components/pulls.hl, components/pull.hl)
  2. // and POST {api}/pulls/N/merge (lib/api.hl) go through. Who may merge is decided by the caller with lib/repos.hl mayPush (the rule that lets a person push).
  3. // mergeAndAnnounce(repo, sha, user, expectHead) → { ok, mergeCommit } | { error }
  4. // mergePullNow (lib/pulls.hl) does the merge (required checks, race-safe update-ref); then the tickets project hears of the push and the pull request
  5. // records follow, raising the contract's pull_request `merged` event with `sender` = that user (lib/events.hl).
  6. import { mergePullNow } from './pulls.hl'
  7. import { notifyPush } from './tickets.hl'
  8. import { syncAndRaise } from './events.hl'
  9. static mergeAndAnnounce = (repo, sha, user, expectHead) => {
  10. if (repo == null || user == null) { return { error = 'no such pull request' } }
  11. setting = repo.branch == null ? '' : repo.branch
  12. r = mergePullNow(repo.slug, setting, sha, user.name, expectHead)
  13. if (r.error != null) { return r }
  14. notifyPush(repo.slug, false)
  15. syncAndRaise(repo.slug, user.id)
  16. return r
  17. }

Branches

Latest commits

  • 097c52baStyle the login error through its View idmre
  • c6d9c86aOwn the not-found code rule in its componentmre
  • 055424c2Record W61 replacement theme gates, sidebar repro and baselinemre
  • 2ed09441Use layouts theme 17e0f03 for W61 compatibilitymre
  • b8609a91Merge branch 'main' into w61-stylemre
  • 4639caf7Report W61 theme startup blocker and day39 Style probemre
  • 81f0a0bbREADME: two caches were restored by 90b4f72; log W62mre
  • 4a3f557eImport layouts theme ebd00b6 for W61 (startup blocked)mre
  • ab12a257Merge W62: #25 commit page measurements and proc repromre
  • 41323e49gitoria#25: measure commit request costs and reproduce blocking process waitsmre
  • 53ca42b2log: W60 merged, W61 W62 startedmre
  • 80870a33mission W61: style passmre
  • 560fd208Merge W60: helpers, bound forms, login in topics, two form fixes (gitoria#28 #32 #33)mre
  • ac5ba6a4log: W60, #25 measuredmre
  • 220f6342W60: record corrected form proof, full AE and remaining gapsmre
  • 7e31cac5gitoria#28: restrict reply form layout to reply formsmre
  • ae373cfdgitoria#28: keep each reply draft in its thread componentmre
  • eeeebd5agitoria: insert a newly created organization oncemre
  • 34d2d5cagitoria: clear the bound public-key textarea after creationmre
  • 119e54c0W60: restore conductor-owned tracking filesmre