8000 Merge pull request #385 from adrianmoisey/add_missing_issue_events · jmatt/github3.py@4626027 · GitHub
[go: up one dir, main page]

Skip to content 8000

Commit 4626027

Browse files
committed
Merge pull request sigmavirus24#385 from adrianmoisey/add_missing_issue_events
Add missing issue events
2 parents cddf376 + 1bdb5e5 commit 4626027

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

github3/issues/event.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,23 @@ def _update_attributes(self, event):
5757
#: Dictionary of links for the pull request
5858
self.pull_request = event.get('pull_request', {})
5959

60+
#: Dictionary containing label details
61+
self.label = event.get('label', {})
62+
63+
#: The integer ID of the event
64+
self.id = event.get('id')
65+
66+
#: :class:`User <github3.users.User>` that is assigned
67+
self.assignee = event.get('assignee')
68+
if self.assignee:
69+
self.assignee = User(self.assignee, self._session)
70+
71+
#: Dictionary containing milestone details
72+
self.milestone = event.get('milestone', {})
73+
74+
#: Dictionary containing to and from attributes
75+
self.rename = event.get('rename', {})
76+
6077
self._uniq = self.commit_id
6178

6279
def _repr(self):

0 commit comments

Comments
 (0)
0