Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 1.53 KB

CONTRIBUTING.md

File metadata and controls

37 lines (29 loc) · 1.53 KB

Contributing

Thanks for helping improve the NodeRings Backstage plugins.

  1. Open an issue before large changes.

  2. Use Node.js 24 (or 26) and Yarn 4 (corepack enable), then yarn install.

  3. These must pass (CI runs them):

    yarn tsc
    yarn lint:all
    yarn prettier:check
    yarn test:all                                  # coverage must stay at 80 % or more
    yarn backstage-cli repo fix --publish --check
    yarn build:all
  4. Try UI changes in the plugin's dev app (yarn --cwd plugins/noderings start, mock data) or in the full dev app (yarn start, with NODERINGS_TOKEN in the environment).

  5. For changes to API calls, run the live tests against your own organization:

    NODERINGS_TOKEN=... yarn backstage-cli repo test live.test

    They only read, unless you also set NODERINGS_TEST_ZONE_ID (adds and removes a TXT record) or NODERINGS_TEST_BILLED=1 with NODERINGS_TEST_PLAN_ID, NODERINGS_TEST_REGION_ID and NODERINGS_TEST_SSH_KEY_ID (creates and deletes a server, which is billed).

  6. Every NodeRings call goes through the noderings SDK. Responses to the browser are the trimmed types in plugins/noderings-common/src/types.ts, never raw SDK objects.

  7. Use Conventional Commits (release-please builds the changelog from them) and sign off your commits (git commit -s) for the Developer Certificate of Origin.

Report security problems privately as described in SECURITY.md.