Skip to content

Commit

Permalink
Add support for dotnet-sdk package ecosystem (#1455)
Browse files Browse the repository at this point in the history
* Add support for dotnet-sdk package ecosystem

* Do not update Rakefile

---------

Co-authored-by: Maxwell Weru <[email protected]>
  • Loading branch information
rhyskoedijk and mburumaxwell authored Nov 18, 2024
1 parent 23bebc8 commit 3978a67
Show file tree
Hide file tree
Showing 7 changed files with 8 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
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 3978a67

Please sign in to comment.