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

record upkeep year and use it for filtering checklist #2070

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

thomasp85
Copy link
Member

Fix #1916

This PR adds two new functions: record_upkeep_year() which writes the year of the upkeep to Config/usethis/upkeep and last_upkeep_year() which retrieves this value or defaults to 2000 if it doesn't exist. These two functions are used in use_tidy_upkeep_issue() to automatically use the year of the last upkeep for filtering the produced checklist as well as incrementing the recorded year to the current year.

Further, this PR fixes what appears to be a bug/discrepancy in how year was used in make_upkeep_issue() depending on whether use_upkeep_issue() or use_tidy_upkeep_issue() was called

@thomasp85 thomasp85 requested a review from jennybc October 8, 2024 07:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Record last upkeep year
1 participant