Skip to content

Commit 989af83

Browse files
committed
Add status requests.
1 parent 2ee77bb commit 989af83

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/usr/bin/env python
2+
# -*- encoding: utf-8 -*-
3+
4+
from . import Request
5+
6+
from pygithub3.resources.repos import Status
7+
8+
9+
class List(Request):
10+
11+
uri = 'repos/{user}/{repo}/statuses/{sha}'
12+
resource = Status
13+
14+
15+
class Create(Request):
16+
17+
uri = '/repos/{user}/{repo}/statuses/{sha}'
18+
resource = Status
19+
body_schema = {
20+
'schema': ('state', 'target_url', 'description'),
21+
'required': ('state',)}

0 commit comments

Comments
 (0)