mirror of
https://github.com/unraid/api.git
synced 2026-01-06 08:39:54 -06:00
refactor(api): use nestjs modules as the api plugin interface (#1321)
Changes plugin interface to expect Nest modules instead of a custom plain JS object. ## Summary by CodeRabbit - **New Features** - Introduced updated health check plugins, including a new connect plugin exposing a GraphQL health query and configuration logging. - **Refactor** - Streamlined the overall plugin registration and management across API, CLI, and GraphQL modules for improved clarity and logging. - Simplified the `CliModule` and `PluginService` to reduce complexity and enhance maintainability. - **Chores** - Updated dependency configurations and build scripts while introducing new TypeScript setups to enhance maintainability and consistency. - Added new `package.json` and `tsconfig.json` files for the `unraid-api-plugin-connect` and `unraid-api-plugin-health` projects. - Modified GitHub Actions workflow to update tag format for pull requests.
This commit is contained in:
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@@ -337,7 +337,7 @@ jobs:
|
||||
uses: ./.github/workflows/build-plugin.yml
|
||||
with:
|
||||
RELEASE_CREATED: false
|
||||
TAG: ${{ github.event.pull_request.number }}
|
||||
TAG: PR${{ github.event.pull_request.number }}
|
||||
BUCKET_PATH: ${{ github.event.pull_request.number && format('unraid-api/tag/PR{0}', github.event.pull_request.number) || 'unraid-api' }}
|
||||
BASE_URL: "https://preview.dl.unraid.net/unraid-api"
|
||||
secrets:
|
||||
|
||||
Reference in New Issue
Block a user