Skip to content

Commit 94d723f

Browse files
committed
add tests for slack mentions
1 parent 7692668 commit 94d723f

9 files changed

+1545
-0
lines changed
Lines changed: 171 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,171 @@
1+
{
2+
"action":"created",
3+
"comment":{
4+
"url":"https://api.github.com/repos/NotAPerson/test_repository/comments/139894440",
5+
"html_url":"https://github.com/NotAPerson/test_repository/commit/f672ca1e7d8f9d8d51b2c6b6ac8c4f39b549ac07#commitcomment-139894440",
6+
"id":139894440,
7+
"node_id":"CC_kwDOLgIHIM4IVp6o",
8+
"user":{
9+
"login":"NotAPerson",
10+
"id":70936859,
11+
"node_id":"MDQ6VXNlcjcwOTM2ODU5",
12+
"avatar_url":"https://avatars.githubusercontent.com/u/70936859?v=4",
13+
"gravatar_id":"",
14+
"url":"https://api.github.com/users/NotAPerson",
15+
"html_url":"https://github.com/NotAPerson",
16+
"followers_url":"https://api.github.com/users/NotAPerson/followers",
17+
"following_url":"https://api.github.com/users/NotAPerson/following{/other_user}",
18+
"gists_url":"https://api.github.com/users/NotAPerson/gists{/gist_id}",
19+
"starred_url":"https://api.github.com/users/NotAPerson/starred{/owner}{/repo}",
20+
"subscriptions_url":"https://api.github.com/users/NotAPerson/subscriptions",
21+
"organizations_url":"https://api.github.com/users/NotAPerson/orgs",
22+
"repos_url":"https://api.github.com/users/NotAPerson/repos",
23+
"events_url":"https://api.github.com/users/NotAPerson/events{/privacy}",
24+
"received_events_url":"https://api.github.com/users/NotAPerson/received_events",
25+
"type":"User",
26+
"site_admin":false
27+
},
28+
"position":null,
29+
"line":null,
30+
"path":null,
31+
"commit_id":"f672ca1e7d8f9d8d51b2c6b6ac8c4f39b549ac07",
32+
"created_at":"2024-03-18T08:01:33Z",
33+
"updated_at":"2024-03-18T08:01:33Z",
34+
"author_association":"OWNER",
35+
"body":"test commit comment, should mention slack id for @NotAPerson",
36+
"reactions":{
37+
"url":"https://api.github.com/repos/NotAPerson/test_repository/comments/139894440/reactions",
38+
"total_count":0,
39+
"+1":0,
40+
"-1":0,
41+
"laugh":0,
42+
"hooray":0,
43+
"confused":0,
44+
"heart":0,
45+
"rocket":0,
46+
"eyes":0
47+
}
48+
},
49+
"repository":{
50+
"id":771884832,
51+
"node_id":"R_kgDOLgIHIA",
52+
"name":"test_repository",
53+
"full_name":"NotAPerson/test_repository",
54+
"private":false,
55+
"owner":{
56+
"login":"NotAPerson",
57+
"id":70936859,
58+
"node_id":"MDQ6VXNlcjcwOTM2ODU5",
59+
"avatar_url":"https://avatars.githubusercontent.com/u/70936859?v=4",
60+
"gravatar_id":"",
61+
"url":"https://api.github.com/users/NotAPerson",
62+
"html_url":"https://github.com/NotAPerson",
63+
"followers_url":"https://api.github.com/users/NotAPerson/followers",
64+
"following_url":"https://api.github.com/users/NotAPerson/following{/other_user}",
65+
"gists_url":"https://api.github.com/users/NotAPerson/gists{/gist_id}",
66+
"starred_url":"https://api.github.com/users/NotAPerson/starred{/owner}{/repo}",
67+
"subscriptions_url":"https://api.github.com/users/NotAPerson/subscriptions",
68+
"organizations_url":"https://api.github.com/users/NotAPerson/orgs",
69+
"repos_url":"https://api.github.com/users/NotAPerson/repos",
70+
"events_url":"https://api.github.com/users/NotAPerson/events{/privacy}",
71+
"received_events_url":"https://api.github.com/users/NotAPerson/received_events",
72+
"type":"User",
73+
"site_admin":false
74+
},
75+
"html_url":"https://github.com/NotAPerson/test_repository",
76+
"description":"Just testing stuff for monorobot",
77+
"fork":false,
78+
"url":"https://api.github.com/repos/NotAPerson/test_repository",
79+
"forks_url":"https://api.github.com/repos/NotAPerson/test_repository/forks",
80+
"keys_url":"https://api.github.com/repos/NotAPerson/test_repository/keys{/key_id}",
81+
"collaborators_url":"https://api.github.com/repos/NotAPerson/test_repository/collaborators{/collaborator}",
82+
"teams_url":"https://api.github.com/repos/NotAPerson/test_repository/teams",
83+
"hooks_url":"https://api.github.com/repos/NotAPerson/test_repository/hooks",
84+
"issue_events_url":"https://api.github.com/repos/NotAPerson/test_repository/issues/events{/number}",
85+
"events_url":"https://api.github.com/repos/NotAPerson/test_repository/events",
86+
"assignees_url":"https://api.github.com/repos/NotAPerson/test_repository/assignees{/user}",
87+
"branches_url":"https://api.github.com/repos/NotAPerson/test_repository/branches{/branch}",
88+
"tags_url":"https://api.github.com/repos/NotAPerson/test_repository/tags",
89+
"blobs_url":"https://api.github.com/repos/NotAPerson/test_repository/git/blobs{/sha}",
90+
"git_tags_url":"https://api.github.com/repos/NotAPerson/test_repository/git/tags{/sha}",
91+
"git_refs_url":"https://api.github.com/repos/NotAPerson/test_repository/git/refs{/sha}",
92+
"trees_url":"https://api.github.com/repos/NotAPerson/test_repository/git/trees{/sha}",
93+
"statuses_url":"https://api.github.com/repos/NotAPerson/test_repository/statuses/{sha}",
94+
"languages_url":"https://api.github.com/repos/NotAPerson/test_repository/languages",
95+
"stargazers_url":"https://api.github.com/repos/NotAPerson/test_repository/stargazers",
96+
"contributors_url":"https://api.github.com/repos/NotAPerson/test_repository/contributors",
97+
"subscribers_url":"https://api.github.com/repos/NotAPerson/test_repository/subscribers",
98+
"subscription_url":"https://api.github.com/repos/NotAPerson/test_repository/subscription",
99+
"commits_url":"https://api.github.com/repos/NotAPerson/test_repository/commits{/sha}",
100+
"git_commits_url":"https://api.github.com/repos/NotAPerson/test_repository/git/commits{/sha}",
101+
"comments_url":"https://api.github.com/repos/NotAPerson/test_repository/comments{/number}",
102+
"issue_comment_url":"https://api.github.com/repos/NotAPerson/test_repository/issues/comments{/number}",
103+
"contents_url":"https://api.github.com/repos/NotAPerson/test_repository/contents/{+path}",
104+
"compare_url":"https://api.github.com/repos/NotAPerson/test_repository/compare/{base}...{head}",
105+
"merges_url":"https://api.github.com/repos/NotAPerson/test_repository/merges",
106+
"archive_url":"https://api.github.com/repos/NotAPerson/test_repository/{archive_format}{/ref}",
107+
"downloads_url":"https://api.github.com/repos/NotAPerson/test_repository/downloads",
108+
"issues_url":"https://api.github.com/repos/NotAPerson/test_repository/issues{/number}",
109+
"pulls_url":"https://api.github.com/repos/NotAPerson/test_repository/pulls{/number}",
110+
"milestones_url":"https://api.github.com/repos/NotAPerson/test_repository/milestones{/number}",
111+
"notifications_url":"https://api.github.com/repos/NotAPerson/test_repository/notifications{?since,all,participating}",
112+
"labels_url":"https://api.github.com/repos/NotAPerson/test_repository/labels{/name}",
113+
"releases_url":"https://api.github.com/repos/NotAPerson/test_repository/releases{/id}",
114+
"deployments_url":"https://api.github.com/repos/NotAPerson/test_repository/deployments",
115+
"created_at":"2024-03-14T06:05:36Z",
116+
"updated_at":"2024-03-18T05:49:34Z",
117+
"pushed_at":"2024-03-18T03:14:05Z",
118+
"git_url":"git://github.com/NotAPerson/test_repository.git",
119+
"ssh_url":"[email protected]:NotAPerson/test_repository.git",
120+
"clone_url":"https://github.com/NotAPerson/test_repository.git",
121+
"svn_url":"https://github.com/NotAPerson/test_repository",
122+
"homepage":null,
123+
"size":2,
124+
"stargazers_count":0,
125+
"watchers_count":0,
126+
"language":null,
127+
"has_issues":true,
128+
"has_projects":true,
129+
"has_downloads":true,
130+
"has_wiki":true,
131+
"has_pages":false,
132+
"has_discussions":false,
133+
"forks_count":0,
134+
"mirror_url":null,
135+
"archived":false,
136+
"disabled":false,
137+
"open_issues_count":1,
138+
"license":null,
139+
"allow_forking":true,
140+
"is_template":false,
141+
"web_commit_signoff_required":false,
142+
"topics":[
143+
144+
],
145+
"visibility":"public",
146+
"forks":0,
147+
"open_issues":1,
148+
"watchers":0,
149+
"default_branch":"main"
150+
},
151+
"sender":{
152+
"login":"NotAPerson",
153+
"id":70936859,
154+
"node_id":"MDQ6VXNlcjcwOTM2ODU5",
155+
"avatar_url":"https://avatars.githubusercontent.com/u/70936859?v=4",
156+
"gravatar_id":"",
157+
"url":"https://api.github.com/users/NotAPerson",
158+
"html_url":"https://github.com/NotAPerson",
159+
"followers_url":"https://api.github.com/users/NotAPerson/followers",
160+
"following_url":"https://api.github.com/users/NotAPerson/following{/other_user}",
161+
"gists_url":"https://api.github.com/users/NotAPerson/gists{/gist_id}",
162+
"starred_url":"https://api.github.com/users/NotAPerson/starred{/owner}{/repo}",
163+
"subscriptions_url":"https://api.github.com/users/NotAPerson/subscriptions",
164+
"organizations_url":"https://api.github.com/users/NotAPerson/orgs",
165+
"repos_url":"https://api.github.com/users/NotAPerson/repos",
166+
"events_url":"https://api.github.com/users/NotAPerson/events{/privacy}",
167+
"received_events_url":"https://api.github.com/users/NotAPerson/received_events",
168+
"type":"User",
169+
"site_admin":false
170+
}
171+
}

0 commit comments

Comments
 (0)