Skip to content

ci: add GitHub PR pipeline and advisory AI review - #3

Merged
grigoreo-fox merged 18 commits into
mainfrom
t2-github-pr-pipeline
Jul 8, 2026
Merged

grigoreo-fox merged 18 commits into
mainfrom
t2-github-pr-pipeline

Conversation

@grigoreo-fox

@grigoreo-fox grigoreo-fox commented Jul 8, 2026 •

Copy link
Copy Markdown
Member

Summary

Adds the GitHub PR pipeline and repository governance setup on top of the Node 18/pnpm runtime migration.

What changed

  • Split required CI into lint, build, and unit jobs.
  • Add non-blocking E2E workflow.
  • Add conventional PR title validation.
  • Add CodeRabbit and Cubic advisory review configuration.
  • Add CODEOWNERS, PR/issue templates, CONTRIBUTING, Dependabot, and manual GitHub UI checklist.

Testing

  • pnpm install --frozen-lockfile
  • pnpm run prettier:check
  • pnpm run pwa:build
  • pnpm run web-extension:build
  • pnpm run server:start-dry
  • pnpm -r run test

Summary by cubic

Sets up a GitHub PR pipeline with split required checks, a non-blocking E2E workflow, PR title validation, and repository governance. Improves PR speed and reliability, adds advisory CodeRabbit/Cubic reviews, Dependabot updates, and enforces an English‑only policy.

  • New Features

    • Split CI into lint, build, and unit jobs (ci.yml) with a translation extract dirty‑tree check; removed run-tests.yml.
    • E2E workflow (manual/nightly or e2e label); non-blocking.
    • Conventional PR title validation via amannn/action-semantic-pull-request.
    • CI uses Node from .nvmrc and the pnpm version from package.json packageManager.
    • Advisory reviewer configs for CodeRabbit (.coderabbit.yaml) and Cubic (cubic.yaml) with path filters.
    • Repo scaffolding: CODEOWNERS, PR/issue templates, Dependabot, AGENTS.md (English-only), and CONTRIBUTING.md with setup plus translation extract dirty‑tree guidance.
  • Migration

    • In GitHub settings, protect main and require: lint, build, unit, and PR Title.
    • Install CodeRabbit and Cubic apps for this repo.
    • Prefer squash merges; disable merge/rebase if desired.

Written for commit a942271. Summary will update on new commits.

Review in cubic

Summary by CodeRabbit

  • New Features

    • Added standardized pull request and issue templates to make reporting bugs and requesting features easier.
    • Introduced automated checks for pull request titles and review workflows.
  • Bug Fixes

    • Improved continuous integration coverage with build, lint, unit, and end-to-end test runs.
    • Added safeguards to catch missing translations during validation.
  • Documentation

    • Expanded contributor guidance and repository instructions for a clearer contribution process.

@coderabbitai

coderabbitai Bot commented Jul 8, 2026 •

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 9798d463-647d-4199-9b27-e85ef86b7565

📥 Commits

Reviewing files that changed from the base of the PR and between d1abafa and a942271.

