feat(boards): ✨ Implement azdo boards work-item create command - #329
Merged
Conversation
…and open Adds description resolution (inline, file, editor) with markdown/html format normalization, moves path and tag validation out of the list command into shared helpers, and adds a shared browser open helper.
Covers description resolution, editor handling, format normalization, path normalization, tag validation, and the open helper.
Implements create with inline, file, and editor description sources, --description-format, links, custom fields, tags, area and iteration paths, and JSON export; registers the command under boards work-item. Fixes #203.
Covers description sources and precedence, the format flag, custom fields, validation, and JSON output.
…m update Adds the --description-format flag, normalizes area and iteration paths, rejects empty patch documents, guards against empty server responses, and switches repeatable flags to StringArray semantics.
Covers the format flag, the empty patch guard, path normalization, and flag validation.
The Delete Work Item API returns 204 No Content with an empty body on success, which the SDK surfaces as a JSON decode error; such errors are now treated as a successful deletion.
Covers success, typed API errors, and the empty 204 response path.
Rejects a non-positive --limit, stops hard-coding process-defined classification and priority values, delegates tag and path validation to the shared helpers, and switches --tag to StringArray semantics.
Covers the limit guard, shared validators, and updated flag semantics.
Regenerated documentation for the new create command, the --description-format flag, and updated list flags.
…difications Add optional body parameter support and implement a retry loop (up to 5 attempts) that detects files modified by pre-commit hooks, re-stages them, and retries the commit. Introduce changed_files helper and final working tree validation to ensure no leftover uncommitted changes remain.
azdo boards work-item create command
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.
Closes #203
Summary
Implements the
azdo boards work-item createcommand (sub-issue of #138, sibling of #136). Routes through the vendored Azure DevOps Go SDK (Work Items - Create, REST 7.1) and mirrors the ergonomics ofaz boards work-item create.Changes
Features
azdo boards work-item create— creates a work item in a project via the SDK with JSON Patch body (addops on/fields/...)--description-formatflag (HTML/Markdown) with patch guards forSystem.Description; update command hardened with shared validatorsFixes
listoption validation and share validatorsTests
SplitUnderPrefix, description/path handling)Chores
disable-line,ignore-next-line,off/on,ignore-file) and migrate exclusions to inline markersVerification
make lintcleango test ./...: 2148 passed / 172 packagesmake docsregenerated; docs byte-stabletyposrepo-wide clean (baseline findings only)Notes
[ORG:]PROJECTwith default-organization fallback--json/--jq/--templateoutput viautil.AddJSONFlags--yessupported)