Add addreleases command for batched release creation#27
Merged
Conversation
Reads a JSON array of releases from --infile (each shaped like the addrelease ReleaseInputProg input) and submits them in one batch via addReleasesProgrammatic. Artifacts reference local files via filePath; the CLI uploads them as multipart parts. The backend fires a single product auto-integrate per affected feature set for the whole batch. ReARM-Agentic-Session: batched-releases-1780084413 ReARM-Agent: 62df357e-a3a4-4df5-82d4-049e629d1c6b Co-Authored-By: Claude Opus 4 (1M context) <noreply@anthropic.com>
Adds Use Case 19 covering rearm addreleases --infile, the batch.json shape (per-release ReleaseInputProg objects with filePath artifacts), the single deduped product auto-integrate per feature set, and the batch flags. Appended at the end of the use-case list to avoid renumbering existing sections. ReARM-Agentic-Session: batched-releases-1780084413 ReARM-Agent: 62df357e-a3a4-4df5-82d4-049e629d1c6b Co-Authored-By: Claude Opus 4 (1M context) <noreply@anthropic.com>
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.
Summary
rearm addreleases --infile batch.json— submits multiple releases in one batch via the newaddReleasesProgrammaticmutation (rearm-saas#151).batch.jsonis a JSON array of release objects, each shaped exactly like the singleaddreleaseinput (ReleaseInputProg). Artifacts reference local files via theirfilePathfield; the CLI reads each file and uploads it as a multipart part — no bytes are embedded in the JSON.Implementation notes
processArtifactsInput/processSingleArtifactInputhelpers. Each release object is parsed as a map, and artifacts at the known locations (artifacts,sourceCodeEntry.artifacts,commits[].artifacts,outboundDeliverables[].artifacts) are processed with a per-release path prefixvariables.releaseInputsProg.<i>.…so the GraphQL multipartmaplinks each uploaded part to the right nested position.--stripbom(default true) is applied to every artifact in the batch, matchingaddrelease.Test plan
addreleases --infile batch.json --debugprints the expected operations/variables and file map.🤖 Generated with Claude Code