File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,8 @@ def to_user(self):
31
31
json = self ._json (self ._get (url ), 200 )
32
32
return self ._instance_or_null (users .User , json )
33
33
34
+ refresh = to_user
35
+
34
36
35
37
class EventOrganization (GitHubCore ):
36
38
"""The class that represents the org information returned in Events."""
@@ -49,6 +51,8 @@ def to_org(self):
49
51
json = self ._json (self ._get (url ), 200 )
50
52
return self ._instance_or_null (orgs .Organization , json )
51
53
54
+ refresh = to_org
55
+
52
56
53
57
class EventPullRequest (GitHubCore ):
54
58
"""The class that represents the pr information returned in Events."""
@@ -67,6 +71,8 @@ def to_pull(self):
67
71
json = self ._json (self ._get (self .url ), 200 )
68
72
return self ._instance_or_null (pulls .PullRequest , json )
69
73
74
+ refresh = to_pull
75
+
70
76
71
77
class EventIssue (GitHubCore ):
72
78
"""The class that represents the issue information returned in Events."""
@@ -85,6 +91,8 @@ def to_issue(self):
85
91
json = self ._json (self ._get (self .url ), 200 )
86
92
return self ._instance_or_null (issues .Issue , json )
87
93
94
+ refresh = to_issue
95
+
88
96
89
97
class Event (GitHubCore ):
90
98
You can’t perform that action at this time.
0 commit comments