You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The .NET version sweeper is designed to alert repositories that there are projects targeting versions that are no longer supported. For example, projects targeting .NET Core 3.0, or .NET Framework 4.5.1 would trigger an issue to be created to update these non-LTS or current versions. For example issues, see [issues created in this repo based on the *non-lts* directory](https://github.com/dotnet/versionsweeper/issues?q=is%3Aopen+is%3Aissue+label%3Adotnet-target-version).
19
+
The .NET version sweeper is designed to alert repositories (by either creating issues, pull requests, or both) that there are projects targeting versions that are no longer supported (or won't be soon). For example, projects targeting .NET Core 3.0 or .NET Framework 4.5.1 could trigger an issue to be created to update these projects to supported versions, or even a pull request that upgrades it for you. For example issues, see [issues created in this repo based on the *non-lts* directory](https://github.com/dotnet/versionsweeper/issues?q=is%3Aopen+is%3Aissue+label%3Adotnet-target-version).
20
20
21
21
This is intended to be used as a GitHub action that will run as a [scheduled CRON job](https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#onschedule). Ideally, once a month or as often as necessary to align with .NET version updates.
22
22
@@ -39,56 +39,103 @@ A schedule/cron job that runs on the first of every month is detailed below in t
39
39
|`-p`, `pattern`| The search pattern, defaults to `"*.csproj;*.fsproj;*.vbproj;*.xproj;project.json"`. |
40
40
|`-s`, `sdk-compliance`| Whether or not to report projects that are not using the new SDK-style project format. |
To configure the action, you can create a file at the root of the repository named *dotnet-versionsweeper.json*. This config file contains a node, named `"ignore"` that is an array of patterns following the [globbing matcher detailed here](https://docs.microsoft.com/dotnet/api/microsoft.extensions.filesystemglobbing.matcher#remarks).
@@ -115,12 +169,19 @@ The file can also contain a value `outOfSupportWithinDays` to specify the number
115
169
"**/*ThisShouldNeverBeFlagged.csproj",
116
170
"IgnoreDir/**/*.*"
117
171
],
118
-
"outOfSupportWithinDays": 90
172
+
"outOfSupportWithinDays": 90,
173
+
"actionType": "All"
119
174
}
120
175
```
121
176
122
177
For an example config file, see [dotnet/samples/dotnet-versionsweeper.json](https://github.com/dotnet/samples/blob/master/dotnet-versionsweeper.json).
123
178
179
+
| Configuration | Type | Details |
180
+
|:--|:--|:--|
181
+
| `ignore` | `string[]` | Glob patterns to ignore. |
182
+
| `outOfSupportWithinDays` | `string[]` | The number of days in advance to monitor for. |
183
+
| `actionType` | `ActionType` <br><br> `"CreateIssue"` <br> `"PullRequest"` <br> `"All"` | The type of action to take, defaults to `CreateIssue`. |
184
+
124
185
## Label auto-generation
125
186
126
187
This tool will create a label named `dotnet-target-version` for easier tracking of issues and pull requests that it creates. The label is created with the following description and color by default, please do not change the name - as that is what is used to determine whether or not to create a new label.
@@ -140,7 +201,7 @@ This repo serves as a sample, as it contains a directory *non-lts* with projects
140
201
141
202
## Official .NET support policies
142
203
143
-
This action is intended to help determine non-LTS (or current) versions, but it is _not_ perfect. When in doubt, please refer to the [official .NET support policies](https://dotnet.microsoft.com/platform/support/policy).
204
+
This action is intended to help determine non-LTS (or STS) versions, but it _isn't_ perfect. When in doubt, please refer to the [official .NET support policies](https://dotnet.microsoft.com/platform/support/policy).
0 commit comments