From 9b2b4926388aa285255e676b7efcd7ceaf7277e8 Mon Sep 17 00:00:00 2001 From: Naman-Nirwan Date: Mon, 21 Sep 2026 16:48:47 +0530 Subject: [PATCH] fixed issue#211 added the remote git support --- pkg/spec/pipeline.spec.yaml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/pkg/spec/pipeline.spec.yaml b/pkg/spec/pipeline.spec.yaml index 55199b2..5805ca7 100644 --- a/pkg/spec/pipeline.spec.yaml +++ b/pkg/spec/pipeline.spec.yaml @@ -1023,10 +1023,21 @@ commands: - command: create input_set verb: create noun: input_set - short: Create an input set for a pipeline (-f input-set.yaml) + short: "Create an input set: inline from YAML (-f input-set.yaml) or Git-backed (--connector, --repo, --file-path)" requires_id: true + id_label: "" completion_noun: pipeline handler_type: endpoint + flags: + - name: connector + description: Git connector reference ID (remote only) + - name: repo + description: Git repository name (remote only) + - name: branch + default: main + description: Branch (remote only) + - name: file-path + description: Path to the input set YAML in the repo, e.g. .harness/pr_input_set.yaml (remote only) endpoint: method: POST path: /pipeline/api/inputSets @@ -1036,6 +1047,11 @@ commands: text_header: "\nCreated input set in pipeline {{ctx.id}}\n" query_params: pipelineIdentifier: ctx.id + storeType: 'flags.repo != "" ? "REMOTE" : ""' + connectorRef: flags.connector + repoName: flags.repo + branch: flags.branch + filePath: flags["file-path"] - command: update input_set verb: update