Skip to content

Commit

Permalink
change type of property job.commit-message-options.include-scope to…
Browse files Browse the repository at this point in the history
… `bool`
  • Loading branch information
brettfo authored and randhircs committed Jan 8, 2025
1 parent b9b9697 commit bf1f3ed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -498,15 +498,17 @@ public void DeserializeCommitOptions()
"repo": "some/repo"
},
"commit-message-options": {
"prefix": "[SECURITY] "
"prefix": "[SECURITY] ",
"prefix-development": null,
"include-scope": true
}
}
}
""";
var jobWrapper = RunWorker.Deserialize(jsonWrapperJson)!;
Assert.Equal("[SECURITY] ", jobWrapper.Job.CommitMessageOptions!.Prefix);
Assert.Null(jobWrapper.Job.CommitMessageOptions!.PrefixDevelopment);
Assert.Null(jobWrapper.Job.CommitMessageOptions!.IncludeScope);
Assert.True(jobWrapper.Job.CommitMessageOptions!.IncludeScope);
}

public static IEnumerable<object?[]> DeserializeErrorTypesData()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ public record CommitOptions
{
public string? Prefix { get; init; } = null;
public string? PrefixDevelopment { get; init; } = null;
public string? IncludeScope { get; init; } = null;
public bool? IncludeScope { get; init; } = null;
}

0 comments on commit bf1f3ed

Please sign in to comment.