hubdated

1.0.0 • Public • Published

hubdated

List outdated git dependencies in your private GitHub repos.

Tag your commits with #vMAJOR.MINOR.PATCH and this will use the semver module to find dated dependencies.

Usage

Pass a Github API token and organisation name:

$ TOKEN=xxx hubdated ORG [FILTER]

Example:

$ TOKEN=xxx hubdated test123xyzlkj

# test123xyzlkj/dependant

## minor

- [ ] dependency: v1.1.1 ~> v1.2.0

$ echo $?
1

The output is formatted as Markdown, so it can be used to easily create a GitHub issue:

screenshot

Pass the optional FILTER argument to perfom fuzzy matching on the dependencies to check:

$ hubdated test123xyzlkj express,lodash

For repeated use, you can also store your token in ~/.hubdated:

$ echo xxx > ~/.hubdated
$ hubdated ORG

Installation

$ npm install -g hubdated

API

const hubdated = require('hubdated')

hubdated({
  token,
  org,
  filter = [],
  each: ({ repo, deps }) => {
    for (const dep of deps) {
      slack(`${repo} uses an out of date version of ${dep.repo}. ${dep.from} vs ${dep.to}`)
    }
  }
})
  .then(code => process.exit(code))
  .catch(err => {
    console.error(err)
    process.exit(1)
  })

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    1

Package Sidebar

Install

npm i hubdated

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

110 kB

Total Files

5

Last publish

Collaborators

  • juliangruber