Skip to content

Commit

Permalink
Merge pull request #86 from salsadigitalauorg/feature/added-organizat…
Browse files Browse the repository at this point in the history
…ion-to-add-project

added organization in add_project
  • Loading branch information
rashed-k authored Jun 12, 2024
2 parents 5bdb35a + 7ceae66 commit 3822695
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions api/plugins/action/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def add_project(
name,
gitUrl,
productionEnvironment,
organization,
subfolder=None,
branches=None,
pullrequests=None,
Expand Down Expand Up @@ -97,6 +98,7 @@ def add_project(
$branches: String
$pullrequests: String
$openshift: Int!
$organization: Int!
$productionEnvironment: String!
$standbyProductionEnvironment: String
$autoIdle: Int
Expand All @@ -111,6 +113,7 @@ def add_project(
branches: $branches
pullrequests: $pullrequests
openshift: $openshift
organization: $organization
productionEnvironment: $productionEnvironment
standbyProductionEnvironment: $standbyProductionEnvironment
autoIdle: $autoIdle
Expand All @@ -128,6 +131,7 @@ def add_project(
"branches": branches,
"pullrequests": pullrequests,
"openshift": int(openshift),
"organization": int(organization),
"productionEnvironment": productionEnvironment,
"standbyProductionEnvironment": standbyProductionEnvironment,
"autoIdle": int(autoIdle),
Expand Down Expand Up @@ -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)
Expand All @@ -187,6 +192,7 @@ def run(self, tmp=None, task_vars=None):
name,
gitUrl,
productionEnvironment,
organization,
subfolder,
branches,
pullrequests,
Expand Down

0 comments on commit 3822695

Please sign in to comment.