Skip to content

Commit

Permalink
Merge pull request #66 from ubiquity-os-marketplace/development
Browse files Browse the repository at this point in the history
Merge development into main
  • Loading branch information
gentlementlegen authored Dec 14, 2024
2 parents 2dcfc7c + a26b2b1 commit 2aa7af0
Show file tree
Hide file tree
Showing 23 changed files with 351 additions and 63,108 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist/* linguist-generated
bun.lockb linguist-generated
2 changes: 1 addition & 1 deletion .github/knip.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { KnipConfig } from "knip";

const config: KnipConfig = {
entry: ["src/index.ts"],
entry: ["src/index.ts", "src/worker.ts"],
project: ["src/**/*.ts"],
ignore: ["**/__mocks__/**", "**/__fixtures__/**", "src/types/database.ts", "dist/**"],
ignoreExportsUsedInFile: true,
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/compute.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
compute:
environment: ${{ github.ref == 'refs/heads/main' && 'main' || 'development' }}
permissions: write-all
name: User Activity Watcher
name: Daemon Disqualifier
runs-on: ubuntu-latest
env:
SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
Expand Down
2 changes: 1 addition & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn commitlint --edit "$1"
bun commitlint --edit "$1"
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn lint-staged
bun lint-staged
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# @ubiquity-os/daemon-disqualifier

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

## Setup

```shell
yarn install
bun install
```

### Database
Expand All @@ -20,31 +20,31 @@ supabase start
Afterward, you can generate types for full auto-completion with

```shell
yarn supabase:generate:local
bun run supabase:generate:local
```

### Test

To start Jest testing, run

```shell
yarn test
bun run test
```

## Valid configuration

```yaml
- plugin: ubiquibot/user-activity-watcher
type: github
- plugin: ubiquity-os/daemon-disqualifier
with:
disqualification: "7 days"
warning: "3.5 days"
prioritySpeed: true
pullRequestRequired: true
watch:
optOut:
- "repoName"
- "repoName2"
eventWhitelist: # these are the tail of the webhook event i.e pull_request.review_requested
eventWhitelist: # these are the tail of the webhook event i.e. pull_request.review_requested
- "review_requested"
- "ready_for_review"
- "commented"
Expand Down
Binary file modified bun.lockb
Binary file not shown.
4 changes: 2 additions & 2 deletions dist/index.js

Large diffs are not rendered by default.

Loading

0 comments on commit 2aa7af0

Please sign in to comment.