ubiquity-os-marketplace / daemon-disqualifier

Follows up on user activities related to task, sends reminders, and unassign inactive users.
0 stars 9 forks source link

Flexible timing #2

Closed rndquu closed 3 months ago

rndquu commented 3 months ago

Depends on https://github.com/ubiquibot/user-activity-watcher/pull/1

Right now this plugin supports only thresholds in minutes:

- plugin: ubiquibot/user-activity-watcher
  type: github
  with:
    unassignUserThreshold: 7
    sendRemindersThreshold: 3.5

It would be useful to support custom string thresholds like: 1 minute, 2 hours, 3 days etc... which could be converted to seconds under the hood.

Example:

- plugin: ubiquibot/user-activity-watcher
  type: github
  with:
    unassignUserThreshold: "1 week"
    sendRemindersThreshold: "3 days"

What should be done:

rndquu commented 3 months ago

@gentlementlegen Pls check the description

gentlementlegen commented 3 months ago

So the default would change from 7 to "7 days", and number would become a string that we parse, sounds good to me.

ubiquibot[bot] commented 3 months ago
! No price label has been set. Skipping permit generation.