From 316c5b7f0a60e9a0be23c88ba661d4979a045223 Mon Sep 17 00:00:00 2001 From: unknown Date: Sun, 22 Dec 2024 16:29:11 +0330 Subject: [PATCH] feat: added new params --- .../configs/resource_type_configs.go | 54 ++++++++++++++++++- 1 file changed, 52 insertions(+), 2 deletions(-) diff --git a/services/integration/integration-type/github-account/configs/resource_type_configs.go b/services/integration/integration-type/github-account/configs/resource_type_configs.go index 8cc8811ce..f114d0cc0 100644 --- a/services/integration/integration-type/github-account/configs/resource_type_configs.go +++ b/services/integration/integration-type/github-account/configs/resource_type_configs.go @@ -7,7 +7,13 @@ var ResourceTypeConfigs = map[string]*interfaces.ResourceTypeConfiguration{ Name: "Github/Container/Package", IntegrationType: IntegrationTypeGithubAccount, Description: "", - Params: []interfaces.Param{}, + Params: []interfaces.Param{ + { + Name: "organization", + Description: `Please provide the organization name`, + Required: false, + }, + }, }, "Github/Repository": { Name: "Github/Repository", @@ -15,10 +21,54 @@ var ResourceTypeConfigs = map[string]*interfaces.ResourceTypeConfiguration{ Description: "", Params: []interfaces.Param{ { - Name: "repository_name", + Name: "repository", + Description: `Please provide the repo name (i.e. "internal-tools")`, + Required: false, + }, + { + Name: "organization", + Description: `Please provide the organization name`, + Required: false, + }, + }, + }, + "Github/Artifact/DockerFile": { + Name: "Github/Artifact/DockerFile", + IntegrationType: IntegrationTypeGithubAccount, + Description: "", + Params: []interfaces.Param{ + { + Name: "repository", Description: `Please provide the repo name (i.e. "internal-tools")`, Required: false, }, + { + Name: "organization", + Description: `Please provide the organization name`, + Required: false, + }, + }, + }, + "Github/Actions/WorkflowRun": { + Name: "Github/Actions/WorkflowRun", + IntegrationType: IntegrationTypeGithubAccount, + Description: "", + Params: []interfaces.Param{ + { + Name: "repository", + Description: `Please provide the repo name (i.e. "internal-tools")`, + Required: false, + }, + { + Name: "organization", + Description: `Please provide the organization name`, + Required: false, + }, + { + Name: "run_number", + Description: `Please provide the run number`, + Required: false, + }, }, }, }