Skip to content

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

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 (#126): 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 81d30c5d is ready 🛎️

⬇️ Download flash.zip (3.1M)

Installs directly via Plugins → Add New → Upload Plugin.
Link expires in 30 days · updated Nov 4, 2026 10:21 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 change has unresolved critical and moderate lint workflow issues that can cause TypeScript parse failures and omit PHPCS warning annotations.

2 open issues
What changed in this PR

This pull request replaces the repository-specific PHPCS workflow with the shared themegrill/workflows lint workflow for changed PHP and JavaScript-family files.

Changes:

  • Removes the standalone .github/workflows/phpcs.yml.
  • Adds a reusable shared lint workflow caller.
  • Configures PHP 7.4 and pull-request path filters for PHP, JavaScript, JSX, TypeScript, and TSX files.
  • Reuses the repository’s existing PHPCS and ESLint configurations.
File Summary
.github/​workflows/​phpcs.yml Removes the obsolete repository-specific PHPCS workflow.
.github/​workflows/​lint.yml Adds the shared lint workflow caller. Review findings: the path filter omits .mjs and .cjs files (moderate, 1 vote); the repository’s phpcs.xml suppresses warnings, preventing the promised PHPCS warning annotations (moderate, 3 votes); TypeScript and TSX linting lacks the required TypeScript parser and plugin (critical, 2 votes); and the broadened JavaScript scope may lint bundled or third-party files with unrelated violations (moderate, 1 vote).

This pull request requires changes.

Review effort: Lite

Comment on lines +12 to +13
- '**.ts'
- '**.tsx'

jobs:
lint:
uses: themegrill/workflows/.github/workflows/lint.yml@master
@lihsaa591
lihsaa591 merged commit 1425424 into master Nov 4, 2026
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