flowwer-dev / pull-request-stats

Github action to print relevant stats about Pull Request reviewers
MIT License
359 stars 79 forks source link

Add stats as a github step output #76

Closed damccorm closed 1 year ago

damccorm commented 1 year ago

This will give users the ability to manipulate the outcome of a run themselves and connect to arbitrary output sources. I tried this myself and was able to send a reasonably well formatted email with minimal work (see https://github.com/damccorm/playground/blob/main/.github/workflows/pr-stats.yml for my example).

Fixes #72

damccorm commented 1 year ago

Update: I got this to a point where I feel pretty good about the email formatting, so this approach definitely can work :)

damccorm commented 1 year ago

Thanks!

manuelmhtr commented 1 year ago

Hi @damccorm thanks for your help! Changes are available in v2.11.0. Just made a couple of changes:

  1. Renamed results to resultsMd (to specify this is the markdown output).
  2. Added the variable resultsJson as the results in JSON format.

Best!