Skip to content

ci: 添加 PR lint 检查#21

Merged
awsl233777 merged 1 commit intomainfrom
ci/add-lint-check
Jan 14, 2026
Merged

ci: 添加 PR lint 检查#21
awsl233777 merged 1 commit intomainfrom
ci/add-lint-check

Conversation

@awsl233777
Copy link
Collaborator

@awsl233777 awsl233777 commented Jan 14, 2026

User description

PR 合并到 main 前必须通过前端 lint 检查


PR Type

enhancement


Description

  • Add Lint check for pull requests

  • Ensure code quality before merging


Diagram Walkthrough

flowchart LR
  A["Pull Request"] -- "triggers" --> B["Lint Check"]
  B -- "validates" --> C["Code Quality"]
Loading

File Walkthrough

Relevant files
Enhancement
lint.yml
New Lint Workflow Configuration                                                   

.github/workflows/lint.yml

  • Create a new workflow for linting
  • Configure linting on pull requests to main
  • Set up Node.js and dependencies
+32/-0   

PR 合并到 main 前必须通过前端 lint 检查

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@github-actions
Copy link
Contributor

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Configuration Review

Ensure that the linting configuration and commands are correctly set up and compatible with the project's requirements. Validate that the specified paths and node version align with the project's structure.

name: Lint

on:
  pull_request:
    branches: [main]
    paths:
      - 'web/**'

jobs:
  lint:
    runs-on: ubuntu-latest
    defaults:
      run:
        working-directory: web
    steps:
      - uses: actions/checkout@v4

      - uses: pnpm/action-setup@v4
        with:
          version: 9

      - uses: actions/setup-node@v4
        with:
          node-version: '20'
          cache: 'pnpm'
          cache-dependency-path: web/pnpm-lock.yaml

      - name: Install dependencies
        run: pnpm install --frozen-lockfile

      - name: Run lint
        run: pnpm run lint

@github-actions
Copy link
Contributor

PR Code Suggestions ✨

No code suggestions found for the PR.

@awsl233777 awsl233777 merged commit 4a42eca into main Jan 14, 2026
1 check passed
@awsl233777 awsl233777 deleted the ci/add-lint-check branch January 15, 2026 06:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant