Skip to content

chore: adopt gt repo governance - #6

Closed
pedromvgomes wants to merge 2 commits into
mainfrom
chore/repo-governance
Closed

chore: adopt gt repo governance#6
pedromvgomes wants to merge 2 commits into
mainfrom
chore/repo-governance

Conversation

@pedromvgomes

Copy link
Copy Markdown
Contributor

First repository onto gt repo. Generated by gt repo init + gt repo sync, not hand-written.

  • .gt-repo.yaml — the declaration; everything else is rendered from it
  • .github/dependabot.yml — three ecosystems detected here (github-actions, gomod, npm at /web), with the shared 3-day cooldown and conventional commit prefixes
  • .github/workflows/gate.yml — thin caller for the PR gate
  • .github/workflows/gt-sync.yml — weekly drift repair, opens a PR only when something changed
  • .github/workflows/dependabot-auto-merge.yml — daily batch merge for patch/minor bumps

checks.required was seeded from the job names ci.yml already produces, so the gate waits on exactly what this repo already enforces.

Expected to fail until gt is released

The callers pin pedromvgomes/gt/.github/workflows/reusable-gate.yml@v0, and that tag does not exist yet — the gate will error with "workflow not found". The governance job would also fail, because it installs gt from the latest release and gt repo only exists on an unreleased branch.

Both clear once gt cuts the release. This PR is the test that the workflow layer actually works; do not merge it while the gate is red for those reasons.

Branch protection will need exactly one required check, PR / Gate, replacing any per-job entries. That name never changes.

Adds the committed .gt-repo.yaml that declares this repository's governance,
plus the files gt renders from it: Dependabot config for the three ecosystems
detected here (github-actions, gomod, npm at /web), the PR gate caller, the
weekly drift-repair caller, and Dependabot auto-merge.

checks.required was seeded from the job names ci.yml already produces, so the
gate waits on exactly the checks this repo already enforces.

Branch protection needs a single required check, "PR / Gate", which aggregates
the rest. That name never changes, so protection is configured once.
Re-rendered after gt's shared policy consolidated three different cooldowns
and two prefix schemes into one: 7-day cooldown, build/ci prefixes with
include: scope, and a 25 PR limit. The gate caller also gained the `edited`
trigger, so a corrected PR title re-runs the check instead of staying red.
@pedromvgomes

Copy link
Copy Markdown
Contributor Author

Closing: gt's pipeline design changed materially.

gt will own the CI entry point (ci-gate.yml) and orchestrate repo-owned stages (ci-preflight, ci-build, ci-test, ci-end2end, ci-publish) as jobs in one workflow. That replaces the Checks-API polling aggregator this PR carries with plain needs: aggregation, and renames the required check from PR / Gate to Gate.

Reopening against the new shape rather than migrating twice. Branch kept for reference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant