From cd095697df2adff534a8b67fcf8f5111c8c6456d Mon Sep 17 00:00:00 2001 From: goat Date: Sat, 30 Jul 2022 17:18:56 +0200 Subject: [PATCH] ownerId => actor --- Plogon/Manifests/Manifest.cs | 4 ++-- Plogon/Program.cs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Plogon/Manifests/Manifest.cs b/Plogon/Manifests/Manifest.cs index d335864..93e0f00 100644 --- a/Plogon/Manifests/Manifest.cs +++ b/Plogon/Manifests/Manifest.cs @@ -9,7 +9,7 @@ public class PluginInfo { public PluginInfo() { - this.Owners = new List(); + this.Owners = new List(); } public string Repository { get; set; } @@ -20,7 +20,7 @@ public PluginInfo() public string Changelog { get; set; } - public List Owners { get; set; } + public List Owners { get; set; } } public PluginInfo Plugin { get; set; } diff --git a/Plogon/Program.cs b/Plogon/Program.cs index c192962..e183224 100644 --- a/Plogon/Program.cs +++ b/Plogon/Program.cs @@ -19,9 +19,9 @@ class Program /// The folder to store artifacts in. /// Running in CI. /// Commit to repo. - /// Creator of the request. + /// Creator of the request. 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(); @@ -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,