node-core-commit-stream
v1.0.0
Published
A stream of structured commit messages from Node.js core sorted newest to oldest
Downloads
3
Readme
node-core-commit-stream
A stream of structured commit messages from Node.js core sorted newest to oldest
npm install node-core-commit-stream
Usage
const createStream = require('node-core-commit-stream')
const stream = createStream()
stream.on('data', function (data) {
console.log(data)
})
Running the above will produce output similar to this:
{ title:
'worker,src: display remaining handles if `uv_loop_close` fails',
sha: 'aa2304b8d5c53ba2d9710d8b8ed4482f3cbd1192',
author:
{ name: 'Anna Henningsen',
email: '[email protected]',
date: '2018-06-07T20:07:02Z' },
committer:
{ name: 'Anna Henningsen',
email: '[email protected]',
date: '2018-06-13T10:23:36Z' },
subsystems: [ 'worker', 'src' ],
pullRequest: 'https://github.com/nodejs/node/pull/21238',
reviewedBy:
[ { name: 'Tiancheng "Timothy" Gu',
email: '[email protected]' },
{ name: 'James M Snell', email: '[email protected]' },
{ name: 'Gus Caplan', email: '[email protected]' },
{ name: 'Ben Noordhuis', email: '[email protected]' },
{ name: 'Benjamin Gruenbaum', email: '[email protected]' },
{ name: 'Colin Ihrig', email: '[email protected]' } ],
message:
'worker,src: display remaining handles if `uv_loop_close` fails\n\nRight now, we crash the process if there are handles remaining\non the event loop when we exit (except for the main thread).\n\nThis does not provide a lot of information about causes, though;\nin particular, we don’t show which handles are pending and\nwho own them.\n\nThis patch adds debug output to these cases to help with the\nsituation.\n\nPR-URL: https://github.com/nodejs/node/pull/21238\nReviewed-By: Tiancheng "Timothy" Gu <[email protected]>\nReviewed-By: James M Snell <[email protected]>\nReviewed-By: Gus Caplan <[email protected]>\nReviewed-By: Ben Noordhuis <[email protected]>\nReviewed-By: Benjamin Gruenbaum <[email protected]>\nReviewed-By: Colin Ihrig <[email protected]>' }
API
const rs = createStream([options])
Create a new readable stream of commits.
Options include
{
token: optionalGithubToken
}
The stream will list all commits in Node.js core. Use rs.destroy()
to stop it.
License
MIT