gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit24b479e724b479e7W60: record final gates, Chrome failures and AE evidencemre24b479e7/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

  • 24b479e7W60: record final gates, Chrome failures and AE evidencemre
  • 5e11184cW60: record partial validation, framework gaps and cleanupmre
  • 20fe13fagitoria#33: centralize login and tickets connection statemre
  • 859754c0gitoria#29: retain the offline note and record the framework gapmre
  • d140bc04gitoria#30: reproduce the upsert ordering constraintmre
  • 6960e8f8gitoria#28: keep form values in bound component membersmre
  • 0db27200gitoria#32: share character checks and environment lookupmre
  • 452f6a1amission W60: logic clean-upsmre
  • 1448c899log: cleanup, #49 GPTBot, tracker mentions on #36mre
  • fcf95936log: v1.5.1 provenmre
  • 22105420log: W51b livemre
  • 7e8aabeareport: W51b pull source verificationmre
  • 6c18de76fix: preserve pull sources across containing branchesmre
  • fc36fa2elog: W51b pull source bugmre
  • 56bc1220log: v1.5.1 livemre
  • 845fc0aareport: W51mre
  • 83127391fix: return v1.5.1 app and merge error detailsmre
  • b07d0e97log: W51 v1.5.1 startedmre
  • 0b417d06docs: apps-api v1.5 user tokens (#48, W49)mre
  • d046940alog: vinzenz contract note sentmre