Special output format for Github actions
Describe the Bug
Detect when Pyrefly is running as a Github action, and emit errors using the Github workflow output format so that errors show up inline in PRs: https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-commands
See basedpyright for reference: https://docs.basedpyright.com/latest/benefits-over-pyright/improved-ci-integration/ when it find a type error, it will show comment on the pr. Not just ci error.
Sandbox Link
No response
(Only applicable for extension issues) IDE Information
No response
That would be handy to have!
I wonder if we could emit both error formats, since the regular would still be useful for folks that want to look at the whole list of errors.
hi @yangdanny97 ! Mind if I take this one? I was actually wishing pyrefly had something like this too