Skip to content

Commit

Permalink
Merge pull request #1141 from codificat/format-pkg-name
Browse files Browse the repository at this point in the history
Format package names in GitHub issues
  • Loading branch information
sesheta authored Oct 17, 2022
2 parents 74fa6b8 + b81b18f commit 285c57c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 285c57c

Please sign in to comment.