Skip to content

Commit 76551ab

Browse files
committedMar 28, 2021
Rename to Pipfile-diff
1 parent a8707f8 commit 76551ab

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed
 

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Pipenv diff
1+
# Pipfile diff
22

33
Pull request comments for dependency changes in Pipfile.lock.
44

‎action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: 'Pipenv diff'
1+
name: 'Pipfile diff'
22
description: 'Pull request comments for dependency changes in Pipfile.lock.'
33
author: 'atwalsh'
44
inputs:

‎main.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def generate_message(changed: dict, added: dict, removed: dict) -> str:
7575
:param removed: Dict of changed dependencies from `get_removed_deps`.
7676
:return: GitHub PR comment text.
7777
"""
78-
msg = '<!-- pipenv-diff -->\n\nDependency changes from `Pipfile.lock`:\n\n'
78+
msg = '<!-- pipfile-diff -->\n\nDependency changes from `Pipfile.lock`:\n\n'
7979
if changed:
8080
txt = '\n'.join(sorted({f'{k} {v["base"]} => {v["head"]}' for k, v in changed.items()}))
8181
msg += f'**Changed**\n```\n{txt.strip()}\n```\n'
@@ -108,7 +108,7 @@ def create_comment(message: str) -> None:
108108
# Check for existing comment
109109
existing_issue_id = None
110110
for c in pull.get_issue_comments():
111-
if c.body.startswith('<!-- pipenv-diff -->'):
111+
if c.body.startswith('<!-- pipfile-diff -->'):
112112
existing_issue_id = c.id
113113
break
114114

0 commit comments

Comments
 (0)
Please sign in to comment.