Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hubormaster

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hubormaster

Phabricator-style lint and test result in your GitHub repository

  • 0.5.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

hubormaster CircleCI codecov

Phabricator-style lint and test result for your GitHub repository

Hubormaster (read: habormaster) is a module to help writing comments for your lint and test result in your GitHub repository. It's similar to how Phabricator's harbormaster.sendmessage works: you can specify list of lint result that will be posted inside inline comment on specific code in a commit (either in pull request or in main branch) or test result that will be posted as commit comment

Preview

Hubormaster in Action

Installation

npm install hubormaster
# or
yarn add hubormaster

Usage

import Hubormaster from 'hubormaster';

// will post to github.com/:owner/:repo
const hubormaster = Hubormaster({
  owner: 'user/org',
  repo: 'repoName',
  sha: 'commitShaLong',
});

await hubormaster.sendMessage(lints, tests);

It (currently) only has 1 API sendMessage which accepts these argument types (similar to Phabricator sendMessage type signature):

type lints = Array.<{
  code: string,
  severity: "error" | "warning" | "autofix",
  path: string,
  line: int,
  description: string
}>;

type tests = Array.<{
  engine: string,
  result: "pass" | "fail",
  duration: float,
  path: string,
  details: string
}>

Examples

You can see usage example on examples/self.js. In fact, that exact code is used to post hubormaster comment to hubormaster repository 💥

License

MIT

Keywords

FAQs

Package last updated on 14 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc