@@ -9,6 +9,7 @@ from typing import (
9
9
)
10
10
11
11
from . import auths
12
+ from . import decorators
12
13
from . import events
13
14
from . import models
14
15
from . import orgs
@@ -30,6 +31,7 @@ class GitHub(models.GitHubCore):
30
31
) -> None :
31
32
...
32
33
34
+ @decorators .requires_auth
33
35
def add_email_addresses (
34
36
self : T ,
35
37
addresses : List [str ]= [],
@@ -70,6 +72,7 @@ class GitHub(models.GitHubCore):
70
72
) -> structs .GitHubIterator [users .ShortUser ]:
71
73
...
72
74
75
+ @decorators .requires_basic_auth
73
76
def authorization (
74
77
self : T ,
75
78
id_num : Union [int , str ],
@@ -109,6 +112,7 @@ class GitHub(models.GitHubCore):
109
112
) -> gist .Gist :
110
113
...
111
114
115
+ @decorators .requires_auth
112
116
def create_issue (
113
117
self : T ,
114
118
owner : str ,
@@ -122,6 +126,7 @@ class GitHub(models.GitHubCore):
122
126
) -> issue .ShortIssue :
123
127
...
124
128
129
+ @decorators .requires_auth
125
130
def create_key (
126
131
self : T ,
127
132
title : str ,
@@ -130,6 +135,7 @@ class GitHub(models.GitHubCore):
130
135
) -> users .Key :
131
136
...
132
137
138
+ @decorators .requires_auth
133
139
def create_repository (
134
140
self : T ,
135
141
name : str ,
@@ -143,12 +149,14 @@ class GitHub(models.GitHubCore):
143
149
) -> repo .Repository :
144
150
...
145
151
152
+ @decorators .requires_auth
146
153
def delete_email_addresses (
147
154
self : T ,
148
155
addresses : List [str ],
149
156
) -> bool :
150
157
...
151
158
159
+ @decorators .requires_auth
152
160
def emails (
153
161
self : T ,
154
162
number : int = - 1 ,
@@ -162,6 +170,7 @@ class GitHub(models.GitHubCore):
162
170
def feeds (self : T ) -> Dict [str , Any ]:
163
171
...
164
172
173
+ @decorators .requires_auth
165
174
def follow (
166
175
self : T ,
167
176
username : str
@@ -175,3 +184,49 @@ class GitHub(models.GitHubCore):
175
184
etag : Optional [str ]= None ,
176
185
) -> structs .GitHubIterator [users .ShortUser ]:
177
186
...
187
+
188
+ @decorators .requires_auth
189
+ def followers (
190
+ self : T ,
191
+ number : int = - 1 ,
192
+ etag : Optional [str ]= None ,
193
+ ) -> structs .GitHubIterator [users .ShortUser ]:
194
+ ...
195
+
196
+ def followers_of (
197
+ self : T ,
198
+ username : str ,
199
+ number : int = - 1 ,
200
+ etag : Optional [str ]= None ,
201
+ ) -> structs .GitHubIterator [users .ShortUser ]:
202
+ ...
203
+
204
+ @decorators .requires_auth
205
+ def following (
206
+ self : T ,
207
+ number : int = - 1 ,
208
+ etag : Optional [str ]= None ,
209
+ ) -> structs .GitHubIterator [users .ShortUser ]:
210
+ ...
211
+
212
+ def gist (
213
+ self : T ,
214
+ id_num : int ,
215
+ ) -> gist .Gist :
216
+ ...
217
+
218
+ @decorators .requires_auth
219
+ def gists (
220
+ self : T ,
221
+ number : int = - 1 ,
222
+ etag : Optional [str ]= None ,
223
+ ) -> structs .GitHubIterator [gist .ShortGist ]:
224
+ ...
225
+
226
+ def gists_by (
227
+ self : T ,
228
+ username : str ,
229
+ number : int = - 1 ,
230
+ etag : Optional [str ]= None ,
231
+ ) -> structs .GitHubIterator [gist .ShortGist ]:
232
+ ...
0 commit comments