Skip to content

support auto-fix option to fix code format automatically in PR? #439

@shenxianpeng

Description

@shenxianpeng

Is your idea related to an existing feature?

No response

Describe the behavior you would like

When clang-format detects style failures, the action currently leaves fixing to the developer.

This issue proposes an auto-fix: that automatically commits the formatted changes back to the PR branch — eliminating the manual fix-and-repush cycle for purely mechanical style issues.

Comparable patterns exist in the ecosystem today (e.g. autofix.ci). A native fix option would lower the barrier to adoption and reduce CI noise significantly.

Proposed behavior:

- uses: cpp-linter/cpp-linter-action@v2
  with:
    auto-fix: 'true'

Describe alternatives you have considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions