diff --git a/RELEASENOTES.md b/RELEASENOTES.md index de8c43af6..5aac2ed3b 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -1,2 +1,3 @@ - __BREAKING CHANGE__: Drop deprecated `--wait` option for `migrate-repo` and `migrate-org` commands +- Allow Enterprise Managed Users (EMU) organizations to skip the invitation process in the `reclaim-mannequin` command with the `--skip-invitation` option - Fix target repo existence check in GitHub Enterprise Server migrations so it doesn't error if the target repo used to exist, but has been renamed diff --git a/src/Octoshift/Commands/ReclaimMannequin/ReclaimMannequinCommandBase.cs b/src/Octoshift/Commands/ReclaimMannequin/ReclaimMannequinCommandBase.cs index acaae470b..a7ec05227 100644 --- a/src/Octoshift/Commands/ReclaimMannequin/ReclaimMannequinCommandBase.cs +++ b/src/Octoshift/Commands/ReclaimMannequin/ReclaimMannequinCommandBase.cs @@ -64,8 +64,7 @@ public ReclaimMannequinCommandBase() : base( public virtual Option SkipInvitation { get; } = new("--skip-invitation") { - IsHidden = true, - Description = "Reclaim mannequins immediately without sending an invitation to the user. Warning: this is irreversible! This feature is currently in development, and is not ready for sure. When it launches, it will only be supported for selected Enterprise Managed Users (EMU) organizations." + Description = "Reclaim mannequins immediately without sending an invitation to the user. Only available for Enterprise Managed Users (EMU) organizations. Warning: this is irreversible!" }; public virtual Option Verbose { get; } = new("--verbose"); diff --git a/src/OctoshiftCLI.Tests/ado2gh/Commands/ReclaimMannequin/ReclaimMannequinCommandTests.cs b/src/OctoshiftCLI.Tests/ado2gh/Commands/ReclaimMannequin/ReclaimMannequinCommandTests.cs index ff9e2f223..e190ae424 100644 --- a/src/OctoshiftCLI.Tests/ado2gh/Commands/ReclaimMannequin/ReclaimMannequinCommandTests.cs +++ b/src/OctoshiftCLI.Tests/ado2gh/Commands/ReclaimMannequin/ReclaimMannequinCommandTests.cs @@ -21,7 +21,7 @@ public void Should_Have_Options() TestHelpers.VerifyCommandOption(command.Options, "force", false); TestHelpers.VerifyCommandOption(command.Options, "no-prompt", false); TestHelpers.VerifyCommandOption(command.Options, "github-pat", false); - TestHelpers.VerifyCommandOption(command.Options, "skip-invitation", false, true); + TestHelpers.VerifyCommandOption(command.Options, "skip-invitation", false); TestHelpers.VerifyCommandOption(command.Options, "verbose", false); } } diff --git a/src/OctoshiftCLI.Tests/bbs2gh/Commands/ReclaimMannequin/ReclaimMannequinCommandTests.cs b/src/OctoshiftCLI.Tests/bbs2gh/Commands/ReclaimMannequin/ReclaimMannequinCommandTests.cs index 1372ad6b4..9b60cca06 100644 --- a/src/OctoshiftCLI.Tests/bbs2gh/Commands/ReclaimMannequin/ReclaimMannequinCommandTests.cs +++ b/src/OctoshiftCLI.Tests/bbs2gh/Commands/ReclaimMannequin/ReclaimMannequinCommandTests.cs @@ -21,7 +21,7 @@ public void Should_Have_Options() TestHelpers.VerifyCommandOption(command.Options, "force", false); TestHelpers.VerifyCommandOption(command.Options, "no-prompt", false); TestHelpers.VerifyCommandOption(command.Options, "github-pat", false); - TestHelpers.VerifyCommandOption(command.Options, "skip-invitation", false, true); + TestHelpers.VerifyCommandOption(command.Options, "skip-invitation", false); TestHelpers.VerifyCommandOption(command.Options, "verbose", false); } } diff --git a/src/OctoshiftCLI.Tests/gei/Commands/ReclaimMannequin/ReclaimMannequinCommandTests.cs b/src/OctoshiftCLI.Tests/gei/Commands/ReclaimMannequin/ReclaimMannequinCommandTests.cs index 49a37be39..e883ff3d1 100644 --- a/src/OctoshiftCLI.Tests/gei/Commands/ReclaimMannequin/ReclaimMannequinCommandTests.cs +++ b/src/OctoshiftCLI.Tests/gei/Commands/ReclaimMannequin/ReclaimMannequinCommandTests.cs @@ -21,7 +21,7 @@ public void Should_Have_Options() TestHelpers.VerifyCommandOption(command.Options, "force", false); TestHelpers.VerifyCommandOption(command.Options, "no-prompt", false); TestHelpers.VerifyCommandOption(command.Options, "github-target-pat", false); - TestHelpers.VerifyCommandOption(command.Options, "skip-invitation", false, true); + TestHelpers.VerifyCommandOption(command.Options, "skip-invitation", false); TestHelpers.VerifyCommandOption(command.Options, "verbose", false); } }