mirror of
https://github.com/reality/dbot.git
synced 2024-11-27 22:39:26 +01:00
Add config options; remove closed milestone count
This commit is contained in:
parent
c157ddf08c
commit
54beca1501
4
modules/project/config.json
Normal file
4
modules/project/config.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"quotecat":"depressionbot",
|
||||
"dependencies": ["web", "quotes", "github"]
|
||||
}
|
@ -11,15 +11,8 @@ var pages = function(dbot) {
|
||||
|
||||
/* TODO: merge back into github module */
|
||||
var milestones;
|
||||
request("https://api.github.com/repos/" + dbot.config.github.defaultrepo + "/milestones", function(e, r, b){
|
||||
request("https://api.github.com/repos/" + dbot.config.github.defaultrepo + "/milestones?state=open", function(e, r, b){
|
||||
milestones = JSON.parse(b);
|
||||
request("https://api.github.com/repos/" + dbot.config.github.defaultrepo + "/milestones?state=closed", function (a, c, d){
|
||||
var milestones2 = [];
|
||||
try{
|
||||
milestones2 = JSON.parse(c);
|
||||
} catch(e){}
|
||||
milestones = milestones.concat(milestones2)
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user