Skip to content

Commit

Permalink
Update ado2gh lock-repo documentation to clarify required scopes fo…
Browse files Browse the repository at this point in the history
…r yout ADO PAT
  • Loading branch information
timrogers committed Jan 12, 2024
1 parent 2e24a3e commit 7dd8a72
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions RELEASENOTES.md
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
- Update `bbs2gh inventory-report` help text to document that personal repositories owned by users are not supported
- Update `ado2gh lock-repo` help text to document the scopes required for your Azure DevOps personal access token
5 changes: 4 additions & 1 deletion src/ado2gh/Commands/LockRepo/LockRepoCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ public LockRepoCommand() : base(
{
IsRequired = true
};
public Option<string> AdoPat { get; } = new("--ado-pat");
public Option<string> AdoPat { get; } = new("--ado-pat")
{
Description = "An Azure DevOps personal access token with the 'Identity -> Read' and 'Security -> Manage' scopes."
};
public Option<bool> Verbose { get; } = new("--verbose");

public override LockRepoCommandHandler BuildHandler(LockRepoCommandArgs args, IServiceProvider sp)
Expand Down

0 comments on commit 7dd8a72

Please sign in to comment.