File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,10 @@ class App(models.GitHubCore):
80
80
https://developer.github.com/v3/apps/
81
81
"""
82
82
83
+ CUSTOM_HEADERS = {
84
+ "Accept" : "application/vnd.github.machine-man-preview+json"
85
+ }
86
+
83
87
def _update_attributes (self , json ):
84
88
self .created_at = self ._strptime (json ["created_at" ])
85
89
self .description = json ["description" ]
@@ -90,6 +94,8 @@ def _update_attributes(self, json):
90
94
self .node_id = json ["node_id" ]
91
95
self .owner = users .ShortUser (json ["owner" ], self )
92
96
self .updated_at = self ._strptime (json ["updated_at" ])
97
+ _ , slug = json ["html_url" ].rsplit ("/" , 1 )
98
+ self ._api = self .url = self ._build_url ("apps" , slug )
93
99
94
100
def _repr (self ):
95
101
return '<App ["{}" by {}]>' .format (self .name , str (self .owner ))
You can’t perform that action at this time.
0 commit comments