Comfy-Org / Comfy-Org/ComfyUI_frontend

[CI] Lint and format action breaks if any change required

Open
#4,933 0 comments 0 reactions 0 assignees View on GitHub
developer experience
Dominant language
TypeScript
Stars
2k
Forks
699
Avg merge
1d 7h
Merged PRs (30d)
490

Description

It appears the new lint and format GH action is unable to write to PRs.

Husky can also be configured to do this.

- Doesn't make changes on remote for a local branch
- Husky is already configured and proven to work
- The old litegraph repo is already configured in this way (removes unused imports on commit)

```
[detached HEAD b4f0cad2] [auto-fix] Apply ESLint and Prettier fixes
1 file changed, 2 deletions(-)
fatal: You are not currently on a branch.
To push the history leading to the current (detached HEAD)
state now, use

git push origin HEAD:

Error: Process completed with exit code 128.
```

┆Issue is synchronized with this [Notion page](https://www.notion.so/Issue-4933-CI-Lint-and-format-action-breaks-if-any-change-required-24d6d73d365081eca78ac7c4b970c0ea) by [Unito](https://www.unito.io)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.