Skip to content

Commit b226e1d

Browse files
committed
Follow the convention to set default values
1 parent 09b923d commit b226e1d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/GitReleaseManager.Core/Configuration/Config.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ public Config()
2929
AllowUpdateToPublishedRelease = false,
3030
AllowMilestonesWithoutIssues = false,
3131
IncludeContributors = false,
32+
SortIssuesBy = Model.SortIssuesBy.Id,
33+
SortIssuesDirection = Model.SortDirection.Ascending,
3234
};
3335

3436
Export = new ExportConfig

src/GitReleaseManager.Core/Configuration/CreateConfig.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ public class CreateConfig
4343
public bool IncludeContributors { get; set; }
4444

4545
[YamlMember(Alias = "sort-issues-by")]
46-
public SortIssuesBy SortIssuesBy { get; set; } = SortIssuesBy.Id;
46+
public SortIssuesBy SortIssuesBy { get; set; }
4747

4848
[YamlMember(Alias = "sort-issues-direction")]
49-
public SortDirection SortIssuesDirection { get; set; } = SortDirection.Ascending;
49+
public SortDirection SortIssuesDirection { get; set; }
5050
}
5151
}

0 commit comments

Comments
 (0)