frizbee icon indicating copy to clipboard operation
frizbee copied to clipboard

Reformats the GH Actions workflow file, not just the "uses" lines

Open morganestes opened this issue 6 months ago • 2 comments

Describe the issue

When running the ghactions command, frizbee reformatted my YAML file in ways I didn't ask to or want. The docs say that it only touches the "uses" lines, but that's not the case.

The biggest issues are reformatting some (not all) inline shell scripts (removes all line breaks and makes the whole script a single line), rewriting emoji into Unicode strings, removing empty lines that I have in there for clarity, and removing spaces inside brackets. Basically, it forces its own coding style on my work without warning or any obvious way to prevent it.

To Reproduce

  • In a repo, with line spaces between workflow steps and/or spaces inside brackets, run GITHUB_TOKEN=$(gh auth token) frizbee ghactions.
  • Run git diff and observe the reformatting of workflow files.

What version are you using?

0.0.12

morganestes avatar Jan 08 '24 16:01 morganestes