This project provides a software development kit (SDK) for creating plugins using the Ubiquity OS framework. It supports the following features:
- TypeScript
- Creating a plugin instance
- Injection of the context
- Provider with a logger, an authenticated Octokit instance and the event payload
The createActionsPlugin
function allows users to create plugins that will be able to run on GitHub Actions.
The createPlugin
function enables users to create a plugin that will run on Cloudflare Workers environment.
To set up the project locally, bun
is the preferred package manager.
-
Install the dependencies:
bun install
-
Build the SDK
bun sdk:build
-
Link it locally to another plugin
bun link
The project provides several npm scripts for various tasks:
-
bun run sdk:build
: Compiles the TypeScript code. -
bun run test
: Runs the tests. -
bun run lint
: Runs the linter. -
bun run format
: Formats the code using Prettier.
To start Jest tests, run:
bun run test