Skip to content

Commit

Permalink
Merge pull request Mergifyio#107 from sileht/useless-update
Browse files Browse the repository at this point in the history
Pull request for useless-update
  • Loading branch information
mergify[bot] authored Apr 2, 2020
2 parents 849151c + 92bb0e2 commit 33aa192
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion git_pull_request/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,9 @@ def fork_and_push_pull_request(
LOG.critical("Pull-request message is empty, aborting")
return 40

if ptitle and body:
if ptitle == pull.title and body == pull.body:
LOG.debug("Pull-request title and body is already up to date")
elif ptitle and body:
if dry_run:
LOG.info("Would edit title and body")
LOG.info("%s\n", ptitle)
Expand Down

0 comments on commit 33aa192

Please sign in to comment.