dependabot-nuget 0.318.0 → 0.319.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4764151f3a4d4ff2f96bbcbe58423fb83b04a2f86fcddbda387816534f9166d9
|
4
|
+
data.tar.gz: c695c0d81c43bc373ed7a60edbf7e603946fd03a75ab98f8ccd428870fe5a77c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4d701e37d0628ba97b6ad0abd9c02b3a2b19a68df09d93f335dd185dd224fe58476c25fab4764df9fa80a8b72e43e297cb456f2ba3aeb474ba6bce5be993bd9
|
7
|
+
data.tar.gz: d609c852ed7a3298bb68d483d3acc526ea215b509e017361d6308a117ca0e09c9dc45f611130ac7221e02449b46c7971386b7cf376a77387f45c88aaa99a9eaa
|
@@ -168,6 +168,7 @@ public class CloneWorker
|
|
168
168
|
{
|
169
169
|
return job.Source.Provider switch
|
170
170
|
{
|
171
|
+
"azure" when !string.IsNullOrWhiteSpace(job.Source.Hostname) => $"https://{job.Source.Hostname}/{job.Source.Repo}",
|
171
172
|
"azure" => $"https://dev.azure.com/{job.Source.Repo}",
|
172
173
|
"github" => $"https://github.com/{job.Source.Repo}",
|
173
174
|
_ => throw new ArgumentException($"Unknown provider: {job.Source.Provider}")
|
@@ -10,6 +10,33 @@ public class CloneWorkerTests
|
|
10
10
|
{
|
11
11
|
private const string TestRepoPath = "TEST/REPO/PATH";
|
12
12
|
|
13
|
+
[Fact]
|
14
|
+
public void AdoCloneCommandsAreGenerated()
|
15
|
+
{
|
16
|
+
TestCommands(
|
17
|
+
provider: "azure",
|
18
|
+
repoMoniker: "OrganizationName/ProjectName/_git/RepositoryName",
|
19
|
+
expectedCommands:
|
20
|
+
[
|
21
|
+
(["clone", "--no-tags", "--depth", "1", "--recurse-submodules", "--shallow-submodules", "https://dev.azure.com/OrganizationName/ProjectName/_git/RepositoryName", TestRepoPath], null)
|
22
|
+
]
|
23
|
+
);
|
24
|
+
}
|
25
|
+
|
26
|
+
[Fact]
|
27
|
+
public void AdoOnPremCloneCommandsAreGenerated()
|
28
|
+
{
|
29
|
+
TestCommands(
|
30
|
+
provider: "azure",
|
31
|
+
hostname: "azure-onprem-url.domain.org",
|
32
|
+
repoMoniker: "CollectionName/ProjectName/_git/RepositoryName",
|
33
|
+
expectedCommands:
|
34
|
+
[
|
35
|
+
(["clone", "--no-tags", "--depth", "1", "--recurse-submodules", "--shallow-submodules", "https://azure-onprem-url.domain.org/CollectionName/ProjectName/_git/RepositoryName", TestRepoPath], null)
|
36
|
+
]
|
37
|
+
);
|
38
|
+
}
|
39
|
+
|
13
40
|
[Fact]
|
14
41
|
public void CloneCommandsAreGenerated()
|
15
42
|
{
|
@@ -172,13 +199,14 @@ public class CloneWorkerTests
|
|
172
199
|
}
|
173
200
|
}
|
174
201
|
|
175
|
-
private static void TestCommands(string provider, string repoMoniker, (string[] Args, string? WorkingDirectory)[] expectedCommands, string? branch = null, string? commit = null)
|
202
|
+
private static void TestCommands(string provider, string repoMoniker, (string[] Args, string? WorkingDirectory)[] expectedCommands, string? branch = null, string? commit = null, string? hostname = null)
|
176
203
|
{
|
177
204
|
var job = new Job()
|
178
205
|
{
|
179
206
|
Source = new()
|
180
207
|
{
|
181
208
|
Provider = provider,
|
209
|
+
Hostname = hostname,
|
182
210
|
Repo = repoMoniker,
|
183
211
|
Branch = branch,
|
184
212
|
Commit = commit,
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dependabot-nuget
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.319.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
@@ -15,14 +15,14 @@ dependencies:
|
|
15
15
|
requirements:
|
16
16
|
- - '='
|
17
17
|
- !ruby/object:Gem::Version
|
18
|
-
version: 0.
|
18
|
+
version: 0.319.0
|
19
19
|
type: :runtime
|
20
20
|
prerelease: false
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
22
22
|
requirements:
|
23
23
|
- - '='
|
24
24
|
- !ruby/object:Gem::Version
|
25
|
-
version: 0.
|
25
|
+
version: 0.319.0
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: rubyzip
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
@@ -580,7 +580,7 @@ licenses:
|
|
580
580
|
- MIT
|
581
581
|
metadata:
|
582
582
|
bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
|
583
|
-
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.
|
583
|
+
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.319.0
|
584
584
|
rdoc_options: []
|
585
585
|
require_paths:
|
586
586
|
- lib
|