frizbee
frizbee copied to clipboard
Reformats the GH Actions workflow file, not just the "uses" lines
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