Skip to content

Commit

Permalink
Add support for dotnet-sdk package ecosystem
Browse files Browse the repository at this point in the history
  • Loading branch information
rhyskoedijk committed Nov 17, 2024
1 parent e88189d commit 47ceffc
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
- { ecosystem: cargo }
- { ecosystem: composer }
- { ecosystem: docker }
- { ecosystem: dotnet-sdk }
- { ecosystem: elm }
- { ecosystem: gitsubmodule }
- { ecosystem: github-actions }
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/updater.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
- { ecosystem: cargo }
- { ecosystem: composer }
- { ecosystem: docker }
- { ecosystem: dotnet-sdk }
- { ecosystem: elm }
- { ecosystem: gitsubmodule }
- { ecosystem: github-actions }
Expand Down
1 change: 1 addition & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ GEMSPECS = %w(
go_modules/dependabot-go_modules.gemspec
terraform/dependabot-terraform.gemspec
docker/dependabot-docker.gemspec
dotnet_sdk/dependabot-dotnet_sdk.gemspec
git_submodules/dependabot-git_submodules.gemspec
github_actions/dependabot-github_actions.gemspec
nuget/dependabot-nuget.gemspec
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ function parseUpdates(config: any): IDependabotUpdate[] {
switch (ecosystem) {
case 'devcontainer':
return 'devcontainers';
case 'dotnet-sdk':
return 'dotnet_sdk';
case 'github-actions':
return 'github_actions';
case 'gitsubmodule':
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ public void ConvertEcosystemToPackageManager_Works(string ecosystem, string expe

public static TheoryData<string, string> ConvertEcosystemToPackageManagerValues => new()
{
{ "dotnet-sdk", "dotnet_sdk" },
{ "github-actions", "github_actions" },
{ "gitsubmodule", "submodules" },
{ "gomod", "go_modules" },
Expand Down
1 change: 1 addition & 0 deletions server/Tingle.Dependabot/Workflow/UpdateRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,7 @@ internal static IList<Dictionary<string, string>> MakeExtraCredentials(ICollecti

return ecosystem switch
{
"dotnet-sdk" => "dotnet_sdk",
"github-actions" => "github_actions",
"gitsubmodule" => "submodules",
"gomod" => "go_modules",
Expand Down
1 change: 1 addition & 0 deletions updater/bin/update_script.rb
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@
# https://docs.github.com/en/github/administering-a-repository/configuration-options-for-dependency-updates#package-ecosystem
# [Hash<String, String>]
PACKAGE_ECOSYSTEM_MAPPING = {
"dotnet-sdk" => "dotnet_sdk",
"github-actions" => "github_actions",
"gitsubmodule" => "submodules",
"gomod" => "go_modules",
Expand Down
1 change: 1 addition & 0 deletions updater/lib/tinglesoftware/dependabot/job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ def _package_manager
# GitHub native implementation modifies some of the names in the config file
# https://docs.github.com/en/github/administering-a-repository/configuration-options-for-dependency-updates#package-ecosystem
{
"dotnet-sdk" => "dotnet_sdk",
"github-actions" => "github_actions",
"gitsubmodule" => "submodules",
"gomod" => "go_modules",
Expand Down

0 comments on commit 47ceffc

Please sign in to comment.