This tool is built with PHP and Laravel, and works by a mixture of string operations and tokenization and reassembly using an abstract syntax tree (AST) which is further normalized and formatted to produce the final output.
Since there is no official style guide for workflows, the formatting is opinionated and based on the author's preferences, and by using hints from the official documentation.
Why should I care about formatting?
Formatting your workflow file makes it easier to read and understand, and can help you spot errors and issues more easily.
It also makes it easier to collaborate with others and share your workflow files. Additionally, your files will be more
consistent and maintainable and look much cleaner and more professional.
Technical limitations
Due to the way the underlying Symfony Yaml parser works, comments are removed from the output!
The formatter does not validate your workflow file, and passing an invalid workflow file may result in an error or unusable output.
The formatter is experimental and in development, and may not work as expected. It is unofficial and not affiliated with GitHub.
A maximum or 30 000 characters is allowed for the input to reduce server load.
The tool is rate-limited to 60 requests per minute per IP address.