Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dont dry run #414

Merged
merged 2 commits into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion actions/sequester/ImportIssues/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ await serviceWorker.ProcessIssue(
else
{
await serviceWorker.ProcessIssues(
org, repo, duration ?? -1, true);
org, repo, duration ?? -1);
}
}
catch (InvalidOperationException e) when (e.Message.StartsWith("HTTP error:"))
Expand Down
5 changes: 2 additions & 3 deletions actions/sequester/Quest2GitHub/QuestGitHubService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,8 @@ public class QuestGitHubService(
/// <param name="organization">The GitHub org</param>
/// <param name="repository">The GitHub repository</param>
/// <param name="duration">How far back to examine.</param>
/// <param name="dryRun">true for a dry run, false to process all issues</param>
/// <returns></returns>
public async Task ProcessIssues(string organization, string repository, int duration, bool dryRun)
public async Task ProcessIssues(string organization, string repository, int duration)
{
if (_importTriggerLabel is null || _importedLabel is null)
{
Expand Down Expand Up @@ -104,7 +103,7 @@ async Task ProcessItems(IAsyncEnumerable<QuestIssueOrPullRequest> items)
Console.WriteLine($"{item.Number}: {item.Title}, {item.LatestStoryPointSize()?.Month ?? "???"}-{(item.LatestStoryPointSize()?.CalendarYear)?.ToString() ?? "??"}");
// Console.WriteLine(item);
QuestWorkItem? questItem = await FindLinkedWorkItemAsync(item);
if (dryRun is false && currentIteration is not null)
if (currentIteration is not null)
{
if (questItem != null)
{
Expand Down
Loading