Skip to content
This repository has been archived by the owner on Apr 13, 2024. It is now read-only.

Commit

Permalink
Merge branch 'release/4.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalberger committed Dec 23, 2023
2 parents d101f88 + acbdf96 commit dfe6e30
Show file tree
Hide file tree
Showing 14 changed files with 53 additions and 41 deletions.
5 changes: 3 additions & 2 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ install:
- ps: mkdir $env:DOTNET_INSTALL_DIR -Force | Out-Null
- ps: Invoke-WebRequest -Uri "https://dotnet.microsoft.com/download/dotnet/scripts/v1/dotnet-install.ps1" -OutFile "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1"
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Version 5.0.408 -InstallDir $env:DOTNET_INSTALL_DIR'
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Version 6.0.405 -InstallDir $env:DOTNET_INSTALL_DIR'
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Version 7.0.102 -InstallDir $env:DOTNET_INSTALL_DIR'
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Version 6.0.417 -InstallDir $env:DOTNET_INSTALL_DIR'
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Version 7.0.404 -InstallDir $env:DOTNET_INSTALL_DIR'
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Version 8.0.100 -InstallDir $env:DOTNET_INSTALL_DIR'
- ps: $env:Path = "$env:DOTNET_INSTALL_DIR;$env:Path"
- ps: dotnet --info

Expand Down
19 changes: 0 additions & 19 deletions .github/dependabot.yml

This file was deleted.

6 changes: 6 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"github>cake-contrib/renovate-presets:cake-issues"
]
}
13 changes: 7 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,23 @@ jobs:
runs-on: windows-latest
steps:
- name: Get the sources
uses: actions/checkout@v2
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Fetch all tags and branches
run: git fetch --prune --unshallow
- name: Install .NET
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@4d6c8fcf3c8f7a60068d26b594648e99df24cee3 # v4
with:
# .NET 5 required for GitVersion
dotnet-version: |
5.x
6.x
7.x
8.x
- name: Build
run: .\build.ps1
shell: powershell
- name: Publish NuGet package as build artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # v4
with:
name: NuGet Package
path: ./BuildArtifacts/Packages/NuGet/
Expand All @@ -33,14 +34,14 @@ jobs:
runs-on: windows-latest
steps:
- name: Get the sources
uses: actions/checkout@v2
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Download build artifact
uses: actions/download-artifact@v2
uses: actions/download-artifact@7a1cd3216ca9260cd8022db641d960b1db4d1be4 # v4
with:
name: NuGet Package
path: ./BuildArtifacts/Packages/NuGet
- name: Install .NET
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@4d6c8fcf3c8f7a60068d26b594648e99df24cee3 # v4
with:
dotnet-version: |
6.x
Expand Down
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"dotnet.defaultSolution": "src\\Cake.Issues.PullRequests.GitHubActions.sln"
}
4 changes: 4 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,9 @@ jobs:
inputs:
version: '7.x'
displayName: 'Install .NET 7'
- task: UseDotNet@2
inputs:
version: '8.x'
displayName: 'Install .NET 8'
- powershell: ./build.ps1
displayName: 'Cake Build'
7 changes: 7 additions & 0 deletions global.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"sdk": {
"allowPrerelease": true,
"version": "8.0.100",
"rollForward": "latestFeature"
}
}
5 changes: 4 additions & 1 deletion nuspec/nuget/Cake.Issues.PullRequests.GitHubActions.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ See the Project Site for an overview of the whole ecosystem of addins for workin
<repository type="git" url="https://github.com/cake-contrib/Cake.Issues.PullRequests.GitHubActions"/>
<copyright>Copyright © Pascal Berger</copyright>
<tags>cake cake-addin cake-issues cake-pullrequestsystem issues pullrequest buildserver github github-actions</tags>
<releaseNotes>https://github.com/cake-contrib/Cake.Issues.PullRequests.GitHubActions/releases/tag/3.0.0</releaseNotes>
<releaseNotes>https://github.com/cake-contrib/Cake.Issues.PullRequests.GitHubActions/releases/tag/4.0.0</releaseNotes>
</metadata>
<files>
<file src="..\..\..\..\nuspec\nuget\icon.png" target="" />
Expand All @@ -32,5 +32,8 @@ See the Project Site for an overview of the whole ecosystem of addins for workin
<file src="net7.0\Cake.Issues.PullRequests.GitHubActions.dll" target="lib\net7.0" />
<file src="net7.0\Cake.Issues.PullRequests.GitHubActions.pdb" target="lib\net7.0" />
<file src="net7.0\Cake.Issues.PullRequests.GitHubActions.xml" target="lib\net7.0" />
<file src="net8.0\Cake.Issues.PullRequests.GitHubActions.dll" target="lib\net8.0" />
<file src="net8.0\Cake.Issues.PullRequests.GitHubActions.pdb" target="lib\net8.0" />
<file src="net8.0\Cake.Issues.PullRequests.GitHubActions.xml" target="lib\net8.0" />
</files>
</package>
2 changes: 1 addition & 1 deletion recipe.cake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#load nuget:https://pkgs.dev.azure.com/cake-contrib/Home/_packaging/addins/nuget/v3/index.json?package=Cake.Recipe&version=3.0.0-beta0001-0007&prerelease
#load nuget:?package=Cake.Recipe&version=3.1.1

