Skip to content

Commit

Permalink
Rename to Pipfile-diff
Browse files Browse the repository at this point in the history
  • Loading branch information
atwalsh committed Mar 28, 2021
1 parent a8707f8 commit 76551ab
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Pipenv diff
# Pipfile diff

Pull request comments for dependency changes in Pipfile.lock.

Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'Pipenv diff'
name: 'Pipfile diff'
description: 'Pull request comments for dependency changes in Pipfile.lock.'
author: 'atwalsh'
inputs:
Expand Down
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def generate_message(changed: dict, added: dict, removed: dict) -> str:
:param removed: Dict of changed dependencies from `get_removed_deps`.
:return: GitHub PR comment text.
"""
msg = '<!-- pipenv-diff -->\n\nDependency changes from `Pipfile.lock`:\n\n'
msg = '<!-- pipfile-diff -->\n\nDependency changes from `Pipfile.lock`:\n\n'
if changed:
txt = '\n'.join(sorted({f'{k} {v["base"]} => {v["head"]}' for k, v in changed.items()}))
msg += f'**Changed**\n```\n{txt.strip()}\n```\n'
Expand Down Expand Up @@ -108,7 +108,7 @@ def create_comment(message: str) -> None:
# Check for existing comment
existing_issue_id = None
for c in pull.get_issue_comments():
if c.body.startswith('<!-- pipenv-diff -->'):
if c.body.startswith('<!-- pipfile-diff -->'):
existing_issue_id = c.id
break

Expand Down

0 comments on commit 76551ab

Please sign in to comment.