From 5e31ba327e15ba4025980058e6ad9ce450d02e1f Mon Sep 17 00:00:00 2001 From: MatanGevaPort Date: Sun, 19 May 2024 10:43:27 +0300 Subject: [PATCH] Added blueprint as label --- core/github_handler.py | 2 +- generators/github.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/github_handler.py b/core/github_handler.py index 9e095e9..d312d72 100644 --- a/core/github_handler.py +++ b/core/github_handler.py @@ -15,7 +15,7 @@ def issue_handler(self): if not self.entities: logger.info("No entities found, looking for left over open issues") issue_search_result = Github().search_issue_by_labels( - ["Port", self.scorecard.get("title", "")], + ["Port", self.scorecard.get("title", ""), settings.blueprint], settings.github_repository, state="open", ) diff --git a/generators/github.py b/generators/github.py index 7b60497..9519b8c 100644 --- a/generators/github.py +++ b/generators/github.py @@ -22,7 +22,7 @@ def generate_issue( f"\n> :bulb: **Tip:** Scorecards are a way for you and your team to define and track standards, metrics, and KPIs in different categories such as production readiness, quality, productivity, and more. For more information about your scorecards, go to [Port]({get_port_url(settings.port_region)})" "\n# Sub-Tasks" "\n" + "\n".join(tasks) + "\n", - "labels": ["Port", scorecard_title, level, entity["identifier"]], + "labels": ["Port", scorecard_title, level, blueprint, entity["identifier"]], } def generate_task(self, rule: dict[str, Any]):