mirror of
https://github.com/actions/stale.git
synced 2025-12-31 00:13:22 +08:00
Print comments
This commit is contained in:
1
dist/index.js
vendored
1
dist/index.js
vendored
@@ -625,6 +625,7 @@ class IssuesProcessor {
|
||||
// find any comments since the date
|
||||
const comments = yield this.listIssueComments(issue.number, sinceDate);
|
||||
core.debug(`The actor is: ${actor}`);
|
||||
core.debug(`The comments are ${JSON.stringify(comments)}`);
|
||||
const filteredComments = comments.filter(comment => comment.user.type === 'User' && comment.user.login !== actor);
|
||||
issueLogger.info(`Comments not made by actor or another bot: ${logger_service_1.LoggerService.cyan(filteredComments.length)}`);
|
||||
// if there are any user comments returned
|
||||
|
||||
@@ -689,6 +689,7 @@ export class IssuesProcessor {
|
||||
const comments = await this.listIssueComments(issue.number, sinceDate);
|
||||
|
||||
core.debug(`The actor is: ${actor}`)
|
||||
core.debug(`The comments are ${JSON.stringify(comments)}`)
|
||||
const filteredComments = comments.filter(
|
||||
comment => comment.user.type === 'User' && comment.user.login !== actor
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user