From 040e478ad6cf630dedf666eac7abeb668d323666 Mon Sep 17 00:00:00 2001 From: iuwqyir Date: Tue, 12 Nov 2024 22:51:51 +0000 Subject: [PATCH] add nebula service definition (#5401) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Problem solved https://linear.app/thirdweb/issue/BLOCK-412/add-api-key-scope Added Nebula service scope to the service definitions and included it in the hidden services list. --- ## PR-Codex overview This PR introduces the `nebula` service scope to the project and updates the related configurations and validations accordingly. It also modifies the pull request body check to include the `BLOCK` keyword. ### Detailed summary - Added `nebula` service scope in `packages/service-utils/src/core/services.ts` with properties: `name`, `title`, and `description`. - Updated `HIDDEN_SERVICES` in `apps/dashboard/src/components/settings/ApiKeys/validations.ts` to include `nebula`. - Modified the pull request body check in `.github/workflows/linear.yml` to include `BLOCK`. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` --- .changeset/eight-poems-end.md | 5 +++++ .github/workflows/linear.yml | 2 +- .../src/components/settings/ApiKeys/validations.ts | 2 +- packages/service-utils/src/core/services.ts | 7 +++++++ 4 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 .changeset/eight-poems-end.md diff --git a/.changeset/eight-poems-end.md b/.changeset/eight-poems-end.md new file mode 100644 index 00000000000..1a734499eb1 --- /dev/null +++ b/.changeset/eight-poems-end.md @@ -0,0 +1,5 @@ +--- +"@thirdweb-dev/service-utils": patch +--- + +Added nebula service scope diff --git a/.github/workflows/linear.yml b/.github/workflows/linear.yml index 0ae3e7c7bb0..a0155d51161 100644 --- a/.github/workflows/linear.yml +++ b/.github/workflows/linear.yml @@ -18,7 +18,7 @@ jobs: echo "Pull Request Body: $pr_body" - if echo "$pr_body" | grep -iE "CNCT|DASH"; then + if echo "$pr_body" | grep -iE "CNCT|DASH|BLOCK"; then echo "Linked issue found in the pull request body." else echo "No linked issue found in the pull request body." diff --git a/apps/dashboard/src/components/settings/ApiKeys/validations.ts b/apps/dashboard/src/components/settings/ApiKeys/validations.ts index fc5fe35ffd4..46aa6abe9ea 100644 --- a/apps/dashboard/src/components/settings/ApiKeys/validations.ts +++ b/apps/dashboard/src/components/settings/ApiKeys/validations.ts @@ -149,4 +149,4 @@ export type ApiKeyPayConfigValidationSchema = z.infer< >; // FIXME: Remove -export const HIDDEN_SERVICES = ["relayer", "chainsaw"]; +export const HIDDEN_SERVICES = ["relayer", "chainsaw", "nebula"]; diff --git a/packages/service-utils/src/core/services.ts b/packages/service-utils/src/core/services.ts index 65a958fbd3b..9d366ed11ae 100644 --- a/packages/service-utils/src/core/services.ts +++ b/packages/service-utils/src/core/services.ts @@ -65,6 +65,13 @@ export const SERVICE_DEFINITIONS = { // all actions allowed actions: [], }, + nebula: { + name: "nebula", + title: "Nebula", + description: "Nebula services", + // all actions allowed + actions: [], + }, } as const; export const SERVICE_NAMES = Object.keys(