Skip to content
Snippets Groups Projects
Commit 6b21df5c authored by Rhys Arkins's avatar Rhys Arkins
Browse files

Debug rate limit after execution

parent 5e9060f9
No related branches found
No related tags found
No related merge requests found
...@@ -5,6 +5,7 @@ const config = {}; ...@@ -5,6 +5,7 @@ const config = {};
module.exports = { module.exports = {
initRepo, initRepo,
getRateLimit,
// Search // Search
findFilePaths, findFilePaths,
// Branch // Branch
...@@ -62,6 +63,13 @@ function initRepo(repoName) { ...@@ -62,6 +63,13 @@ function initRepo(repoName) {
} }
} }
// Get rate limit
function getRateLimit() {
logger.info('getRateLimit');
return ghGot('rate_limit')
.then(res => res.body);
}
// Search // Search
// Returns an array of file paths in current repo matching the fileName // Returns an array of file paths in current repo matching the fileName
......
...@@ -79,8 +79,11 @@ function start() { ...@@ -79,8 +79,11 @@ function start() {
} }
// Process all promises // Process all promises
p.then(() => { // eslint-disable-line promise/always-return p
.then(github.getRateLimit)
.then((rateLimit) => { // eslint-disable-line promise/always-return
logger.info('Renovate finished'); logger.info('Renovate finished');
logger.debug(JSON.stringify(rateLimit));
}) })
.catch((error) => { .catch((error) => {
logger.error(`Unexpected error: ${error}`); logger.error(`Unexpected error: ${error}`);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment