gitoria
All repositories: gitoria
3.0 KB
// components/releases.hl — THE RELEASES of a repo (gitoria#12, gitoria#16): `/releases` on <slug>.<domain>, its// own route. The repo head is rendered on the server from the request's host. The list comes from git (the// |||RL commits of the main branch) on the SERVER too// (lib/releases.hl releasesNow — hl:proc run() waits, hybriel#80): it is in the first HTML and in every hl:web navigation.parent './repo.hl'import { siteName } from '../project.hl'import { slugOfRequest } from '../lib/orgs.hl'import { titleSlug, repoAt } from '../lib/repos.hl'import { pageTitle } from '../lib/repos-helpers.hl'import { releasesNow } from '../lib/releases.hl'host = nullorepo = ''session = nullslug = slugOfRequest(host, orepo)repo = repoAt(slug, session)hasRepo = repo != nullgot = repo != null ? releasesNow(slug, repo.branch) : nullreleasesShown = got != null && !got.isMessagereleasesMessage = got != null && got.isMessagereleasesText = got != null && got.isMessage ? got.message : ''releasesNone = got != null && !got.isMessage && got.noReleasesreleasesList = got != null && !got.isMessage ? got.releases : []releasesDefault = got != null && !got.isMessage ? got.defaultName : ''__title = pageTitle(siteName, titleSlug(host, orepo, session), 'Releases')View {repoPage {if (hasRepo) {repoReleases { id = "releases"if (releasesMessage) { p { id = "releasesmessage" class = "empty" releasesText } }if (releasesShown) {p { id = "releaseshelp" class = "muted" "A commit on " strong { releasesDefault } " whose message starts with " code { "|||RL " } " makes a release: the last version +1; " code { "|||RL|med " } " counts the middle number, " code { "|||RL|mj " } " the major number, " code { "|||RL|1.1.1a " } " sets the version." }if (releasesNone) { p { id = "noreleases" class = "empty" "No release yet." } }ol { id = "releaselist"for (rl of releasesList) {li {strong { Style.strongVersion rl.version }if (rl.isLatest) { span { Style.spanLatest "latest" } }if (rl.hasTitle) { a { Style.aReleaseSubject href = rl.href rl.title } }if (rl.noTitle) { a { Style.aReleaseSubject class = "muted" href = rl.href rl.short } }span { class = "muted" rl.author }time { rl.date }}}}}}}}}Style {repoReleases {display = 'grid'gap = '1rem'minWidth = '0'// Direct-child universal selectors have no bare language form.'> *' {margin = '0'}}#releaselist {display = 'grid'gap = '.4rem'margin = '0'padding = '0'listStyle = 'none'li {display = 'flex'flexWrap = 'wrap'alignItems = 'center'gap = '0 .8rem'margin = '0'padding = '.1rem 1rem .3rem'background = 'var(--color-surface)'borderRadius = 'var(--radius-large)'overflowWrap = 'anywhere'}}strongVersion {fontSize = '1.05rem'color = 'var(--color-accent)'}spanLatest {fontSize = '.875rem'color = 'var(--color-text-muted)'}aReleaseSubject {flex = '1 1 12rem'display = 'inline-flex'alignItems = 'center'minHeight = '2.75rem'}}
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
- e7af3eceMerge branch 'w52b-approval-followup' into mainGitoria
- c01e66c6|||PR approvals follow-up: live Merge after status writes, helpers (#52)mre
- 841da497Merge branch 'w53-pulls-speed-pr' into mainGitoria
- 80307ae2|||PR pulls page cache: live PR numbers, complete scans onlymre
- 69141f65|||PR pulls page: cache the git part per repo by branch tipsmre
- 155861f6Merge branch 'w52-person-approval' into mainGitoria
- b5435de8|||PR person approvals: second Kunibert round (#52)mre
- 3a8b2fb8|||PR person approvals: Kunibert review fixes (#52)mre
- 2a89d8d0|||PR person approvals: Approve button for people; merge needs the required checks or a listed person's approval (#52)mre
- 83f0c953Report person approval verificationmre
- 3ae94b86Record browser failures and verify owned tab cleanupmre
- 54eec687Gate person approvals and merge alternativesmre
- 12b08829Add person approvals for pull request headsmre
- 55c84779Merge branch 'gp-gate-ports' into mainGitoria
- 57af42bbREADME: point to deploy.sh for the port listmre
- d63375d2README: gate commands with explicit portsmre
- feeaa701|||PR gates: explicit ports only, deploy.sh passes themmre
- 6cc1f943Merge branch 'records-1112' into mainGitoria
- 9448c438|||PR records: LOG, missions and reports since 11-09mre
- 6dc08a8eMerge branch 'p51-public-pr-reads' into mainGitoria