Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuring multiple years #5

Closed
amclin opened this issue Jun 30, 2021 · 1 comment
Closed

Configuring multiple years #5

amclin opened this issue Jun 30, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@amclin
Copy link

amclin commented Jun 30, 2021

How could we go about configuring for multiple years? I have all years in a single repo and would love to show status of each year.

@J0B10 J0B10 added the enhancement New feature or request label Jun 30, 2021
@J0B10
Copy link
Owner

J0B10 commented Jun 30, 2021

First of all thanks a lot for checking out the action and giving feedback.
It was really just a small project to get to know github actions and spice up my aoc repo a bit.
So great to see people from the other side of the world using it 😄👍

For now you could just have the aoc badges action multiple times (once for each year) and have slightly different badges for each year with a custom regex (use starsRegex and daysCompletedRegex inputs).
The day badge probably doesn't makes sense for multiple years as it only depends on the current date (and therefore only works in December).
Also make sure to set the leader board url to the leader board of the proper year using the optional leaderboard import.

It would make sense to add an additional year input to make that stuff easier. But I'll probably won't work on this before next aoc as this really is a December project. I might then also tweak some other stuff to make it easier to use.

If you have some more questions feel free or an example feel free to ask.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants