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

Implemented reference time parameter #10

Merged
merged 5 commits into from
Dec 17, 2023
Merged

Implemented reference time parameter #10

merged 5 commits into from
Dec 17, 2023

Conversation

staabm
Copy link
Owner

@staabm staabm commented Dec 17, 2023

By default comments are checked against todays date.

You might be interested, which comments will expire e.g. within the next 7 days, which can be configured with the referenceTime option.
You need to configure a date parsable by strtotime.

parameters:
    todo_by:
        referenceTime: "now+7days"

It can be especially handy to use a env variable for it, so you can pass the reference date e.g. via the CLI:

parameters:
    todo_by:
        referenceTime: %env.TODOBY_REF_TIME%

TODOBY_REF_TIME="now+7days" vendor/bin/phpstan analyze

@staabm staabm merged commit 5cabd21 into main Dec 17, 2023
10 checks passed
@staabm staabm deleted the ref branch December 17, 2023 16:25
@staabm staabm mentioned this pull request Dec 17, 2023
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.

1 participant