Watches user activity on issues, sends reminders on deadlines, and eventually unassigns inactive user to ensure that tasks don't stall, and subtracts XP.
yarn install
Then copy .dev.vars.example
to .dev.vars
and fill the required values.
To start a local instance, run
supabase start
Afterward, you can generate types for full auto-completion with
yarn supabase:generate:local
Start the Worker by running
yarn dev
To trigger the worker, POST
requests should be made to http://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.
To start Jest testing, run
yarn test
- plugin: ubiquibot/user-activity-watcher
type: github
with:
disqualification: "7 days"
warning: "3.5 days"