Skip to content

Commit

Permalink
Fix separator naming
Browse files Browse the repository at this point in the history
Fix wrong default for pullID
  • Loading branch information
Gamer025 committed Oct 16, 2021
1 parent e75696a commit 1ff559d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CodeOwnersParser/ActionInputs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public string Name
Required = false,
HelpText = "String used to seperate multiple owners in the output.",
Default = " ")]
public string seperator { get; set; } = null!;
public string separator { get; set; } = null!;

[Option('p', "prefix",
Required = false,
Expand Down
2 changes: 1 addition & 1 deletion CodeOwnersParser/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ static void NotifyOwners(ActionInputs inputs)
ownersWithModifiedFiles = ownersWithModifiedFiles.Except(notifiedOwners).ToList();
}

string output = String.Join(inputs.seperator, ownersWithModifiedFiles);
string output = String.Join(inputs.separator, ownersWithModifiedFiles);

Console.WriteLine($"Owners with file changes: {output}");
Console.WriteLine($"::set-output name=owners::{output}");
Expand Down
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ inputs:
default: "/.github/CODEOWNERS"
pullID:
description:
"ID of the PR to process. Assign from `github.event_path.pull_request.number`."
"ID of the PR to process. Assign from `github.event.pull_request.number`."
required: true
default: ${{ github.event_path.pull_request.number }}
default: ${{ github.event.pull_request.number }}
separator:
description:
"Separator used if multiple owners are returned. Defaults to space."
Expand Down

0 comments on commit 1ff559d

Please sign in to comment.