Skip to content

Commit

Permalink
Make headline text required only if enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxAtoms committed Jan 29, 2022
1 parent c562880 commit 9fcd6d4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/RepoStatusTable/Options/HeadlineOptions.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
using RepoStatusTable.Options.Validation;

namespace RepoStatusTable.Options;

public class HeadlineOptions
{
public bool Enable { get; set; } = false;
public bool Enable { get; set; }

[Required] public string Text { get; set; }
[RequiredIfEnabled] public string Text { get; set; }
}
2 changes: 1 addition & 1 deletion src/RepoStatusTable/RepoStatusTable.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
</ItemGroup>

<ItemGroup>
<None Update="config.json">
<None Update="exampleconfig.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
</None>
Expand Down

0 comments on commit 9fcd6d4

Please sign in to comment.