Skip to content

Commit

Permalink
Fix issue causing locker action to lock closed issues too early (#6303)
Browse files Browse the repository at this point in the history
  • Loading branch information
Colengms authored Oct 13, 2020
1 parent f94e7e0 commit 2dbe8e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/actions/Locker/Locker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class Locker extends ActionBase {
const closedTimestamp = daysAgoToHumanReadbleDate(this.daysSinceClose)
const updatedTimestamp = daysAgoToHumanReadbleDate(this.daysSinceUpdate)

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

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

0 comments on commit 2dbe8e4

Please sign in to comment.