Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 37 additions & 2 deletions .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,37 @@
- name: autofix.ci
uses: autofix-ci/action@v1.3.2
name: autofix.ci

on:
pull_request:

Copilot AI Jan 29, 2026

Copy link

Choose a reason for hiding this comment

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

The pull_request trigger lacks a branches filter, which differs from the validate-rules.yml workflow pattern. For consistency with the existing workflow (validate-rules.yml:6-7), consider adding branches: [main, develop] to the pull_request trigger. Without this filter, the workflow will run on pull requests targeting any branch, which may not be the intended behavior.

Copilot uses AI. Check for mistakes.
push:
branches:
- main
- develop

permissions:
contents: read

Copilot AI Jan 29, 2026

Copy link

Choose a reason for hiding this comment

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

The autofix.ci action requires write permissions to commit and push changes back to the pull request. The current permissions only grant contents: read, which will prevent the action from functioning properly. The permissions should be updated to include contents: write.

Suggested change
contents: read
contents: write

Copilot uses AI. Check for mistakes.

jobs:
autofix:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6

- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: '24'

- name: Setup PNPM
uses: pnpm/action-setup@v4
with:
version: 10.28.2

- name: Install dependencies
run: pnpm install

- name: Run autofix
run: pnpm lint:fix

- name: autofix.ci
uses: autofix-ci/action@v1.3.2