From 7ceae66c5b7122570ef2183f417a62b72ccb61c3 Mon Sep 17 00:00:00 2001 From: rashed-k Date: Tue, 11 Jun 2024 16:53:45 +1000 Subject: [PATCH] added organization in add_project --- api/plugins/action/project.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/api/plugins/action/project.py b/api/plugins/action/project.py index 1944d7d..2657109 100644 --- a/api/plugins/action/project.py +++ b/api/plugins/action/project.py @@ -55,6 +55,7 @@ def add_project( name, gitUrl, productionEnvironment, + organization, subfolder=None, branches=None, pullrequests=None, @@ -97,6 +98,7 @@ def add_project( $branches: String $pullrequests: String $openshift: Int! + $organization: Int! $productionEnvironment: String! $standbyProductionEnvironment: String $autoIdle: Int @@ -111,6 +113,7 @@ def add_project( branches: $branches pullrequests: $pullrequests openshift: $openshift + organization: $organization productionEnvironment: $productionEnvironment standbyProductionEnvironment: $standbyProductionEnvironment autoIdle: $autoIdle @@ -128,6 +131,7 @@ def add_project( "branches": branches, "pullrequests": pullrequests, "openshift": int(openshift), + "organization": int(organization), "productionEnvironment": productionEnvironment, "standbyProductionEnvironment": standbyProductionEnvironment, "autoIdle": int(autoIdle), @@ -164,6 +168,7 @@ def run(self, tmp=None, task_vars=None): branches = self._task.args.get("branches") pullrequests = self._task.args.get("pullrequests") openshift = self._task.args.get("openshift") + organization = self._task.args.get("organization") productionEnvironment = self._task.args.get("production_environment") standbyProductionEnvironment = self._task.args.get("standby_production_environment") autoIdle = self._task.args.get("auto_idle", True) @@ -187,6 +192,7 @@ def run(self, tmp=None, task_vars=None): name, gitUrl, productionEnvironment, + organization, subfolder, branches, pullrequests,