Fix issue #5064: lint-fix github action #5065
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request fixes #5064.
The PR successfully addresses the original issue by implementing a new GitHub Action workflow (
lint-fix.yml
) that automatically fixes linting errors when triggered by the "lint-fix" label on PRs. The solution includes:npm run lint:fix
) and backend (pre-commit hooks) codelint.yml
workflowThe implementation provides exactly what was requested in the original issue: an automated way to fix linting errors in PRs by simply adding a "lint-fix" label. The workflow will handle the rest automatically by fixing the errors and pushing the changes back to the same branch.
This solution requires no additional maintenance from developers and seamlessly integrates into the existing GitHub workflow, making it a complete resolution to the original request.
Automatic fix generated by OpenHands 🙌
To run this PR locally, use the following command: