Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thlorenz/resolve-github-refs
Resolves all refs for a remote github repo, including heads, tags and pulls.
https://github.com/thlorenz/resolve-github-refs
Last synced: 26 days ago
JSON representation
Resolves all refs for a remote github repo, including heads, tags and pulls.
- Host: GitHub
- URL: https://github.com/thlorenz/resolve-github-refs
- Owner: thlorenz
- License: mit
- Created: 2014-04-01T19:07:43.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-04-01T21:17:59.000Z (almost 11 years ago)
- Last Synced: 2024-12-05T07:06:55.341Z (about 1 month ago)
- Homepage: https://github.com/thlorenz/resolve-github-refs
- Size: 145 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# resolve-github-refs [![build status](https://secure.travis-ci.org/thlorenz/resolve-github-refs.png)](http://travis-ci.org/thlorenz/resolve-github-refs)
Resolves all refs for a remote github repo, including heads, tags and pulls.
```js
var resolve = require('resolve-github-refs')resolve('joyent/node', function (err, refs) {
if (err) return console.error(err);
console.log('The nodejs repo has %d heads, %d tags and %d pulls', refs.heads.length, refs.tags.length, refs.pulls.length);
console.log('The latest head is "%s"', refs.heads.pop());
console.log('The latest tag is "%s"', refs.tags.pop());
console.log('The latest pull is "%s"', refs.pulls.pop());
})
``````
The nodejs repo has 104 heads, 231 tags and 5257 pulls
The latest head is "v0.11.12-release"
The latest tag is "works"
The latest pull is "7394/merge
```## Installation
npm install resolve-github-refs
## API
*generated with [docme](https://github.com/thlorenz/docme)*
## License
MIT