Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for dotnet-sdk package ecosystem #1455

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading