Skip to content

Commit

Permalink
Map pnpm to npm_and_yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
mburumaxwell committed Nov 23, 2023
1 parent 1581353 commit 31478fe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class DependabotUpdateScheduleTests
[InlineData(DependabotScheduleInterval.Weekly, "10:00", DependabotScheduleDay.Saturday, "00 10 * * 6")]
[InlineData(DependabotScheduleInterval.Weekly, "15:00", null, "00 15 * * 1")] // defaults to Mondays
[InlineData(DependabotScheduleInterval.Monthly, "17:30", DependabotScheduleDay.Saturday, "30 17 1 * *")] // ignores day
public void GenerateCronSchedule_Works(DependabotScheduleInterval interval, string time, DependabotScheduleDay? day, string expected)
public void GenerateCronSchedule_Works(DependabotScheduleInterval interval, string? time, DependabotScheduleDay? day, string expected)
{
var schedule = new DependabotUpdateSchedule { Interval = interval, };
if (time != null) schedule.Time = TimeOnly.Parse(time);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -309,13 +309,13 @@ public void ConvertEcosystemToPackageManager_Works(string ecosystem, string expe
{ "mix", "hex" },
{ "npm", "npm_and_yarn" },
{ "yarn", "npm_and_yarn" },
{ "pnpm", "npm_and_yarn" },
{ "pipenv", "pip" },
{ "pip-compile", "pip" },
{ "poetry", "pip" },

// retained
{ "nuget", "nuget" },
{ "npm", "npm_and_yarn" },
{ "gradle", "gradle" },
{ "maven", "maven" },
{ "swift", "swift" },
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
"npm" => "npm_and_yarn",
// Additional ones
"yarn" => "npm_and_yarn",
"pnpm" => "npm_and_yarn",
"pipenv" => "pip",
"pip-compile" => "pip",
"poetry" => "pip",
Expand Down

0 comments on commit 31478fe

Please sign in to comment.