omsf-eco-infra / ticgithub

Tools to use a GitHub repository as a support ticket system
MIT License
0 stars 0 forks source link

Un-label snoozed issues after snooze period has passed #57

Open dwhswenson opened 8 months ago

dwhswenson commented 8 months ago

Currently, the snooze functionality stops snoozing (and reminders restart) if the snooze label has expired. However, the snooze label stays on the issue, which is misleading when looking at issue lists.

Instead, if the reminder task finds an expired snooze, it should remove that label.

This probably involves changing some logic in ReminderTask so that there is an is_snoozed check on the issue, instead of combining the delay time and snooze time functionality into a single if check. (This will probably also be more readable, so that's a general win.)