//*************************************************************************************************
// Settings
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Cake.Issues.Testing" Version="3.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.6.2" />
<PackageReference Include="Cake.Testing" Version="3.0.0" />
<PackageReference Include="Cake.Issues.Testing" Version="4.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="Cake.Testing" Version="4.0.0" />
<PackageReference Include="Shouldly" Version="4.2.1" />
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118" />
<PackageReference Include="xunit" Version="2.4.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5" />
<PackageReference Include="xunit" Version="2.6.3" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.5" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net6.0;net7.0</TargetFrameworks>
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
<Description>Addin for writing code analyzer or linter issues to GitHub Actions</Description>
<Authors>Pascal Berger</Authors>
<Copyright>Copyright © Pascal Berger and contributors</Copyright>
Expand All @@ -16,10 +16,10 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Cake.Core" Version="3.0.0" />
<PackageReference Include="Cake.Issues" Version="3.0.0" />
<PackageReference Include="Cake.Issues.PullRequests" Version="3.0.0" />
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="7.0.1">
<PackageReference Include="Cake.Core" Version="4.0.0" />
<PackageReference Include="Cake.Issues" Version="4.0.0" />
<PackageReference Include="Cake.Issues.PullRequests" Version="4.0.0" />
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="8.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
/// </summary>
public class GitHubActionsPullRequestSystem : BasePullRequestSystem
{
private static readonly char[] Separator = ['\n'];

Check warning on line 15 in src/Cake.Issues.PullRequests.GitHubActions/GitHubActionsPullRequestSystem.cs

View workflow job for this annotation

GitHub Actions / Build

Opening square brackets should not be preceded by a space. (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1010.md)

Check warning on line 15 in src/Cake.Issues.PullRequests.GitHubActions/GitHubActionsPullRequestSystem.cs

View workflow job for this annotation

GitHub Actions / Build

Opening square brackets should not be preceded by a space. (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1010.md)

Check warning on line 15 in src/Cake.Issues.PullRequests.GitHubActions/GitHubActionsPullRequestSystem.cs

View workflow job for this annotation

GitHub Actions / Build

Opening square brackets should not be preceded by a space. (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1010.md)

Check warning on line 15 in src/Cake.Issues.PullRequests.GitHubActions/GitHubActionsPullRequestSystem.cs

View workflow job for this annotation

GitHub Actions / Build

Opening square brackets should not be preceded by a space. (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1010.md)

Check warning on line 15 in src/Cake.Issues.PullRequests.GitHubActions/GitHubActionsPullRequestSystem.cs

View workflow job for this annotation

GitHub Actions / Build

Opening square brackets should not be preceded by a space. (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1010.md)

Check warning on line 15 in src/Cake.Issues.PullRequests.GitHubActions/GitHubActionsPullRequestSystem.cs

View workflow job for this annotation

GitHub Actions / Build

Opening square brackets should not be preceded by a space. (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1010.md)

Check warning on line 15 in src/Cake.Issues.PullRequests.GitHubActions/GitHubActionsPullRequestSystem.cs

View workflow job for this annotation

GitHub Actions / Build

Opening square brackets should not be preceded by a space. (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1010.md)

Check warning on line 15 in src/Cake.Issues.PullRequests.GitHubActions/GitHubActionsPullRequestSystem.cs

View workflow job for this annotation

GitHub Actions / Build

Opening square brackets should not be preceded by a space. (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1010.md)

Check warning on line 15 in src/Cake.Issues.PullRequests.GitHubActions/GitHubActionsPullRequestSystem.cs

View workflow job for this annotation

GitHub Actions / Build

Opening square brackets should not be preceded by a space. (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1010.md)

Check warning on line 15 in src/Cake.Issues.PullRequests.GitHubActions/GitHubActionsPullRequestSystem.cs

View workflow job for this annotation

GitHub Actions / Build

Initializer expected

Check warning on line 15 in src/Cake.Issues.PullRequests.GitHubActions/GitHubActionsPullRequestSystem.cs

View workflow job for this annotation

GitHub Actions / Build

Opening square brackets should not be preceded by a space. (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1010.md)

Check warning on line 15 in src/Cake.Issues.PullRequests.GitHubActions/GitHubActionsPullRequestSystem.cs

View workflow job for this annotation

GitHub Actions / Build

Opening square brackets should not be preceded by a space. (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1010.md)

Check warning on line 15 in src/Cake.Issues.PullRequests.GitHubActions/GitHubActionsPullRequestSystem.cs

View workflow job for this annotation

GitHub Actions / Build

Opening square brackets should not be preceded by a space. (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1010.md)

Check warning on line 15 in src/Cake.Issues.PullRequests.GitHubActions/GitHubActionsPullRequestSystem.cs

View workflow job for this annotation

GitHub Actions / Build

Opening square brackets should not be preceded by a space. (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1010.md)

Check warning on line 15 in src/Cake.Issues.PullRequests.GitHubActions/GitHubActionsPullRequestSystem.cs

View workflow job for this annotation

GitHub Actions / Build

Opening square brackets should not be preceded by a space. (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1010.md)

Check warning on line 15 in src/Cake.Issues.PullRequests.GitHubActions/GitHubActionsPullRequestSystem.cs

View workflow job for this annotation

GitHub Actions / Build

Opening square brackets should not be preceded by a space. (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1010.md)

Check warning on line 15 in src/Cake.Issues.PullRequests.GitHubActions/GitHubActionsPullRequestSystem.cs

View workflow job for this annotation

GitHub Actions / Build

Opening square brackets should not be preceded by a space. (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1010.md)

Check warning on line 15 in src/Cake.Issues.PullRequests.GitHubActions/GitHubActionsPullRequestSystem.cs

View workflow job for this annotation

GitHub Actions / Build

Opening square brackets should not be preceded by a space. (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1010.md)

Check warning on line 15 in src/Cake.Issues.PullRequests.GitHubActions/GitHubActionsPullRequestSystem.cs

View workflow job for this annotation

GitHub Actions / Build

Opening square brackets should not be preceded by a space. (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1010.md)

Check warning on line 15 in src/Cake.Issues.PullRequests.GitHubActions/GitHubActionsPullRequestSystem.cs

View workflow job for this annotation

GitHub Actions / Build

Initializer expected
private readonly GitHubActionsBuildSettings settings;

/// <summary>
Expand Down Expand Up @@ -111,7 +112,7 @@ private void WriteIssues(IEnumerable<IIssue> issues)
// Commands don't support line breaks, therefore we only use the first line of the message.
var message =
issue.MessageText
.Split(new[] { '\n' }, StringSplitOptions.RemoveEmptyEntries)
.Split(Separator, StringSplitOptions.RemoveEmptyEntries)
.FirstOrDefault()
?.Trim();

Expand Down
5 changes: 5 additions & 0 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<Project>
<PropertyGroup>
<LangVersion>latest</LangVersion>
</PropertyGroup>
</Project>
2 changes: 1 addition & 1 deletion tests/integration/.config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"isRoot": true,
"tools": {
"cake.tool": {
"version": "3.0.0",
"version": "4.0.0",
"commands": [
"dotnet-cake"
]
Expand Down

0 comments on commit dfe6e30

Please sign in to comment.