mirror of
https://github.com/actions/stale.git
synced 2025-12-10 03:57:04 +00:00
Fix an issue where the bot doesn't ignore its own comments (#73)
This commit is contained in:
5
dist/index.js
vendored
5
dist/index.js
vendored
@@ -8570,8 +8570,9 @@ class IssueProcessor {
|
||||
this.operationsLeft -= 1;
|
||||
// find any comments since the stale label
|
||||
const comments = yield this.listIssueComments(issue.number, sinceDate);
|
||||
// if there are any user comments returned, issue is not stale anymore
|
||||
return comments.filter(comment => comment.user.type === 'User').length > 0;
|
||||
// if there are any user comments returned, and they were not by this bot, the issue is not stale anymore
|
||||
return (comments.filter(comment => comment.user.type === 'User' &&
|
||||
comment.user.login !== github.context.actor).length > 0);
|
||||
});
|
||||
}
|
||||
// grab comments for an issue since a given date
|
||||
|
||||
Reference in New Issue
Block a user