Skip to content

Commit

Permalink
Merge branch 'add-bb-commands' into bitbucket/add-forecast-command
Browse files Browse the repository at this point in the history
  • Loading branch information
j-dunham committed Sep 11, 2023
2 parents 62198f9 + c1272eb commit bcd91e4
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 21 deletions.
2 changes: 1 addition & 1 deletion docs/jenkins/SCPPublish.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
scp scp_transfer.tar 127.0.0.1:
ssh 127.0.0.1 'tar -xvf scp_transfer.tar -C /results && rm scp_transfer.tar'
```
### Unsupported Options
- Keeps Hierarchy (currrently always keeps folder structure)
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

<ItemGroup>
<PackageReference Include="JUnitTestLogger" Version="1.1.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.0" />
<PackageReference Include="Moq" Version="4.18.4" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
<PackageReference Include="Moq" Version="4.20.69" />
<PackageReference Include="NUnit" Version="3.13.3" />
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0" />
<PackageReference Include="coverlet.collector" Version="6.0.0">
Expand Down
1 change: 0 additions & 1 deletion src/ActionsImporter/Commands/Bitbucket/Audit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ public Audit(string[] args) : base(args)
protected override string Name => "bitbucket";
protected override string Description => "An audit will output a list of data used in a Bitbucket instance.";
protected override ImmutableArray<Option> Options => ImmutableArray.Create<Option>(
Common.InstanceUrl,
Common.AccessToken,
Common.Workspace,
Common.Project,
Expand Down
19 changes: 4 additions & 15 deletions src/ActionsImporter/Commands/Bitbucket/Common.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,38 +4,27 @@ namespace ActionsImporter.Commands.Bitbucket;

public static class Common
{
public static readonly Option<string> InstanceUrl = new("--bitbucket-instance-url")
{
Description = "The URL of the Bitbucket instance.",
IsRequired = false,
};

public static readonly Option<string[]> Namespace = new(new[] { "--namespace", "-n" })
{
Description = "The Bitbucket namespace(s).",
IsRequired = false,
AllowMultipleArgumentsPerToken = true
};

public static readonly Option<string> AccessToken = new("--bitbucket-access-token")
{
Description = "Access token for the Bitbucket instance.",
IsRequired = false,
};

public static readonly Option<string> Workspace = new("--workspace")
public static readonly Option<string> Workspace = new(new[] { "--workspace", "-w" })
{
Description = "The Bitbucket workspace name.",
IsRequired = true,
};

public static readonly Option<string> Project = new("--project")
public static readonly Option<string> Project = new(new[] { "--project-key", "-p" })
{
Description = "The Bitbucket project name.",
Description = "The Bitbucket project key.",
IsRequired = false,
};

public static readonly Option<string> Repository = new("--repository")
public static readonly Option<string> Repository = new(new[] { "--repository", "-r" })
{
Description = "The Bitbucket repository name.",
IsRequired = true,
Expand Down
1 change: 0 additions & 1 deletion src/ActionsImporter/Commands/Bitbucket/DryRun.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ public DryRun(string[] args) : base(args)
protected override ImmutableArray<Option> Options => ImmutableArray.Create<Option>(
Common.Workspace,
Common.Repository,
Common.InstanceUrl,
Common.AccessToken,
Common.SourceFilePath,
Common.ConfigFilePath
Expand Down
1 change: 0 additions & 1 deletion src/ActionsImporter/Commands/Bitbucket/Migrate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ public Migrate(string[] args) : base(args)
protected override ImmutableArray<Option> Options => ImmutableArray.Create<Option>(
Common.Workspace,
Common.Repository,
Common.InstanceUrl,
Common.AccessToken,
Common.SourceFilePath,
Common.ConfigFilePath
Expand Down

1 comment on commit bcd91e4

@islamdinibilimmerkezi
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.