Skip to content

Commit

Permalink
refactor: rename package and update references from @ubiquibot to @ub…
Browse files Browse the repository at this point in the history
  • Loading branch information
0x4007 committed Oct 10, 2024
1 parent 7445be1 commit 1ceebb3
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"supabase",
"SUPABASE",
"typebox",
"ubiquibot",
"ubiquity-os",
"signoff",
"sonarjs",
"mswjs",
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# `@ubiquibot/command-start-stop`
# `@ubiquity-os/command-start-stop`

This plugin allows a hunter to begin a task as well as gracefully stop a task without incurring a negative impact on the hunter's XP or karma.

Expand All @@ -24,9 +24,9 @@ To stop a task, a hunter should use the `/stop` command. This will unassign them

### [Configuration](./src/types/plugin-input.ts)

#### Note: The command name is `"start"` when configuring your `.ubiquibot-config.yml` file.
#### Note: The command name is `"start"` when configuring your `.ubiquity-os.config.yml` file.

To configure your Ubiquibot to run this plugin, add the following to the `.ubiquibot-config.yml` file in your organization configuration repository.
To configure your Ubiquibot to run this plugin, add the following to the `.ubiquity-os.config.yml` file in your organization configuration repository.

```yml
- plugin: http://localhost:4000 # or the URL where the plugin is hosted
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@ubiquibot/command-start-stop",
"name": "@ubiquity-os/command-start-stop",
"version": "1.0.0",
"description": "Enables the assignment and graceful unassignment of tasks to contributors.",
"main": "src/worker.ts",
Expand Down Expand Up @@ -33,7 +33,7 @@
"@octokit/webhooks": "13.2.7",
"@sinclair/typebox": "^0.32.5",
"@supabase/supabase-js": "2.42.0",
"@ubiquity-dao/ubiquibot-logger": "^1.3.1",
"@ubiquity-os/ubiquity-os-logger": "^1.3.2",
"dotenv": "^16.4.4",
"ms": "^2.1.3",
"typebox-validators": "^0.3.5"
Expand Down
2 changes: 1 addition & 1 deletion src/handlers/shared/structured-metadata.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { LogReturn } from "@ubiquity-dao/ubiquibot-logger";
import { LogReturn } from "@ubiquity-os/ubiquity-os-logger";

function createStructuredMetadata(className: string, logReturn: LogReturn | null) {
let logMessage, metadata;
Expand Down
2 changes: 1 addition & 1 deletion src/plugin.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { paginateGraphQL } from "@octokit/plugin-paginate-graphql";
import { Octokit } from "@octokit/rest";
import { createClient } from "@supabase/supabase-js";
import { LogReturn, Logs } from "@ubiquity-dao/ubiquibot-logger";
import { LogReturn, Logs } from "@ubiquity-os/ubiquity-os-logger";
import { createAdapters } from "./adapters";
import { userPullRequest, userSelfAssign, userStartStop, userUnassigned } from "./handlers/user-start-stop";
import { Context, Env, PluginInputs } from "./types";
Expand Down
2 changes: 1 addition & 1 deletion src/types/context.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { paginateGraphQLInterface } from "@octokit/plugin-paginate-graphql";
import { Octokit } from "@octokit/rest";
import { EmitterWebhookEvent as WebhookEvent, EmitterWebhookEventName as WebhookEventName } from "@octokit/webhooks";
import { Logs } from "@ubiquity-dao/ubiquibot-logger";
import { Logs } from "@ubiquity-os/ubiquity-os-logger";
import { createAdapters } from "../adapters";
import { Env } from "./env";
import { PluginSettings } from "./plugin-input";
Expand Down
4 changes: 2 additions & 2 deletions tests/main.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { afterAll, afterEach, beforeAll, beforeEach, describe, expect } from "@jest/globals";
import { drop } from "@mswjs/data";
import { createClient } from "@supabase/supabase-js";
import { cleanLogString, Logs } from "@ubiquity-dao/ubiquibot-logger";
import { cleanLogString, Logs } from "@ubiquity-os/ubiquity-os-logger";
import dotenv from "dotenv";
import { createAdapters } from "../src/adapters";
import { userStartStop, userUnassigned } from "../src/handlers/user-start-stop";
Expand Down Expand Up @@ -550,7 +550,7 @@ async function setupTests() {
id: 5,
actor: {
id: 1,
login: "ubiquibot[bot]",
login: "ubiquity-os[bot]",
type: "Bot",
},
assignee: {
Expand Down
2 changes: 1 addition & 1 deletion wrangler.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name = "ubiquibot-command-start-stop"
name = "ubiquity-os-command-start-stop"
main = "src/worker.ts"
compatibility_date = "2024-05-23"
node_compat = true
Expand Down
14 changes: 7 additions & 7 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2809,9 +2809,9 @@ __metadata:
languageName: node
linkType: hard

"@ubiquibot/command-start-stop@workspace:.":
"@ubiquity-os/command-start-stop@workspace:.":
version: 0.0.0-use.local
resolution: "@ubiquibot/command-start-stop@workspace:."
resolution: "@ubiquity-os/command-start-stop@workspace:."
dependencies:
"@commitlint/cli": "npm:19.3.0"
"@commitlint/config-conventional": "npm:19.2.2"
Expand All @@ -2830,7 +2830,7 @@ __metadata:
"@types/jest": "npm:29.5.12"
"@types/ms": "npm:^0.7.34"
"@types/node": "npm:20.14.5"
"@ubiquity-dao/ubiquibot-logger": "npm:^1.3.1"
"@ubiquity-os/ubiquity-os-logger": "npm:^1.3.2"
cspell: "npm:8.9.0"
dotenv: "npm:^16.4.4"
eslint: "npm:9.5.0"
Expand All @@ -2856,10 +2856,10 @@ __metadata:
languageName: unknown
linkType: soft

"@ubiquity-dao/ubiquibot-logger@npm:^1.3.1":
version: 1.3.1
resolution: "@ubiquity-dao/ubiquibot-logger@npm:1.3.1"
checksum: 10c0/b6a4f2171e70126c12f1f7c0f18fe670597bf31e9c0dc19ecfe442a9118401c799a35be32e1d4785f23d0e9c1c6c0be2548769b958a5ed198d849f11520d0c57
"@ubiquity-os/ubiquity-os-logger@npm:^1.3.2":
version: 1.3.2
resolution: "@ubiquity-os/ubiquity-os-logger@npm:1.3.2"
checksum: 10c0/bf5c90c21fd18bda11c632b75d626a94675e2dc1b5492c0970e7ee27b5f7999046d3c9ee0ef096cdc4c1b58deb8cb4f5f7464ca18848d41082d61c4e75bb7d20
languageName: node
linkType: hard

Expand Down

0 comments on commit 1ceebb3

Please sign in to comment.