Skip to content

Commit aeddba5

Browse files
committed
add log
1 parent 7db6a55 commit aeddba5

2 files changed

Lines changed: 5 additions & 7 deletions

File tree

action/index.cjs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150453,9 +150453,6 @@ const robot = (app) => {
150453150453
head: context.payload.pull_request.head.sha,
150454150454
});
150455150455
let { files: changedFiles, commits } = data.data;
150456-
loglevel_1.default.debug("compareCommits, base:", context.payload.pull_request.base.sha, "head:", context.payload.pull_request.head.sha);
150457-
loglevel_1.default.debug("compareCommits.commits:", commits);
150458-
loglevel_1.default.debug("compareCommits.files", changedFiles);
150459150456
if (context.payload.action === 'synchronize') {
150460150457
// Try to detect the last commit we reviewed (by looking for our previous review)
150461150458
try {
@@ -150504,6 +150501,8 @@ const robot = (app) => {
150504150501
}
150505150502
}
150506150503
}
150504+
loglevel_1.default.debug('changedFiles:', changedFiles);
150505+
loglevel_1.default.debug;
150507150506
const ignoreList = (process.env.IGNORE || process.env.ignore || '')
150508150507
.split('\n')
150509150508
.filter((v) => v !== '');

src/bot.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,6 @@ export const robot = (app: Probot) => {
8989

9090
let { files: changedFiles, commits } = data.data;
9191

92-
log.debug("compareCommits, base:", context.payload.pull_request.base.sha, "head:", context.payload.pull_request.head.sha)
93-
log.debug("compareCommits.commits:", commits)
94-
log.debug("compareCommits.files", changedFiles)
95-
9692
if (context.payload.action === 'synchronize') {
9793
// Try to detect the last commit we reviewed (by looking for our previous review)
9894
try {
@@ -151,6 +147,9 @@ export const robot = (app: Probot) => {
151147
}
152148
}
153149

150+
log.debug('changedFiles:', changedFiles);
151+
log.debug
152+
154153
const ignoreList = (process.env.IGNORE || process.env.ignore || '')
155154
.split('\n')
156155
.filter((v) => v !== '');

0 commit comments

Comments
 (0)