j0b10/AoC-badges
Updates the badges of your Readme to show your current Advent of Code stats
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| session | Your session code for login. Retrive it from your browser cookies. Make sure you use a secret to not leak this to public. | yes | — |
| userid | Your unique userid on adventofcode.com, obtain it from **YOUR** private leaderboard url (its the number at the end of the url). | yes | — |
| year | The year for which the stats should be retrived. If not speified, the current year (from system time) is used. | no | — |
| leaderboard | The url of your leaderboard json file. You can get it by just appending .json to the url of your leaderboard. | no | — |
| file | The file where the badges should be updated. Default is README.md | no | README.md |
| dayRegex | A regular expression to find the day badge in your file. Must be changed if you change the badge. | no | (?<=https:\/\/img\.shields\.io\/badge\/day%20📅-)[0-9]+(?=-blue) |
| starsRegex | A regular expression to find the stars badge in your file. Must be changed if you change the badge. | no | (?<=https:\/\/img\.shields\.io\/badge\/stars%20⭐-)[0-9]+(?=-yellow) |
| daysCompletedRegex | A regular expression to find the completed days badge in your file. Must be changed if you change the badge. | no | (?<=https:\/\/img\.shields\.io\/badge\/days%20completed-)[0-9]+(?=-red) |
Outputs
no outputs