pyrefly icon indicating copy to clipboard operation
pyrefly copied to clipboard

Special output format for Github actions

Open asukaminato0721 opened this issue 3 months ago • 2 comments

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

asukaminato0721 avatar Nov 16 '25 20:11 asukaminato0721

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.

yangdanny97 avatar Nov 17 '25 01:11 yangdanny97

hi @yangdanny97 ! Mind if I take this one? I was actually wishing pyrefly had something like this too

Massakera avatar Nov 23 '25 20:11 Massakera