Skip to content

Commit 5de04b8

Browse files
authored
Do not pull back locked issues/PRs in scheduled events (#6506)
1 parent 8e65ecd commit 5de04b8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tools/github-event-processor/Azure.Sdk.Tools.GitHubEventProcessor/EventProcessing/ScheduledEventProcessing.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public static async Task CloseAddressedIssues(GitHubEventClient gitHubEventClien
105105
IssueTypeQualifier.Issue,
106106
ItemState.Open,
107107
7, // more than 7 days old
108-
null,
108+
new List<IssueIsQualifier> { IssueIsQualifier.Unlocked },
109109
includeLabels);
110110
// Need to stop updating when the we hit the limit but, until then, after exhausting every
111111
// issue in the page returned, the query needs to be rerun to get the next page
@@ -185,7 +185,7 @@ public static async Task CloseStaleIssues(GitHubEventClient gitHubEventClient, S
185185
IssueTypeQualifier.Issue,
186186
ItemState.Open,
187187
14, // more than 14 days since last update
188-
null,
188+
new List<IssueIsQualifier> { IssueIsQualifier.Unlocked },
189189
includeLabels);
190190

191191
// Need to stop updating when the we hit the limit but, until then, after exhausting every
@@ -260,7 +260,7 @@ public static async Task CloseStalePullRequests(GitHubEventClient gitHubEventCli
260260
IssueTypeQualifier.PullRequest,
261261
ItemState.Open,
262262
7, // more than 7 days old
263-
null,
263+
new List<IssueIsQualifier> { IssueIsQualifier.Unlocked },
264264
includeLabels);
265265
// Need to stop updating when the we hit the limit but, until then, after exhausting every
266266
// issue in the page returned, the query needs to be rerun to get the next page
@@ -339,7 +339,7 @@ public static async Task IdentifyStalePullRequests(GitHubEventClient gitHubEvent
339339
IssueTypeQualifier.PullRequest,
340340
ItemState.Open,
341341
60, // more than 60 days since last update
342-
null,
342+
new List<IssueIsQualifier> { IssueIsQualifier.Unlocked },
343343
null,
344344
excludeLabels);
345345
// Need to stop updating when the we hit the limit but, until then, after exhausting every
@@ -424,7 +424,7 @@ public static async Task IdentifyStaleIssues(GitHubEventClient gitHubEventClient
424424
IssueTypeQualifier.Issue,
425425
ItemState.Open,
426426
7, // more than 7 days since the last update
427-
null,
427+
new List<IssueIsQualifier> { IssueIsQualifier.Unlocked },
428428
includeLabels,
429429
excludeLabels);
430430

0 commit comments

Comments
 (0)