mirror of
https://github.com/actions/stale.git
synced 2025-12-11 04:32:53 +00:00
Dist
This commit is contained in:
11
dist/index.js
vendored
11
dist/index.js
vendored
@@ -515,10 +515,15 @@ class IssuesProcessor {
|
||||
}
|
||||
// find any comments since the date
|
||||
const comments = yield this.listIssueComments(issue.number, sinceDate);
|
||||
const filteredComments = comments.filter(comment => comment.user.type === 'User' && comment.user.login !== actor);
|
||||
issueLogger.info(`Comments not made by actor or another bot: ${filteredComments.length}`);
|
||||
issueLogger.info('Not filtering for debug purposes');
|
||||
// const filteredComments = comments.filter(
|
||||
// comment => comment.user.type === 'User' && comment.user.login !== actor
|
||||
// );
|
||||
// issueLogger.info(
|
||||
// `Comments not made by actor or another bot: ${filteredComments.length}`
|
||||
// );
|
||||
// if there are any user comments returned
|
||||
return filteredComments.length > 0;
|
||||
return comments.length > 0;
|
||||
});
|
||||
}
|
||||
// Mark an issue as stale with a comment and a label
|
||||
|
||||
@@ -461,9 +461,9 @@ export class IssuesProcessor {
|
||||
// comment => comment.user.type === 'User' && comment.user.login !== actor
|
||||
// );
|
||||
|
||||
issueLogger.info(
|
||||
`Comments not made by actor or another bot: ${filteredComments.length}`
|
||||
);
|
||||
// issueLogger.info(
|
||||
// `Comments not made by actor or another bot: ${filteredComments.length}`
|
||||
// );
|
||||
|
||||
// if there are any user comments returned
|
||||
return comments.length > 0;
|
||||
|
||||
Reference in New Issue
Block a user