Skip to content

Commit

Permalink
Merge branch 'release/0.11.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
gep13 committed Mar 16, 2020
2 parents ed19cd0 + ee11a66 commit 64eda96
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Source/GitReleaseManager.Cli/GitReleaseManager.Cli.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="CommandLineParser" Version="2.7.82" />
<PackageReference Include="Octokit" Version="0.36.0" />
<PackageReference Include="Octokit" Version="0.44.0" />
<PackageReference Include="seriloganalyzer" Version="0.15.0" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion Source/GitReleaseManager.Cli/GitReleaseManager.Tool.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="CommandLineParser" Version="2.7.82" />
<PackageReference Include="Octokit" Version="0.36.0" />
<PackageReference Include="Octokit" Version="0.44.0" />
</ItemGroup>
<ItemGroup>
<None Include="../../Icons/package_icon.png">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="nunit" Version="3.12.0" />
<PackageReference Include="NUnit3TestAdapter" Version="3.16.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.4.0" />
<PackageReference Include="NUnit3TestAdapter" Version="3.16.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.5.0" />
<PackageReference Include="Serilog.Sinks.Console" Version="3.1.1" />
<PackageReference Include="TextCopy" Version="3.0.0" />
<PackageReference Include="TextCopy" Version="3.0.1" />
</ItemGroup>
</Project>
8 changes: 4 additions & 4 deletions Source/GitReleaseManager.Tests/GitReleaseManager.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
<ProjectReference Include="..\GitReleaseManager\GitReleaseManager.Core.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.4.0" />
<PackageReference Include="ApprovalTests" Version="4.4.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.5.0" />
<PackageReference Include="ApprovalTests" Version="4.5.1" />
<PackageReference Include="NUnit" Version="3.12.0" />
<PackageReference Include="NUnit3TestAdapter" Version="3.16.0" />
<PackageReference Include="Octokit" Version="0.36.0" />
<PackageReference Include="NUnit3TestAdapter" Version="3.16.1" />
<PackageReference Include="Octokit" Version="0.44.0" />
</ItemGroup>
</Project>
1 change: 1 addition & 0 deletions Source/GitReleaseManager/Configuration/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public Config()
IncludeShaSection = false,
ShaSectionHeading = "SHA256 Hashes of the release artifacts",
ShaSectionLineFormat = "- `{1}\t{0}`",
AllowUpdateToPublishedRelease = false,
};

Export = new ExportConfig
Expand Down
3 changes: 3 additions & 0 deletions Source/GitReleaseManager/Configuration/CreateConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,8 @@ public class CreateConfig

[YamlMember(Alias = "sha-section-line-format")]
public string ShaSectionLineFormat { get; set; }

[YamlMember(Alias = "allow-update-to-published")]
public bool AllowUpdateToPublishedRelease { get; set; }
}
}
2 changes: 1 addition & 1 deletion Source/GitReleaseManager/GitHubProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public async Task<Release> CreateReleaseFromMilestone(string owner, string repos
{
_logger.Warning("A release for milestone {Milestone} already exists, and will be updated", milestone);

if (!release.Draft)
if (!release.Draft && !_configuration.Create.AllowUpdateToPublishedRelease)
{
throw new InvalidOperationException("Release is not in draft state, so not updating.");
}
Expand Down
4 changes: 2 additions & 2 deletions Source/GitReleaseManager/GitReleaseManager.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
<Compile Include="..\SolutionInfo.cs" Link="SolutionInfo.cs" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Octokit" Version="0.36.0" />
<PackageReference Include="Octokit" Version="0.44.0" />
<PackageReference Include="seriloganalyzer" Version="0.15.0" />
<PackageReference Include="YamlDotNet" Version="8.0.0" />
<PackageReference Include="YamlDotNet" Version="8.1.0" />
<PackageReference Include="AutoMapper" Version="9.0.0" />
</ItemGroup>
</Project>
5 changes: 5 additions & 0 deletions docs/input/docs/configuration/default-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ create:
include-sha-section: false
sha-section-heading: "SHA256 Hashes of the release artifacts"
sha-section-line-format: "- `{1}\t{0}`"
allow-update-to-published: false
export:
include-created-date-in-title: false
created-date-string-format: ''
Expand Down Expand Up @@ -103,6 +104,10 @@ control the look and feel of the generated release notes.
used when creating the SHA256 hash entries in the release notes.
Default is ``- `{1}\t{0}` `` **NOTE:** This configuration option was added
in version 0.9.0 of GitReleaseManager.
- **allow-update-to-published**
- A boolean value which indicates whether or not updates can be applied to
published releases. The default value is false. **NOTE:** This
configuration option was added in version 0.11.0 of GitReleaseManager.

See the [example create configuration section](create-configuration) to see an
example of how a footer can be configured.
Expand Down

0 comments on commit 64eda96

Please sign in to comment.