Skip to content

Replace phpcs.yml with the shared lint workflow - #100

Merged
lihsaa591 merged 1 commit into
masterfrom
rollout/shared-lint
Nov 4, 2026
Merged

lihsaa591 merged 1 commit into
masterfrom
rollout/shared-lint

Conversation

@lihsaa591

Copy link
Copy Markdown
Contributor

Part of the CI workflow consolidation: one shared lint workflow instead of a per-repo copy.

  • Removes phpcs.yml.
  • Adds a short caller of themegrill/workflows lint.yml.
  • Lints only the files a PR changes, using this repo's own phpcs.xml (and ESLint config, where present).
  • Errors fail the check; warnings only annotate. Neither is a required check, so merges aren't blocked.

Tested in the pilot (#99): PHPCS and ESLint ran and annotated existing violations in the files touched.

🤖 Generated with Claude Code

Lints only changed files with the repo's own ruleset (PHPCS and ESLint), via themegrill/workflows lint.yml.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@tg-autopilot

Copy link
Copy Markdown
Contributor

Build for defaa48a is ready 🛎️

⬇️ Download accelerate.zip (1.7M)

Installs directly via Plugins → Add New → Upload Plugin.
Link expires in 30 days · updated Nov 4, 2026 10:20 AM +0545

A later push only rebuilds this if its commit message includes #build-zip.

Copilot AI 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.

🟡 Changes recommended

The workflow’s path filter omits .mjs and .cjs files, so changes limited to those extensions would not receive the promised ESLint check.

1 open issue
What changed in this PR

Replaces the repository-specific PHPCS workflow with the shared ThemeGrill lint workflow, preserving repository-owned lint configuration and linting changed files.

Changes:

  • Removes .github/workflows/phpcs.yml.
  • Adds a reusable .github/workflows/lint.yml caller.
  • Configures pull-request path filters for PHP, JavaScript, JSX, TypeScript, and TSX files.
  • Review findings: add .mjs and .cjs path filters, and correct the PR description’s claim that ESLint ran when no repository ESLint configuration is present.
File Summary Review findings
.github/​workflows/​phpcs.yml Removes the repository-specific PHPCS workflow. None
.github/​workflows/​lint.yml Adds the shared lint workflow caller and language-specific path filters. Moderate: Add **.mjs and **.cjs filters. Nit: Correct the ESLint pilot claim or add and exercise a repository-owned ESLint configuration.

Review effort: Lite

Comment on lines +10 to +13
- '**.js'
- '**.jsx'
- '**.ts'
- '**.tsx'
@lihsaa591
lihsaa591 merged commit d2bd563 into master Nov 4, 2026
6 of 7 checks passed
@lihsaa591
lihsaa591 deleted the rollout/shared-lint branch November 4, 2026 04:39
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.

3 participants