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