⛔ Files ignored due to path filters (3)
  • docs/superpowers/plans/2026-07-08-github-pr-pipeline.md is excluded by !docs/superpowers/**
  • docs/superpowers/specs/2026-07-08-github-pr-pipeline-design.md is excluded by !docs/superpowers/**
  • docs/superpowers/specs/2026-07-08-github-pr-pipeline-ui-checklist.md is excluded by !docs/superpowers/**
📒 Files selected for processing (14)
  • .coderabbit.yaml
  • .github/CODEOWNERS
  • .github/ISSUE_TEMPLATE/bug_report.md
  • .github/ISSUE_TEMPLATE/config.yml
  • .github/ISSUE_TEMPLATE/feature_request.md
  • .github/dependabot.yml
  • .github/pull_request_template.md
  • .github/workflows/ci.yml
  • .github/workflows/e2e.yml
  • .github/workflows/pr-title.yml
  • .github/workflows/run-tests.yml
  • AGENTS.md
  • CONTRIBUTING.md
  • cubic.yaml

📝 Walkthrough

Walkthrough

This PR adds repository governance and CI tooling: AI review configs (.coderabbit.yaml, cubic.yaml), GitHub community files (CODEOWNERS, issue/PR templates, dependabot), new GitHub Actions workflows (CI, E2E, PR-title) replacing the removed run-tests.yml, and contributor documentation (AGENTS.md, CONTRIBUTING.md).

Changes

Repository governance, CI, and contribution setup

Layer / File(s) Summary
AI review tool configuration
.coderabbit.yaml, cubic.yaml
Configures CodeRabbit and Cubic automated review behavior, path filters, skip-label handling, and PR description generation.
CODEOWNERS and issue/PR templates
.github/CODEOWNERS, .github/ISSUE_TEMPLATE/*, .github/pull_request_template.md
Adds ownership rule, bug report and feature request templates, issue template config with security contact link, and a PR template with checklist.
CI, E2E, PR-title, and dependency workflows
.github/workflows/ci.yml, .github/workflows/e2e.yml, .github/workflows/pr-title.yml, .github/dependabot.yml, .github/workflows/run-tests.yml
Adds lint/build/unit CI jobs, a label-gated E2E workflow, PR title format enforcement, and weekly dependency update automation, replacing the old run-tests.yml pipeline.
Agent and contributor documentation
AGENTS.md, CONTRIBUTING.md
Documents English-only language policy for agents, development prerequisites, branch workflow, commit/PR title conventions, validation commands, and review checklist.

Estimated code review effort: 2 (Simple) | ~12 minutes

Sequence Diagram(s)

sequenceDiagram
  participant PullRequest
  participant CIWorkflow
  participant LintJob
  participant BuildJob
  participant UnitJob
  PullRequest->>CIWorkflow: trigger on pull_request/push
  CIWorkflow->>LintJob: run prettier:check and locale:extract
  CIWorkflow->>BuildJob: build PWA and web extension, server:start-dry
  CIWorkflow->>UnitJob: run pnpm test
Loading
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch t2-github-pr-pipeline

Comment @coderabbitai help to get the list of available commands.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found and verified against the latest diff

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="docs/superpowers/plans/2026-07-08-github-pr-pipeline.md">

<violation number="1" location="docs/superpowers/plans/2026-07-08-github-pr-pipeline.md:87">
P2: CI will not actually be pinned to the repository's pnpm 10.15.0 toolchain; `version: 10` lets `pnpm/action-setup` install the latest 10.x release. Consider using `version: 10.15.0` in each planned workflow snippet so local and CI installs stay reproducible.</violation>
</file>

Tip: instead of fixing issues one by one fix them all with cubic

Re-trigger cubic

Comment thread .github/workflows/pr-title.yml Resolved
Comment thread CONTRIBUTING.md Resolved
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v4
with:
version: 10

@cubic-dev-ai cubic-dev-ai Bot Jul 8, 2026 •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: CI will not actually be pinned to the repository's pnpm 10.15.0 toolchain; version: 10 lets pnpm/action-setup install the latest 10.x release. Consider using version: 10.15.0 in each planned workflow snippet so local and CI installs stay reproducible.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At docs/superpowers/plans/2026-07-08-github-pr-pipeline.md, line 87:

<comment>CI will not actually be pinned to the repository's pnpm 10.15.0 toolchain; `version: 10` lets `pnpm/action-setup` install the latest 10.x release. Consider using `version: 10.15.0` in each planned workflow snippet so local and CI installs stay reproducible.</comment>

<file context>
@@ -0,0 +1,853 @@
+            - uses: actions/checkout@v3
+            - uses: pnpm/action-setup@v4
+              with:
+                  version: 10
+            - uses: actions/setup-node@v3
+              with:
</file context>
Fix with cubic

Comment thread cubic.yaml Resolved
Comment thread .github/workflows/ci.yml Resolved
Comment thread AGENTS.md Resolved
Comment thread .github/ISSUE_TEMPLATE/bug_report.md Resolved
Comment thread .github/dependabot.yml Resolved

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 11 files (changes from recent commits).

Tip: Review your code locally with the cubic CLI to iterate faster.

Fix all with cubic | Re-trigger cubic

Comment thread CONTRIBUTING.md Resolved
@grigoreo-fox
grigoreo-fox changed the base branch from t1-node18-web-runtime-only to main July 8, 2026 21:25
@grigoreo-fox
grigoreo-fox merged commit 4712f75 into main Jul 8, 2026
7 of 8 checks passed
@grigoreo-fox
grigoreo-fox deleted the t2-github-pr-pipeline branch July 8, 2026 21:32
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