-
Notifications
You must be signed in to change notification settings - Fork 0
/
docs.txt
77 lines (65 loc) · 2.73 KB
/
docs.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
current
-------
_0_pull.Puller.pull_recent
pull_page
Get page of prs: /pulls?state=all&page={}
ordered by date created (I think)
for each pr:
Get top-level comments pr['_links']['comments']['href']
Get review comments pr['_links']['review_comments']['href']
pull_recent
for i in range(1, 7)
pull_page(page)
next
----
_0_pull.Puller.pull_recent
pull_recent
pull top level comments since date
pull inline comments since date (review_comments(?))
make sure we continue to exclude pr creator
make sure return format matches previous
Try all of the following urls to figure out which one we want:
test in temp_recent_comments.py
Update "stuff/sample json"(?)
/repos/:owner/:repo/issues/comments
Does this include inline and top-level comments?
no, only top-level
/repos/:owner/:repo/issues/pulls/comments
Does this include inline and top-level comments?
/repos/:owner/:repo/pulls/comments
so there are three ways to pull comments?
[
{
...
"body": "### Summary:\r\nWhen assigning a double optin ticket to a ...",
...
"updated_at": "2016-01-26T22:06:41Z",
"user": {
"following_url": "https://api.github.com/users/mishto/following{/other_user}",
"events_url": "https://api.github.com/users/mishto/events{/privacy}",
"organizations_url": "https://api.github.com/users/mishto/orgs",
"url": "https://api.github.com/users/mishto",
"gists_url": "https://api.github.com/users/mishto/gists{/gist_id}",
"html_url": "https://github.com/mishto",
"subscriptions_url": "https://api.github.com/users/mishto/subscriptions",
"avatar_url": "https://avatars.githubusercontent.com/u/3527159?v=3",
"repos_url": "https://api.github.com/users/mishto/repos",
"received_events_url": "https://api.github.com/users/mishto/received_events",
"gravatar_id": "",
"starred_url": "https://api.github.com/users/mishto/starred{/owner}{/repo}",
"site_admin": false,
"login": "mishto",
"type": "User",
"id": 3527159,
"followers_url": "https://api.github.com/users/mishto/followers"
},
"milestone": null,
"locked": false,
"url": "https://api.github.com/repos/gigwalk-corp/gigwalk_apps_platform_api/pulls/2072",
"created_at": "2016-01-26T18:46:08Z",
"review_comments_url": "https://api.github.com/repos/gigwalk-corp/gigwalk_apps_platform_api/pulls/2072/comments",
"review_comment_url": "https://api.github.com/repos/gigwalk-corp/gigwalk_apps_platform_api/pulls/comments{/number}",
"patch_url": "https://github.com/gigwalk-corp/gigwalk_apps_platform_api/pull/2072.patch"
},
...
]