Skip to content

Commit

Permalink
Merge pull request #62 from karashiiro/feat/easy-local
Browse files Browse the repository at this point in the history
Add Development mode for easy local validation
  • Loading branch information
goaaats authored Mar 25, 2024
2 parents a595d84 + 33b2c43 commit 60ddb63
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions Plogon/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ private enum ModeOfOperation
/// We are running a continuous verification build for Dalamud.
/// </summary>
Continuous,

/// <summary>
/// We are building a plugin in dev mode to validate Plogon itself.
/// </summary>
Development,
}

/// <summary>
Expand Down Expand Up @@ -634,13 +639,13 @@ private static async Task DoPacRoundRobinAssign(GitHubApi gitHubApi, int prNumbe
Log.Error("Could not get PR for round robin assign");
return;
}

// Only go on if we don't have an assignee
if (thisPr.Assignees.Any())
return;

string? loginToAssign;

// Find the last new plugin PR
//var prs = await gitHubApi.Client.PullRequest.GetAllForRepository(gitHubApi.RepoOwner, gitHubApi.RepoName);
var result = await gitHubApi.Client.Search.SearchIssues(
Expand All @@ -650,8 +655,8 @@ private static async Task DoPacRoundRobinAssign(GitHubApi gitHubApi, int prNumbe
{
{ gitHubApi.RepoOwner, gitHubApi.RepoName },
},
Is = new [] { IssueIsQualifier.PullRequest },
Labels = new []{ PlogonSystemDefine.PR_LABEL_NEW_PLUGIN },
Is = new[] { IssueIsQualifier.PullRequest },
Labels = new[] { PlogonSystemDefine.PR_LABEL_NEW_PLUGIN },
SortField = IssueSearchSort.Created,
});
var lastNewPluginPr = result?.Items.FirstOrDefault(x => x.Number != prNumber);
Expand All @@ -678,7 +683,7 @@ private static async Task DoPacRoundRobinAssign(GitHubApi gitHubApi, int prNumbe
}
}
}

await gitHubApi.Assign(prNumber, loginToAssign);
}

Expand Down

0 comments on commit 60ddb63

Please sign in to comment.