Skip to content

Commit 2dbe8e4

Browse files
authored
Fix issue causing locker action to lock closed issues too early (#6303)
1 parent f94e7e0 commit 2dbe8e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/actions/Locker/Locker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export class Locker extends ActionBase {
2929
const closedTimestamp = daysAgoToHumanReadbleDate(this.daysSinceClose)
3030
const updatedTimestamp = daysAgoToHumanReadbleDate(this.daysSinceUpdate)
3131

32-
const query = this.buildQuery((this.daysSinceClose ? `closed:<${updatedTimestamp} ` : "") + (this.daysSinceUpdate ? `updated:<${updatedTimestamp} ` : "") + "is:closed is:unlocked");
32+
const query = this.buildQuery((this.daysSinceClose ? `closed:<${closedTimestamp} ` : "") + (this.daysSinceUpdate ? `updated:<${updatedTimestamp} ` : "") + "is:closed is:unlocked");
3333

3434
for await (const page of this.github.query({ q: query })) {
3535
await Promise.all(

0 commit comments

Comments
 (0)