Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
SF
Browse files Browse the repository at this point in the history
  • Loading branch information
brianchandotcom committed Jan 6, 2021
1 parent bf23e2e commit c517c3f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions git-pull-request/git-pull-request.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
# Set the indent character(s) used to indent the description
"description-indent": " ",
# Limit the number of lines from the description of the pull
"description-line-limit": 10,
"description-line-limit": 1,
# Set to true to remove the newlines from the description of the pull
# (this will format it as it used to)
"description-strip-newlines": False,
Expand Down Expand Up @@ -1074,10 +1074,10 @@ def display_pull_request(pull_request):
pr_body = pr_body.splitlines()
pr_body = pr_body[:options["description-line-limit"]]
pr_body = "\n".join(pr_body)
pr_body += "..."
#pr_body += "..."

if ((options["description-char-limit"] >= 0) and (len(pr_body) > options["description-char-limit"])):
pr_body = pr_body[:options["description-char-limit"]] + '...'
pr_body = pr_body[:options["description-char-limit"]] # + '...'

print pr_body

Expand Down

0 comments on commit c517c3f

Please sign in to comment.