From b81b18f2cfa302df2ffca0a07e02d1f4ae7c3c54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pep=20Turr=C3=B3=20Mauri?= Date: Tue, 20 Sep 2022 13:19:14 +0200 Subject: [PATCH] Format package names in GitHub issues MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pep TurrĂ³ Mauri --- .../managers/pipfile_requirements/pipfile_requirements.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kebechet/managers/pipfile_requirements/pipfile_requirements.py b/kebechet/managers/pipfile_requirements/pipfile_requirements.py index 19fb9766..a88d4188 100644 --- a/kebechet/managers/pipfile_requirements/pipfile_requirements.py +++ b/kebechet/managers/pipfile_requirements/pipfile_requirements.py @@ -46,8 +46,8 @@ def get_pipfile_requirements(self, content_str: str) -> typing.Set[str]: isinstance(entry, dict) and "version" not in entry ): # e.g. using git, ... - issue_title = f"No pinned version for {package_name}" - body = f"Package {package_name} does not use pinned version in Pipfile: {entry}" + issue_title = f"No pinned version for package {package_name}" + body = f"Package `{package_name}` does not use pinned version in Pipfile:\n```json\n{entry}\n```" if self.get_issue_by_title(issue_title) is None: self.project.create_issue( title=issue_title, @@ -68,8 +68,8 @@ def get_pipfile_lock_requirements(self, content_str: str) -> typing.Set[str]: for package_name, package_version in content.items(): if not isinstance(package_version, str): # e.g. using git, ... - issue_title = f"Unsupported version entry for {package_name}" - body = f"Unsupported version entry for {package_name} in Pipfile.lock: {package_version}" + issue_title = f"Unsupported version entry for package {package_name}" + body = f"Unsupported version entry for package `{package_name}` in Pipfile.lock: {package_version}" if self.get_issue_by_title(issue_title) is None: self.project.create_issue( title=issue_title,