-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jessica Lord
committed
May 27, 2014
0 parents
commit f149d54
Showing
4 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env node | ||
|
||
var ghauth = require('ghauth') | ||
var minimist = require('minimist') | ||
var getIssues = require('index.js') | ||
|
||
var argv = minimist(process.argv.slice(2)); | ||
|
||
var ghAuthOptions = { | ||
// ~/.config/[configName].json will store the token | ||
configName : 'offline-issues', | ||
// (optional) whatever GitHub auth scopes you require | ||
scopes : [ 'repo' ], | ||
// (optional) saved with the token on GitHub | ||
note : 'This token is for the offline-issues module from NPM' | ||
} | ||
|
||
ghauth(ghAuthOptions, function(err, token) { | ||
if (err) console.log(err) | ||
getOptions(token) | ||
|
||
// var token = { user: 'username', | ||
// token: 'TOKEN' } | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
var request = require('request') | ||
var mkdirp = require('mkdirp') | ||
var GitHub = require('github-api') | ||
|
||
module.exports = function getIssues(options) { | ||
|
||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"name": "offline-issues", | ||
"version": "0.0.0", | ||
"description": "", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"author": "", | ||
"bin": "cli.js", | ||
"license": "ISC", | ||
"dependencies": { | ||
"ghauth": "^0.1.1", | ||
"github-api": "^0.7.0", | ||
"minimist": "^0.1.0", | ||
"mkdirp": "^0.5.0", | ||
"request": "^2.36.0" | ||
} | ||
} |