Repository navigation
ADO Lens 0.12.0 - #29
Merged
Merged
Conversation
Comments can be fixed and removed, and any change can be undone.
- `ado_comment edit=<comment id>` replaces a comment's text (markdown and `@[name]` mentions as when adding);
`edit=last` takes your own latest comment on the item - fixing what was just written without looking for its id.
The old text goes into the audit log, so `ado_undo` puts it back (unless someone changed the comment since).
- `ado_comment delete=<comment id>`: a preview first (author, date, start of the text), then `confirm=<token>`;
`ado_undo` adds the text back as a new comment (Azure DevOps gives it a new id and today's date). Only the author can
change or delete a comment in Azure DevOps; the error says so.
- `ado_work_item include=comments` shows each comment's id (`[comment 123]`).
- `ado_undo item=<n>` reverts change n of the numbered `list=true`, `id=<work item>` the latest change on that item;
the preview names later changes on the same items. A confirm token always reverts what its preview showed.
- Fixed: a DELETE answered with an empty body (204) was reported as a failure ("The input does not contain any JSON
tokens") although it had worked - e.g. `ado_undo` of a comment. Every empty answer is now a success.
- CLI: `adolens comment <id> <text> --edit <id>|last`, `--delete <id> --confirm <token>`; `adolens undo --item <n> --id <work item>`.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Comments can be fixed and removed, and any change can be undone.
ado_comment edit=<comment id>replaces a comment's text (markdown and@[name]mentions as when adding);edit=lasttakes your own latest comment on the item - fixing what was just written without looking for its id.The old text goes into the audit log, so
ado_undoputs it back (unless someone changed the comment since).ado_comment delete=<comment id>: a preview first (author, date, start of the text), thenconfirm=<token>;ado_undoadds the text back as a new comment (Azure DevOps gives it a new id and today's date). Only the author canchange or delete a comment in Azure DevOps; the error says so.
ado_work_item include=commentsshows each comment's id ([comment 123]).ado_undo item=<n>reverts change n of the numberedlist=true,id=<work item>the latest change on that item;the preview names later changes on the same items. A confirm token always reverts what its preview showed.
tokens") although it had worked - e.g.
ado_undoof a comment. Every empty answer is now a success.adolens comment <id> <text> --edit <id>|last,--delete <id> --confirm <token>;adolens undo --item <n> --id <work item>.