mirror of
https://github.com/actions/stale.git
synced 2025-12-10 20:21:20 +00:00
Revert debugging
This commit is contained in:
10
dist/index.js
vendored
10
dist/index.js
vendored
@@ -518,14 +518,10 @@ 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);
|
||||||
issueLogger.info('Not filtering for debug purposes');
|
issueLogger.info('Not filtering for debug purposes');
|
||||||
// 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
|
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
|
// if there are any user comments returned
|
||||||
return comments.length > 0;
|
return filteredComments.length > 0;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
// Mark an issue as stale with a comment and a label
|
// Mark an issue as stale with a comment and a label
|
||||||
|
|||||||
@@ -460,16 +460,16 @@ export class IssuesProcessor {
|
|||||||
const comments = await this.listIssueComments(issue.number, sinceDate);
|
const comments = await this.listIssueComments(issue.number, sinceDate);
|
||||||
|
|
||||||
issueLogger.info('Not filtering for debug purposes')
|
issueLogger.info('Not filtering for debug purposes')
|
||||||
// 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
|
||||||
// );
|
);
|
||||||
|
|
||||||
// issueLogger.info(
|
issueLogger.info(
|
||||||
// `Comments not made by actor or another bot: ${filteredComments.length}`
|
`Comments not made by actor or another bot: ${filteredComments.length}`
|
||||||
// );
|
);
|
||||||
|
|
||||||
// if there are any user comments returned
|
// if there are any user comments returned
|
||||||
return comments.length > 0;
|
return filteredComments.length > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Mark an issue as stale with a comment and a label
|
// Mark an issue as stale with a comment and a label
|
||||||
|
|||||||
Reference in New Issue
Block a user