MediaWiki integration & integration architecture improvements . #16
@ -87,15 +87,15 @@ module.exports = async function(robot, kredits) {
|
|||||||
|
|||||||
let repoName = issue.repository_url.match(/.*\/(.+\/.+)$/)[1];
|
let repoName = issue.repository_url.match(/.*\/(.+\/.+)$/)[1];
|
||||||
let description = `${repoName}: ${issue.title}`;
|
let description = `${repoName}: ${issue.title}`;
|
||||||
|
|
||||||
let proposalPromisses = [];
|
let proposalPromises = [];
|
||||||
![]() do we need a do we need a `const util = require('util');` in this file?
![]() Please ignore the code until I have pushed all of my changes. Thanks. Please ignore the code until I have pushed all of my changes. Thanks.
![]() do we need a do we need a `const util = require('util');` in this file?
![]() Please ignore the code until I have pushed all of my changes. Thanks. Please ignore the code until I have pushed all of my changes. Thanks.
|
|||||||
recipients.forEach(recipient => {
|
recipients.forEach(recipient => {
|
||||||
proposalPromisses.push(
|
proposalPromises.push(
|
||||||
![]() do we need a do we need a `const util = require('util');` in this file?
![]() Please ignore the code until I have pushed all of my changes. Thanks. Please ignore the code until I have pushed all of my changes. Thanks.
![]() do we need a do we need a `const util = require('util');` in this file?
![]() Please ignore the code until I have pushed all of my changes. Thanks. Please ignore the code until I have pushed all of my changes. Thanks.
|
|||||||
createProposal(recipient, amount, description, web_url, issue)
|
createProposal(recipient, amount, description, web_url, issue)
|
||||||
.catch(err => robot.logger.error(err))
|
.catch(err => robot.logger.error(err))
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
return Promise.all(proposalPromisses);
|
return Promise.all(proposalPromises);
|
||||||
![]() do we need a do we need a `const util = require('util');` in this file?
![]() Please ignore the code until I have pushed all of my changes. Thanks. Please ignore the code until I have pushed all of my changes. Thanks.
![]() do we need a do we need a `const util = require('util');` in this file?
![]() Please ignore the code until I have pushed all of my changes. Thanks. Please ignore the code until I have pushed all of my changes. Thanks.
|
|||||||
}
|
}
|
||||||
|
|
||||||
function handleGitHubPullRequestClosed(data) {
|
function handleGitHubPullRequestClosed(data) {
|
||||||
@ -127,16 +127,16 @@ module.exports = async function(robot, kredits) {
|
|||||||
![]() do we need a do we need a `const util = require('util');` in this file?
![]() do we need a do we need a `const util = require('util');` in this file?
![]() Please ignore the code until I have pushed all of my changes. Thanks. Please ignore the code until I have pushed all of my changes. Thanks.
![]() Please ignore the code until I have pushed all of my changes. Thanks. Please ignore the code until I have pushed all of my changes. Thanks.
|
|||||||
|
|
||||||
let repoName = pull_request.base.repo.full_name;
|
let repoName = pull_request.base.repo.full_name;
|
||||||
let description = `${repoName}: ${pull_request.title}`;
|
let description = `${repoName}: ${pull_request.title}`;
|
||||||
|
let proposalPromises = [];
|
||||||
![]() do we need a do we need a `const util = require('util');` in this file?
![]() Please ignore the code until I have pushed all of my changes. Thanks. Please ignore the code until I have pushed all of my changes. Thanks.
![]() do we need a do we need a `const util = require('util');` in this file?
![]() Please ignore the code until I have pushed all of my changes. Thanks. Please ignore the code until I have pushed all of my changes. Thanks.
|
|||||||
let proposalPromisses = [];
|
|
||||||
![]() do we need a do we need a `const util = require('util');` in this file?
![]() Please ignore the code until I have pushed all of my changes. Thanks. Please ignore the code until I have pushed all of my changes. Thanks.
|
|||||||
recipients.forEach(recipient => {
|
recipients.forEach(recipient => {
|
||||||
console.debug(`[hubot-kredits] Creating proposal for ${recipient}...`);
|
console.debug(`[hubot-kredits] Creating proposal for ${recipient}...`);
|
||||||
proposalPromisses.push(
|
proposalPromises.push(
|
||||||
![]() do we need a do we need a `const util = require('util');` in this file?
![]() Please ignore the code until I have pushed all of my changes. Thanks. Please ignore the code until I have pushed all of my changes. Thanks.
![]() do we need a do we need a `const util = require('util');` in this file?
![]() Please ignore the code until I have pushed all of my changes. Thanks. Please ignore the code until I have pushed all of my changes. Thanks.
|
|||||||
createProposal(recipient, amount, description, web_url, pull_request)
|
createProposal(recipient, amount, description, web_url, pull_request)
|
||||||
.catch(err => robot.logger.error(err))
|
.catch(err => robot.logger.error(err))
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
return Promise.all(proposalPromisses);
|
|
||||||
![]() do we need a do we need a `const util = require('util');` in this file?
![]() Please ignore the code until I have pushed all of my changes. Thanks. Please ignore the code until I have pushed all of my changes. Thanks.
![]() do we need a do we need a `const util = require('util');` in this file?
![]() Please ignore the code until I have pushed all of my changes. Thanks. Please ignore the code until I have pushed all of my changes. Thanks.
|
|||||||
|
return Promise.all(proposalPromises);
|
||||||
![]() do we need a do we need a `const util = require('util');` in this file?
![]() Please ignore the code until I have pushed all of my changes. Thanks. Please ignore the code until I have pushed all of my changes. Thanks.
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
![]() do we need a do we need a `const util = require('util');` in this file?
![]() do we need a do we need a `const util = require('util');` in this file?
![]() Please ignore the code until I have pushed all of my changes. Thanks. Please ignore the code until I have pushed all of my changes. Thanks.
![]() Please ignore the code until I have pushed all of my changes. Thanks. Please ignore the code until I have pushed all of my changes. Thanks.
|
do we need a
const util = require('util');
in this file?do we need a
const util = require('util');
in this file?Please ignore the code until I have pushed all of my changes. Thanks.
Please ignore the code until I have pushed all of my changes. Thanks.