Skip to content

Commit

Permalink
ownerId => actor
Browse files Browse the repository at this point in the history
  • Loading branch information
goaaats committed Jul 30, 2022
1 parent e3ff20f commit cd09569
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Plogon/Manifests/Manifest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class PluginInfo
{
public PluginInfo()
{
this.Owners = new List<uint>();
this.Owners = new List<string>();
}

public string Repository { get; set; }
Expand All @@ -20,7 +20,7 @@ public PluginInfo()

public string Changelog { get; set; }

public List<uint> Owners { get; set; }
public List<string> Owners { get; set; }
}

public PluginInfo Plugin { get; set; }
Expand Down
6 changes: 3 additions & 3 deletions Plogon/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ class Program
/// <param name="artifactFolder">The folder to store artifacts in.</param>
/// <param name="ci">Running in CI.</param>
/// <param name="commit">Commit to repo.</param>
/// <param name="ownerId">Creator of the request.</param>
/// <param name="actor">Creator of the request.</param>
static async Task Main(DirectoryInfo outputFolder, DirectoryInfo manifestFolder, DirectoryInfo workFolder,
DirectoryInfo staticFolder, DirectoryInfo artifactFolder, bool ci = false, bool commit = false, int ownerId = -1)
DirectoryInfo staticFolder, DirectoryInfo artifactFolder, bool ci = false, bool commit = false, string? actor = null)
{
SetupLogging();

Expand Down Expand Up @@ -64,7 +64,7 @@ static async Task Main(DirectoryInfo outputFolder, DirectoryInfo manifestFolder,
{
GitHubOutputBuilder.StartGroup($"Build {task.InternalName} ({task.Manifest.Plugin.Commit})");

if (ownerId > 0 && task.Manifest.Plugin.Owners.All(x => x != ownerId))
if (actor != null && task.Manifest.Plugin.Owners.All(x => x != actor))
{
Log.Information("Not owned: {Name} - {Sha} (have {HaveCommit})", task.InternalName,
task.Manifest.Plugin.Commit,
Expand Down

0 comments on commit cd09569

Please sign in to comment.