We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00e6b14 commit 5b94ab5Copy full SHA for 5b94ab5
src/lock.js
@@ -93,17 +93,8 @@ module.exports = class Lock {
93
per_page: 30
94
})).data.items;
95
96
- // `is:unlocked` search qualifier is undocumented, warn on wrong results
97
- const wrongResults = results.filter(
98
- issue => issue.state === 'open' || issue.locked
99
- );
100
- if (wrongResults.length) {
101
- const issues = wrongResults.map(issue => issue.number);
102
- this.log.warn({query, issues}, 'Wrong search results');
103
- return [];
104
- }
105
-
106
- return results;
+ // `is:unlocked` search qualifier is undocumented, skip wrong results
+ return results.filter(issue => !issue.locked);
107
}
108
109
getUpdatedTimestamp(days) {
0 commit comments