Skip to content

Commit b517d73

Browse files
authored
A couple small workarounds (#373)
First, comment out the portion that SeQuester's PRs. The GitHub query is failing, and the error message indicates a GitHub problem. Second, disable the code that adds the linked closing PR. GitHub integration is disabled in our AzDo repo, so it will always fail.
1 parent cf581ed commit b517d73

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

actions/sequester/Quest2GitHub/Models/QuestWorkItem.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ public class QuestWorkItem
88
// Keep track of failures to update the closing PR.
99
// For any given run, if the REST call to add a closing PR
1010
// fails, stop sending invalid requests.
11-
private static bool? s_linkedGitHubRepo;
11+
// 7/9/2024: Set this to false. GitHub integration links
12+
// are currently disabled. Linking to the closing PR always fails.
13+
// So, don't try for now.
14+
private static bool? s_linkedGitHubRepo = false;
1215

1316
private string _title = "";
1417

actions/sequester/Quest2GitHub/QuestGitHubService.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,12 @@ public async Task ProcessIssues(string organization, string repository, int dura
7676
var issueQueryEnumerable = QueryIssuesOrPullRequests<QuestIssue>();
7777
await ProcessItems(issueQueryEnumerable);
7878
Console.WriteLine("----- Finished processing issues. --------");
79-
Console.WriteLine(" ----- Regenerating bearer token ------");
79+
//Console.WriteLine(" ----- Regenerating bearer token ------");
8080
await ghClient.RegenerateBearerToken();
81-
Console.WriteLine("----- Starting processing pull requests. --------");
82-
var prQueryEnumerable = QueryIssuesOrPullRequests<QuestPullRequest>();
83-
await ProcessItems(prQueryEnumerable);
84-
Console.WriteLine("----- Finished processing pull requests. --------");
81+
//Console.WriteLine("----- Starting processing pull requests. --------");
82+
//var prQueryEnumerable = QueryIssuesOrPullRequests<QuestPullRequest>();
83+
//await ProcessItems(prQueryEnumerable);
84+
//Console.WriteLine("----- Finished processing pull requests. --------");
8585

8686
async Task ProcessItems(IAsyncEnumerable<QuestIssueOrPullRequest> items)
8787
{

0 commit comments

Comments
 (0)