Skip to content

Commit

Permalink
Merge pull request #11249 from dependabot/dev/brettfo/nuget-job-scope
Browse files Browse the repository at this point in the history
change type of property `job.commit-message-options.include-scope` to `bool`
  • Loading branch information
randhircs authored Jan 8, 2025
2 parents b9b9697 + bf1f3ed commit 081474e
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 081474e

Please sign in to comment.