1.0.4 • Published 5 years ago

lightkeeperbot v1.0.4

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

Lightkeeper Bot

version

The Lightkeeper Bot is an extension wrapper for Lightkeeper.

By default, it provides a fire-and-forget mechanism to trigger a manual event in the application (if installed), without stalling the build.

This is helpful for custom build pipelines that perform many tasks, and creating the Pull Request URL is one of them. In that case, the app's default behavior of waiting until the overall build finishes would be unnecesary.

Customization

The hostname can be modifed through the LIGHTKEEPER_HOST environment variable. Additionally, a LIGHTKEEPER_API_KEY is sent as an Authentication header.

NOTE: Lightkeeper does not currently require an API key, but will be eventually enforced.

Usage

lightkeeperbot <baseUrl> [--pr=123] [--repo=owner/name] [--config-path=config/lightkeeper.(js|json)]
OptionTypeDescriptionRequiredDefault
prNumberThe Pull Request NumberTRAVIS_PULL_REQUEST
repoStringThe repo's owner/nameTRAVIS_PULL_REQUEST_SLUG
config-pathStringThe configuration path.github/lightkeeper.json

Configuration File

See Lightkeeper's configuration.

Use the following values:

baseUrlcitype
{base_url}lightkeeperbotevent

Lightkeeper will replace {base_url} with the provided <baseUrl>.

NOTE: The configuration file can be either json or js.

Javascript Configuration:

  • The default export can be an object or (async)function.
  • If a function, the baseUrl option is passed as a parameter.
  • It needs to return a JSON-like object.

Using a Private Lighthouse Instance:

  • Use a js config file, read API keys from environment
  • Pass a headers object in settings.lighthouse
1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago