Skip to content

ci: shared labels, board sync and pr conventions for every repository - #11

Merged
arudaev merged 1 commit into
mainfrom
ci/org-conventions
Nov 6, 2026
Merged

arudaev merged 1 commit into
mainfrom
ci/org-conventions

Conversation

@arudaev

@arudaev arudaev commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

Closes #9

What and why

Every repository in the organisation now shares one set of labels, milestones, epics and one board, but nothing checked pull requests and nothing kept the board current. This puts the machinery here, once, and every repository calls it with a short conventions.yml.

  • org-conventions.yml (reusable), dispatching on the caller's event:
    • Pull requests: fails on a non-Conventional title, a missing issue link or two type:* labels. It also assigns the author to the PR and to the issues it closes, adds the type:* label the title implies, copies the milestone from the issue, and applies area:* from the caller's .github/labeler.yml.
    • /take and /drop on issues.
    • Sub-issue roll-up: ready-for-acceptance on an epic once its children close. A daily sweep here covers epics whose children live in other repositories, since a repository's token can only write to itself.
    • Board sync to the organisation project, only where a repository has a PROJECTS_TOKEN secret; otherwise it prints a notice and skips.
  • Scripts in scripts/conventions/, adapted from THD Room Finder, with unit tests run by the new Checks workflow.
  • Issue forms for bug, story, task, spike and epic, labelled type:* + needs-triage. The PR template explains linking and stacks.
  • CONTRIBUTING.md: sections on issues, labels and the board, linking in pull requests, and merging. docs/project-board.md: the views, fields and automation.
  • workflow-templates/conventions.yml: the caller, offered in every repository's Actions tab.

Under pull_request_target nothing from the pull request's head is checked out: the caller's default branch and this repository's main only.

Already applied outside this diff

Merge order

This first. The callers in kaffeelisten/kaffeelisten, kaffeelisten.github.io, the two private repositories reference org-conventions.yml@main, so they fail until this lands.

How it was verified

  • node --test scripts/conventions/conventions.test.cjs: 7 groups pass
  • actionlint on every workflow: clean
  • Ran the title and link checks against every open pull request in the organisation after linking their issues: all pass

One reusable workflow, org-conventions.yml, that every repository calls
through a short conventions.yml. It checks pull requests (Conventional
Commits title, one type label, a linked issue), assigns the author,
adds the type label and milestone, applies area labels from each
repository's labeler.yml, handles /take and /drop, rolls closed
sub-issues up to their epic, and syncs the organisation board when a
PROJECTS_TOKEN is present.

Issue forms for bug, story, task, spike and epic; CONTRIBUTING and
docs/project-board.md describe labels, milestones, epics, the board
and merging.
@arudaev arudaev added this to the P0 · Organisation hygiene milestone Nov 6, 2026
@arudaev arudaev added type:task Work with a clear finish line that is not a feature area:delivery CI, workflows, deployment and repository settings area:org Organisation profile, defaults and conventions labels Nov 6, 2026
@arudaev arudaev self-assigned this Nov 6, 2026
@arudaev
arudaev merged commit adc8d40 into main Nov 6, 2026
1 check passed
@github-actions github-actions Bot added the area:docs Documentation and Markdown label Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:delivery CI, workflows, deployment and repository settings area:docs Documentation and Markdown area:org Organisation profile, defaults and conventions type:task Work with a clear finish line that is not a feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Org-wide labels, board and PR conventions

1 participant