bitbucket-eslint-bot
Advanced tools
Comparing version 1.0.0 to 1.0.1
22
index.js
@@ -35,3 +35,3 @@ const fetch = require('node-fetch'); | ||
body: JSON.stringify({ | ||
text: `[eslint] This PR contains ${errors} lint ${errorPlural}` | ||
text: `[eslint] This PR contains ${errors} lint ${errorPlural}`, | ||
}), | ||
@@ -41,6 +41,5 @@ credentials: 'include', | ||
Authorization: encodeAuthorization(options), | ||
'Content-Type': 'application/json' | ||
} | ||
'Content-Type': 'application/json', | ||
}, | ||
}) | ||
.then(console.log) | ||
.catch(console.log); | ||
@@ -60,3 +59,3 @@ }; | ||
fileType: 'TO', | ||
path: file.filePath.split(process.cwd())[1] | ||
path: file.filePath.split(process.cwd())[1], | ||
}); | ||
@@ -74,4 +73,4 @@ return; | ||
fileType: 'TO', | ||
path: file.filePath.split(process.cwd())[1] | ||
} | ||
path: file.filePath.split(process.cwd())[1], | ||
}, | ||
}), | ||
@@ -81,6 +80,5 @@ credentials: 'include', | ||
Authorization: encodeAuthorization(options), | ||
'Content-Type': 'application/json' | ||
} | ||
'Content-Type': 'application/json', | ||
}, | ||
}) | ||
.then(console.log) | ||
.catch(console.log); | ||
@@ -104,3 +102,3 @@ }); | ||
repository = process.env.BITBUCKET_REPOSITORY, | ||
user = process.env.BITBUCKET_USER | ||
user = process.env.BITBUCKET_USER, | ||
} = {} | ||
@@ -125,3 +123,3 @@ ) { | ||
repository, | ||
user | ||
user, | ||
}); | ||
@@ -128,0 +126,0 @@ |
{ | ||
"name": "bitbucket-eslint-bot", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Bot to run on CI to post eslint errors on Bitbucket PRs", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
7
6901
152