Skip to content

Commit

Permalink
Merge branch 'release/0.19.0'
Browse files Browse the repository at this point in the history
* release/0.19.0: (44 commits)
  (build) Make use of new GRM features
  (doc) Remove unnecessary space.
  (doc) Document the new set-due-date option
  (doc) Fixed formatting
  (doc) Document the new include-contributors option
  (#89) Add required mappings for GitLab models
  (#89) Include contributors in release notes
  (#568) Set the 'Due date' when closing a milestone
  Bump coverlet.msbuild from 6.0.3 to 6.0.4 in /src in the tests group
  Bump Roslynator.Analyzers
  Bump Shouldly from 4.2.1 to 4.3.0 in /src
  Bump cake-build/cake-action from 2 to 3
  Bump Microsoft.Extensions.DependencyInjection in /src
  Bump NGitLab from 7.1.0 to 7.6.0 in /src
  (build) Install .NET 7.0 on build machine
  Bump NGitLab from 7.0.1 to 7.1.0 in /src
  Bump NUnit3TestAdapter from 4.5.0 to 4.6.0 in /src
  Bump NUnit from 4.1.0 to 4.3.2 in /src
  Bump Destructurama.Attributed and Serilog in /src
  Bump Microsoft.Extensions.DependencyInjection in /src
  ...
  • Loading branch information
gep13 committed Feb 20, 2025
2 parents e467873 + d546abb commit 51578c0
Show file tree
Hide file tree
Showing 48 changed files with 882 additions and 206 deletions.
18 changes: 16 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ indent_style = space
tab_width = 4

# New line preferences
end_of_line = crlf
end_of_line = unset
insert_final_newline = false
trim_trailing_whitespace = true

Expand All @@ -24,9 +24,18 @@ end_of_line = lf

[*.sln]
# Visual studio defaults
end_of_line = crlf
insert_final_newline = true
indent_style = tab

[*.csproj]
# Visual studio defaults
end_of_line = crlf
insert_final_newline = true
indent_style = space
tab_width = 4
indent_size = 4

[*.md]
trim_trailing_whitespace = false
insert_final_newline = true # Conflicts with markdownlint when false
Expand All @@ -36,10 +45,15 @@ indent_size = 2 # Incorrect indentation happens when this is not 2
indent_size = 2 # Incorrect indentation happens when this is not 2

[*.ps1]
end_of_line = crlf
charset = utf-8-bom
indent_style = space
indent_size = 2

[*.js]
indent_style = tab
indent_size = 2
indent_size = 2

[*.{bat,cmd}]
end_of_line = crlf
charset = latin1
133 changes: 104 additions & 29 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,29 +1,104 @@
* text eol=crlf whitespace=tab-in-indent,tabwidth=4

*.sh text eol=lf

*.md text whitespace=-blank-at-eol

# Custom for Visual Studio
*.cs text diff=csharp
*.sln merge=union whitespace=-tab-in-indent,-blank-at-eof,indent-with-non-tab
*.csproj merge=union
*.vbproj merge=union
*.fsproj merge=union
*.dbproj merge=union

# Standard to msysgit
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain

*.png binary

.editorconfig text whitespace=-blank-at-eol
# Common settings that generally should always be used with your language specific settings

# Auto detect text files and perform LF normalization
* text=auto

#
# The above will handle all files NOT found below
#

# Documents
*.bibtex text diff=bibtex
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain
*.md text diff=markdown
*.mdx text diff=markdown
*.tex text diff=tex
*.adoc text
*.textile text
*.mustache text
*.csv text eol=crlf
*.tab text
*.tsv text
*.txt text
*.sql text
*.epub diff=astextplain

# Graphics
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.tif binary
*.tiff binary
*.ico binary
# SVG treated as text by default.
*.svg text
# If you want to treat it as binary,
# use the following line instead.
# *.svg binary
*.eps binary

# Scripts
*.bash text eol=lf
*.fish text eol=lf
*.ksh text eol=lf
*.sh text eol=lf
*.zsh text eol=lf
# These are explicitly windows files and should use crlf
*.bat text eol=crlf
*.cmd text eol=crlf
*.ps1 text eol=crlf

# Serialisation
*.json text
*.toml text
*.xml text
*.yaml text
*.yml text

# Archives
*.7z binary
*.bz binary
*.bz2 binary
*.bzip2 binary
*.gz binary
*.lz binary
*.lzma binary
*.rar binary
*.tar binary
*.taz binary
*.tbz binary
*.tbz2 binary
*.tgz binary
*.tlz binary
*.txz binary
*.xz binary
*.Z binary
*.zip binary
*.zst binary

# Text files where line endings should be preserved
*.patch -text

*.cs text diff=csharp
*.cshtml text diff=html
*.csx text diff=csharp
*.sln text eol=crlf
*.csproj text eol=crlf

#
# Exclude files from exporting
#

.gitattributes export-ignore
.gitignore export-ignore
.gitkeep export-ignore
21 changes: 21 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,28 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: "/"
labels:
- "Build"
schedule:
interval: daily
- package-ecosystem: nuget
directory: "/src"
labels:
- "Build"
groups:
analyzers:
patterns:
- "*Analyzers"
serilog:
patterns:
- "Serilog.*"
tests:
patterns:
- "NUnit.*"
- "Microsoft.NET.Test.Sdk"
- "NSubstitute"
- "coverlet.msbuild"
schedule:
interval: daily
open-pull-requests-limit: 10
17 changes: 9 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,46 +35,47 @@ jobs:
WYAM_DEPLOY_REMOTE: https://github.com/GitTools/GitReleaseManager
CODECOV_REPO_TOKEN: ${{ secrets.CODECOV_REPO_TOKEN }}
GPR_USER: gittools-bot
GPR_PASSWORD: ${{ secrets.GPR_PASSWORD }}
GPR_PASSWORD: ${{ secrets.NUGET_GITHUB_TOKEN }}
steps:
- name: Checkout the repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Fetch all tags and branches
run: git fetch --prune --unshallow

- name: Install .NET SDK 2.1.x, 3.1.x, 5.0.x, and 6.0.x
uses: actions/setup-dotnet@v3
- name: Install .NET SDK 2.1.x, 3.1.x, 5.0.x, 6.0.x, and 7.0.x
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
2.1.x
3.1.x
5.0.x
6.0.x
7.0.x
- name: Cache Tools
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: tools
key: ${{ runner.os }}-tools-${{ hashFiles('recipe.cake') }}

- name: Build project
uses: cake-build/cake-action@v1
uses: cake-build/cake-action@v3
with:
script-path: recipe.cake
target: CI
verbosity: Normal
cake-version: tool-manifest

- name: Upload Issues-Report
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
if-no-files-found: warn
name: ${{ matrix.os }} issues
path: BuildArtifacts/report.html

- name: Upload Packages
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
if: runner.os == 'Windows'
with:
if-no-files-found: warn
Expand Down
2 changes: 2 additions & 0 deletions GitReleaseManager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ create:
include-sha-section: true
sha-section-heading: "SHA256 Hashes of the release artifacts"
sha-section-line-format: "- `{1}\t{0}`"
include-contributors: true
close:
use-issue-comments: true
set-due-date: true
issue-comment: |-
:tada: This issue has been resolved in version {milestone} :tada:
Expand Down
17 changes: 15 additions & 2 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:
sha-section-heading: "SHA256 Hashes of the release artifacts"
sha-section-line-format: "- `{1}\t{0}`"
allow-update-to-published: false
include-contributors: false
export:
include-created-date-in-title: false
created-date-string-format: ''
Expand All @@ -28,6 +29,7 @@ export:
multiline-regex: false
close:
use-issue-comments: false
set-due-date: false
issue-comment: |-
:tada: This issue has been resolved in version {milestone} :tada:
Expand Down Expand Up @@ -135,6 +137,11 @@ control the look and feel of the generated release notes.
- 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.
- **include-contributors**
- A boolean value which indicates whether the list of contributors is included
in the release notes. A contributor is defined as someone who opened an issue
or submitted a PR. **NOTE:** This configuration option was added in version
0.19.0 of GitReleaseManager.

See the [example create configuration section](create-configuration) to see an
example of how a footer can be configured.
Expand Down Expand Up @@ -176,10 +183,16 @@ tokenized values, such as milestone, owner, repository, with the actual values.
- A boolean value which indicates whether or not comments are added to any
closed issues that are included within a milestone, when it is being
closed.
- **issue-comment**
- This is a template for what comment should be added to each issue. Within
- **issue-comment**
- This is a template for what comment should be added to each issue. Within
this comment template, it is possible to replace information for example,
the milestone name, the owner/repository information, etc.
- **set-due-date**
- A boolean value which indicates whether or not to set the due date of the
milestone when closing it. The date which it is set to, is the same as the
date at which the command was run, it is not possible to provide a
different date. **NOTE:** This configuration option was added in version
0.19.0 of GitReleaseManager.

## Default branch

Expand Down
10 changes: 5 additions & 5 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,20 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="8.0.0">
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Serilog" Version="4.0.0" />
<PackageReference Include="IDisposableAnalyzers" Version="4.0.7">
<PackageReference Include="Serilog" />
<PackageReference Include="IDisposableAnalyzers">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118">
<PackageReference Include="StyleCop.Analyzers">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Roslynator.Analyzers" Version="4.12.4">
<PackageReference Include="Roslynator.Analyzers">
<PrivateAssets>All</PrivateAssets>
</PackageReference>
</ItemGroup>
Expand Down
39 changes: 39 additions & 0 deletions src/Directory.Packages.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<Project>
<PropertyGroup>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
<NoWarn>$(NoWarn);NU1507</NoWarn>
</PropertyGroup>
<ItemGroup>
<PackageVersion Include="ApprovalTests" Version="6.0.0" />
<PackageVersion Include="AutoMapper" Version="13.0.1" />
<PackageVersion Include="CommandLineParser" Version="2.9.1" />
<PackageVersion Include="coverlet.msbuild" Version="6.0.4" />
<PackageVersion Include="Destructurama.Attributed" Version="5.1.0" />
<PackageVersion Include="GraphQL.Client" Version="6.0.1" />
<PackageVersion Include="GraphQL.Client.Serializer.SystemTextJson" Version="6.0.1" />
<PackageVersion Include="IDisposableAnalyzers" Version="4.0.8" />
<PackageVersion Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="9.0.0" />
<PackageVersion Include="Microsoft.Extensions.DependencyInjection" Version="9.0.2" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
<PackageVersion Include="Microsoft.SourceLink.GitHub" Version="8.0.0" />
<PackageVersion Include="NGitLab" Version="7.6.0" />
<PackageVersion Include="NSubstitute" Version="5.3.0" />
<PackageVersion Include="NUnit" Version="4.3.2" />
<PackageVersion Include="NUnit.Analyzers" Version="4.6.0" />
<PackageVersion Include="NUnit3TestAdapter" Version="4.6.0" />
<PackageVersion Include="Octokit" Version="14.0.0" />
<PackageVersion Include="Roslynator.Analyzers" Version="4.13.0" />
<PackageVersion Include="Scriban" Version="5.12.1" />
<PackageVersion Include="Serilog" Version="4.2.0" />
<PackageVersion Include="Serilog.Sinks.Console" Version="6.0.0" />
<PackageVersion Include="Serilog.Sinks.Debug" Version="3.0.0" />
<PackageVersion Include="Serilog.Sinks.File" Version="6.0.0" />
<PackageVersion Include="seriloganalyzer" Version="0.15.0" />
<PackageVersion Include="Shouldly" Version="4.3.0" />
<PackageVersion Include="StyleCop.Analyzers" Version="1.1.118" />
<PackageVersion Include="System.Net.Http" Version="4.3.4" />
<PackageVersion Include="TextCopy" Version="6.2.1" />
<PackageVersion Include="YamlDotNet" Version="13.7.1" />
</ItemGroup>
</Project>
Loading

0 comments on commit 51578c0

Please sign in to comment.