Skip to content

Commit 7dd8a72

Browse files
committed
Update ado2gh lock-repo documentation to clarify required scopes for yout ADO PAT
1 parent 2e24a3e commit 7dd8a72

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

RELEASENOTES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
- Update `bbs2gh inventory-report` help text to document that personal repositories owned by users are not supported
2+
- Update `ado2gh lock-repo` help text to document the scopes required for your Azure DevOps personal access token

src/ado2gh/Commands/LockRepo/LockRepoCommand.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ public LockRepoCommand() : base(
3434
{
3535
IsRequired = true
3636
};
37-
public Option<string> AdoPat { get; } = new("--ado-pat");
37+
public Option<string> AdoPat { get; } = new("--ado-pat")
38+
{
39+
Description = "An Azure DevOps personal access token with the 'Identity -> Read' and 'Security -> Manage' scopes."
40+
};
3841
public Option<bool> Verbose { get; } = new("--verbose");
3942

4043
public override LockRepoCommandHandler BuildHandler(LockRepoCommandArgs args, IServiceProvider sp)

0 commit comments

Comments
 (0)