apache / beam

Apache Beam is a unified programming model for Batch and Streaming data processing.
https://beam.apache.org/
Apache License 2.0
7.81k stars 4.23k forks source link

[Feature Request]: Expose page traffic and PR review metrics for the Beam community #26906

Open damccorm opened 1 year ago

damccorm commented 1 year ago

What would you like to happen?

Between GitHub actions and APIs, there's some good community metrics out there that we don't yet expose in a super useful way to the community. A couple examples:

  1. With a GitHub action, I was able to generate a PR summary on https://github.com/damccorm/playground/pull/29 (using my fork of the main https://github.com/flowwer-dev/pull-request-stats action - https://github.com/damccorm/playground/blob/main/.github/workflows/pr-stats.yml with a fix patched in). Unfortunately, that doesn't yet support exporting the summary direct to email, so we'd need to add that or figure out a different way to integrate stats
  2. GitHub insights provides a dashboard on page traffic - https://github.com/apache/beam/graphs/traffic image

Non-committers can't see this though. We could expose it using GitHub's rest api - https://docs.github.com/en/rest/metrics/traffic?apiVersion=2022-11-28 - or using something like https://github.com/marketplace/actions/repository-traffic (not sure how well it works yet).

It would be awesome if we sent an email to the devlist on some frequency (maybe 30 days) highlighting these stats.

Issue Priority

Priority: 2 (default / most feature requests should be filed as P2)

Issue Components

damccorm commented 1 year ago

It looks like accessing stats requires more permissions than you can give a GITHUB_TOKEN in GitHub actions. So our automation options there are limited. We could set up a PAT, but that needs to be maintained and I don't think that piece is worth the pain.