Help with setting up a repository stats action #835
-
My current goal is to setup an action which would generate and display statistics related to a repository on that repository's readme file. I'm a bit confused on what I need to change in the GitHub Action, in order to actually display stuff properly. For context: The repository that I want to apply this towards is Readme-Workflows/recent-activity and I would like to display recent (and total) stars the repository has and contributors towards it. How should the action look like to achieve this? Also, maybe add a guide to explain repository-based metrics? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I've made a PR that has the planned changes and I would appreciate if you take a look and tell me, if it is good or needs changes: |
Beta Was this translation helpful? Give feedback.
-
Yeah the repo feature is not explained very well in other templates other than the repository one. But basically it's the same as for user, except that you need to provide |
Beta Was this translation helpful? Give feedback.
Yeah the repo feature is not explained very well in other templates other than the repository one.
But basically it's the same as for user, except that you need to provide
repo
option with repository name and setuser
to owner.Maybe it'd be a good feature to make it so
repo
option is able to parse a repo handle directly