Skip to content

Commit 6025a95

Browse files
authored
Merge pull request #1207 from github/timrogers/ado2gh-lock-repo-scopes
Update `ado2gh lock-repo` documentation to clarify required scopes fo…
2 parents 2e24a3e + 7dd8a72 commit 6025a95

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

RELEASENOTES.md

+1
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

+4-1
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)