Skip to content

Commit 423a6b8

Browse files
committed
Merge branch 'release/5.4.0'
2 parents 7e941d5 + e2dba1f commit 423a6b8

File tree

148 files changed

+3212
-911
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

148 files changed

+3212
-911
lines changed

.appveyor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ install:
2020
- ps: Invoke-WebRequest -Uri "https://dotnet.microsoft.com/download/dotnet/scripts/v1/dotnet-install.ps1" -OutFile "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1"
2121
# .NET 5 required for Codecov.Tool
2222
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Version 5.0.408 -InstallDir $env:DOTNET_INSTALL_DIR'
23-
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Version 8.0.404 -InstallDir $env:DOTNET_INSTALL_DIR'
24-
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Version 9.0.101 -InstallDir $env:DOTNET_INSTALL_DIR'
23+
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Version 8.0.405 -InstallDir $env:DOTNET_INSTALL_DIR'
24+
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Version 9.0.102 -InstallDir $env:DOTNET_INSTALL_DIR'
2525
- ps: $env:Path = "$env:DOTNET_INSTALL_DIR;$env:Path"
2626
- ps: dotnet --info
2727

.github/workflows/integrationtests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
run: ./build.sh --target=Create-NuGet-Packages
3636
shell: bash
3737
- name: Publish NuGet package as build artifact
38-
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4
38+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
3939
with:
4040
name: NuGet Package
4141
path: ./BuildArtifacts/Packages/NuGet/
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"Tool","Tool Version","Format","Issue Provider","Supported Since"
22
"~~[dupFinder](https://www.jetbrains.com/help/resharper/2021.2/dupFinder.html){target='_blank'}~~{ title='Deprecated since dupFinder Command Line Tool has been sunsetted' } ",,,"Cake.Issues.DupFinder",0.8.0
3-
"[jscpd](https://github.com/kucherenko/jscpd){target='_blank'}",,"[jscpd-sarif-reporter](https://www.npmjs.com/package/jscpd-sarif-reporter){target='_blank'}","[Cake.Issues.Sarif](issue-providers/sarif/index.md)",4.2.0
3+
"[jscpd](https://github.com/kucherenko/jscpd){target='_blank'}",,"[jscpd-sarif-reporter](https://www.npmjs.com/package/jscpd-sarif-reporter){target='_blank'}","[Cake.Issues.Sarif](issue-providers/sarif/index.md)",5.4.0

docs/input/documentation/contributing/how-to-build.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Ensure the following prerequisites are fulfilled:
99

1010
* Latest .NET version installed
1111

12-
To build the addins and run unit tests [Cake] is used:
12+
To build the addins and run unit tests [Cake]{target="_blank"} is used:
1313

1414
=== ":material-microsoft-windows: Windows"
1515

@@ -44,7 +44,7 @@ Ensure the following prerequisites are fulfilled:
4444
* Latest .NET version installed
4545
* Python 3 installed
4646

47-
To build and serve the website [Cake] is used:
47+
To build and serve the website [Cake]{target="_blank"} is used:
4848

4949
=== ":material-microsoft-windows: Windows"
5050

docs/input/documentation/contributing/how-to-contribute.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: How to contribute
33
description: Instructions how to contribute to Cake Issues addins.
44
---
55

6-
The repositories are using [GitFlow] with default configuration.
6+
The repositories are using [GitFlow]{target="_blank"} with default configuration.
77
Development is happening on `develop` branch.
88

99
To contribute:
@@ -14,6 +14,8 @@ To contribute:
1414
* Push your feature branch.
1515
* Create a pull request.
1616

17-
For getting started see issues marked with `Up-for-grabs` in the individual repositories.
17+
!!! tip
18+
For getting started see [issues marked with Up-for-grabs]{target="_blank"}.
1819

1920
[GitFlow]: https://nvie.com/posts/a-successful-git-branching-model/
21+
[issues marked with Up-for-grabs]: https://github.com/cake-contrib/Cake.Issues/labels/up-for-grabs

docs/input/documentation/contributing/how-to-release.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ title: How to release addins
33
description: Instructions how to release individual Cake Issues addins.
44
---
55

6-
See [Cake.Recipe documentation] how to create a new release of this addin.
6+
See [Cake.Recipe documentation]{target="_blank"} how to create a new release of this addin.
77

88
[Cake.Recipe documentation]: https://cake-contrib.github.io/Cake.Recipe/docs/usage/creating-release

docs/input/documentation/extending/issue-provider/helper.md

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -9,38 +9,3 @@ The following helpers are provider by `Cake.Issues` for simplifying implementati
99
|------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------|
1010
| [StringPathExtensions](https://cakebuild.net/api/Cake.Issues/StringPathExtensions/){target="_blank"} | Extensions for string for handling paths. |
1111
| [ByteArrayExtensions](https://cakebuild.net/api/Cake.Issues/ByteArrayExtensions/){target="_blank"} | Extensions for converting between strings an byte arrays. |
12-
13-
## File linking
14-
15-
Cake.Issues provides infrastructure to get links to files on source code hosts like GitHub or Azure Repos.
16-
This infrastructure can be used inside issue providers to generate file links which can be used inside the issue messages:
17-
18-
```csharp
19-
protected override IEnumerable<IIssue> InternalReadIssues()
20-
{
21-
var result = new List<IIssue>();
22-
23-
var filePath = "foo.cs";
24-
var line = 10;
25-
26-
var fileLink =
27-
this.Settings.FileLinkSettings.GetFileLink(
28-
IssueBuilder
29-
.NewIssue("Issue for creating file link", this)
30-
.InFile(filePath, line)
31-
.Create()
32-
);
33-
34-
var htmlMessage =
35-
$"This is an issues in the file <a href=\"{fileLink}\">{filePath}</a>";
36-
37-
var issue =
38-
IssueBuilder
39-
.NewIssue("MyMessage", this)
40-
.WithMessageInHtmlFormat(htmlMessage)
41-
.InFile(filePath, line)
42-
.Create();
43-
44-
return result;
45-
}
46-
```
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
title: File links in message
3+
description: Instructions how to implement add file links to issue messages.
4+
---
5+
6+
Cake Issues provides infrastructure to [get links to files] on source code hosts like GitHub or Azure Repos.
7+
8+
This infrastructure can also be used inside an issue providers `InternalReadIssues` method to generate file links
9+
which can be used inside the issue messages:
10+
11+
```csharp
12+
protected override IEnumerable<IIssue> InternalReadIssues()
13+
{
14+
var result = new List<IIssue>();
15+
16+
var filePath = "foo.cs";
17+
var line = 10;
18+
19+
var fileLink =
20+
this.Settings.FileLinkSettings.GetFileLink(
21+
IssueBuilder
22+
.NewIssue("Issue for creating file link", this)
23+
.InFile(filePath, line)
24+
.Create()
25+
);
26+
27+
var htmlMessage =
28+
$"This is an issues in the file <a href=\"{fileLink}\">{filePath}</a>";
29+
30+
var issue =
31+
IssueBuilder
32+
.NewIssue("MyMessage", this)
33+
.WithMessageInHtmlFormat(htmlMessage)
34+
.InFile(filePath, line)
35+
.Create();
36+
37+
return result;
38+
}
39+
```
40+
41+
[get links to files]: ../../../usage/reading-issues/file-linking.md

0 commit comments

Comments
 (0)