Skip to content

Follows up on user activities related to task, sends reminders, and unassign inactive users.

Notifications You must be signed in to change notification settings

ubiquibot/user-activity-watcher

Repository files navigation

@ubiquibot/user-activity-watcher

Watches user activity on issues, sends reminders on deadlines, and eventually unassigns inactive user to ensure that tasks don't stall, and subtracts XP.

Setup

yarn install

Then copy .dev.vars.example to .dev.vars and fill the required values.

Database

To start a local instance, run

supabase start

Afterward, you can generate types for full auto-completion with

yarn supabase:generate:local

Worker

Start the Worker by running

yarn dev

Make requests

To trigger the worker, POST requests should be made to http:https://localhost:4000 with a Content-Type: application/json header and a body looking like

{
  "stateId": "",
  "eventName": "",
  "eventPayload": "",
  "settings": "",
  "ref": ""
}

For convenience, you can find an .http file with a valid request here.

Test

To start Jest testing, run

yarn test

Valid configuration

- plugin: ubiquibot/user-activity-watcher
  type: github
  with:
    disqualification: "7 days"
    warning: "3.5 days"

About

Follows up on user activities related to task, sends reminders, and unassign inactive users.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •