airgen-cli 0.19.0 → 0.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -199,8 +199,8 @@ export function registerRequirementCommands(program, client) {
|
|
|
199
199
|
if (opts.section)
|
|
200
200
|
body.sectionId = opts.section;
|
|
201
201
|
if (opts.addTags || opts.removeTags) {
|
|
202
|
-
// Read-modify-write for add/remove tags
|
|
203
|
-
const existing = await client.get(`/requirements/${tenant}/${project}/${
|
|
202
|
+
// Read-modify-write for add/remove tags — use original ref for GET (resolvedId may be composite)
|
|
203
|
+
const existing = await client.get(`/requirements/${tenant}/${project}/${encodeURIComponent(id)}`);
|
|
204
204
|
let currentTags = existing.record?.tags ?? [];
|
|
205
205
|
if (opts.addTags) {
|
|
206
206
|
const toAdd = opts.addTags.split(",").map(t => t.trim());
|