Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 2a3077d733 | |||
| 1255d7ce19 | |||
| d9e09ce041 | |||
| a0f982432e |
@@ -13,7 +13,7 @@ module.exports = async function(robot, kredits) {
|
|||||||
|
|
||||||
robot.logger.debug('[hubot-kredits] Loading GitHub integration...');
|
robot.logger.debug('[hubot-kredits] Loading GitHub integration...');
|
||||||
|
|
||||||
const repoBlackList = [];
|
let repoBlackList = [];
|
||||||
if (process.env.KREDITS_GITHUB_REPO_BLACKLIST) {
|
if (process.env.KREDITS_GITHUB_REPO_BLACKLIST) {
|
||||||
repoBlackList = process.env.KREDITS_GITHUB_REPO_BLACKLIST.split(',');
|
repoBlackList = process.env.KREDITS_GITHUB_REPO_BLACKLIST.split(',');
|
||||||
robot.logger.debug('[hubot-kredits] Ignoring GitHub actions from ', util.inspect(repoBlackList));
|
robot.logger.debug('[hubot-kredits] Ignoring GitHub actions from ', util.inspect(repoBlackList));
|
||||||
@@ -167,7 +167,7 @@ module.exports = async function(robot, kredits) {
|
|||||||
|
|
||||||
robot.router.post('/incoming/kredits/github/'+process.env.KREDITS_WEBHOOK_TOKEN, (req, res) => {
|
robot.router.post('/incoming/kredits/github/'+process.env.KREDITS_WEBHOOK_TOKEN, (req, res) => {
|
||||||
const evt = req.header('X-GitHub-Event');
|
const evt = req.header('X-GitHub-Event');
|
||||||
const data = req.body;
|
let data = req.body;
|
||||||
// For some reason data is contained in a payload property on one
|
// For some reason data is contained in a payload property on one
|
||||||
// machine, but directly in the root of the object on others
|
// machine, but directly in the root of the object on others
|
||||||
if (data.payload) { data = JSON.parse(data.payload); }
|
if (data.payload) { data = JSON.parse(data.payload); }
|
||||||
|
|||||||
2
package-lock.json
generated
2
package-lock.json
generated
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hubot-kredits",
|
"name": "hubot-kredits",
|
||||||
"version": "3.1.0",
|
"version": "3.1.2",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hubot-kredits",
|
"name": "hubot-kredits",
|
||||||
"version": "3.1.0",
|
"version": "3.1.2",
|
||||||
"description": "Kosmos Kredits functionality for chat bots",
|
"description": "Kosmos Kredits functionality for chat bots",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user