8000 Store number of additions and deletions on a Pull Request · davidmoss/github3.py@5b0f802 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5b0f802

Browse files
author
Alejandro Gómez
committed
Store number of additions and deletions on a Pull Request
1 parent d0cedef commit 5b0f802

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

github3/pulls.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ def __init__(self, pull, session=None):
8181
self.body_html = pull.get('body_html', '')
8282
#: Body of the pull request as plain text
8383
self.body_text = pull.get('body_text', '')
84+
#: Number of additions on this pull request
85+
self.additions = pull.get('additions')
86+
#: Number of deletions on this pull request
87+
self.deletions = pull.get('deletions')
8488

8589
# If the pull request has been closed
8690
#: datetime object representing when the pull was closed

0 commit comments

Comments
 (0)
0