andresz1 / size-limit-action

Compare the real cost to run your JS app or lib to keep good performance in every pull request
ISC License
449 stars 83 forks source link

Add option to use GitHub Statuses instead of a comment #69

Open dcastil opened 2 years ago

dcastil commented 2 years ago

It would be awesome if I could choose to use GitHub Statuses instead of a comment to post the size limit information. That would make it a lot easier to see how the size limit changed between commits in a PR and make it more obvious to which commit a size-limit report belongs.

I've seen in https://github.com/andresz1/size-limit-action/pull/25#pullrequestreview-434396436 that the idea came up already and it is also used in the bundlesize package. I also think it should be possible to do right from the GitHub action without the need for a GitHub app as github-status-action can also submit a status just with the secrets.GITHUB_TOKEN.