|
3324 | 3324 | "site_admin": false |
3325 | 3325 | } |
3326 | 3326 | }""" |
| 3327 | +ISSUES_CLOSED_EVENT_EXAMPLE = r"""{ |
| 3328 | + "action": "closed", |
| 3329 | + "issue": { |
| 3330 | + "url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/2", |
| 3331 | + "repository_url": "https://api.github.com/repos/baxterthehacker/public-repo", |
| 3332 | + "labels_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/2/labels{/name}", |
| 3333 | + "comments_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/2/comments", |
| 3334 | + "events_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/2/events", |
| 3335 | + "html_url": "https://github.com/baxterthehacker/public-repo/issues/2", |
| 3336 | + "id": 73464126, |
| 3337 | + "number": 2, |
| 3338 | + "title": "Spelling error in the README file", |
| 3339 | + "user": { |
| 3340 | + "login": "baxterthehacker", |
| 3341 | + "id": 6752317, |
| 3342 | + "avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3", |
| 3343 | + "gravatar_id": "", |
| 3344 | + "url": "https://api.github.com/users/baxterthehacker", |
| 3345 | + "html_url": "https://github.com/baxterthehacker", |
| 3346 | + "followers_url": "https://api.github.com/users/baxterthehacker/followers", |
| 3347 | + "following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}", |
| 3348 | + "gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}", |
| 3349 | + "starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}", |
| 3350 | + "subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions", |
| 3351 | + "organizations_url": "https://api.github.com/users/baxterthehacker/orgs", |
| 3352 | + "repos_url": "https://api.github.com/users/baxterthehacker/repos", |
| 3353 | + "events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}", |
| 3354 | + "received_events_url": "https://api.github.com/users/baxterthehacker/received_events", |
| 3355 | + "type": "User", |
| 3356 | + "site_admin": false |
| 3357 | + }, |
| 3358 | + "labels": [], |
| 3359 | + "state": "closed", |
| 3360 | + "locked": false, |
| 3361 | + "assignee": null, |
| 3362 | + "assignees": [], |
| 3363 | + "milestone": null, |
| 3364 | + "comments": 0, |
| 3365 | + "created_at": "2015-05-05T23:40:28Z", |
| 3366 | + "updated_at": "2015-05-05T23:40:28Z", |
| 3367 | + "closed_at": "2015-05-05T23:40:28Z", |
| 3368 | + "body": "It looks like you accidentally spelled 'commit' with two 't's." |
| 3369 | + }, |
| 3370 | + "installation": { |
| 3371 | + "id": 12345 |
| 3372 | + }, |
| 3373 | + "repository": { |
| 3374 | + "id": 35129377, |
| 3375 | + "name": "public-repo", |
| 3376 | + "full_name": "baxterthehacker/public-repo", |
| 3377 | + "owner": { |
| 3378 | + "login": "baxterthehacker", |
| 3379 | + "id": 6752317, |
| 3380 | + "avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3", |
| 3381 | + "gravatar_id": "", |
| 3382 | + "url": "https://api.github.com/users/baxterthehacker", |
| 3383 | + "html_url": "https://github.com/baxterthehacker", |
| 3384 | + "followers_url": "https://api.github.com/users/baxterthehacker/followers", |
| 3385 | + "following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}", |
| 3386 | + "gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}", |
| 3387 | + "starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}", |
| 3388 | + "subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions", |
| 3389 | + "organizations_url": "https://api.github.com/users/baxterthehacker/orgs", |
| 3390 | + "repos_url": "https://api.github.com/users/baxterthehacker/repos", |
| 3391 | + "events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}", |
| 3392 | + "received_events_url": "https://api.github.com/users/baxterthehacker/received_events", |
| 3393 | + "type": "User", |
| 3394 | + "site_admin": false |
| 3395 | + }, |
| 3396 | + "private": false, |
| 3397 | + "html_url": "https://github.com/baxterthehacker/public-repo", |
| 3398 | + "description": "", |
| 3399 | + "fork": false, |
| 3400 | + "url": "https://api.github.com/repos/baxterthehacker/public-repo", |
| 3401 | + "created_at": "2015-05-05T23:40:12Z", |
| 3402 | + "updated_at": "2015-05-05T23:40:12Z", |
| 3403 | + "pushed_at": "2015-05-05T23:40:27Z" |
| 3404 | + }, |
| 3405 | + "sender": { |
| 3406 | + "login": "baxterthehacker", |
| 3407 | + "id": 6752317, |
| 3408 | + "avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3", |
| 3409 | + "gravatar_id": "", |
| 3410 | + "url": "https://api.github.com/users/baxterthehacker", |
| 3411 | + "html_url": "https://github.com/baxterthehacker", |
| 3412 | + "followers_url": "https://api.github.com/users/baxterthehacker/followers", |
| 3413 | + "following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}", |
| 3414 | + "gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}", |
| 3415 | + "starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}", |
| 3416 | + "subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions", |
| 3417 | + "organizations_url": "https://api.github.com/users/baxterthehacker/orgs", |
| 3418 | + "repos_url": "https://api.github.com/users/baxterthehacker/repos", |
| 3419 | + "events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}", |
| 3420 | + "received_events_url": "https://api.github.com/users/baxterthehacker/received_events", |
| 3421 | + "type": "User", |
| 3422 | + "site_admin": false |
| 3423 | + } |
| 3424 | +}""" |
| 3425 | + |
| 3426 | +ISSUES_REOPENED_EVENT_EXAMPLE = r"""{ |
| 3427 | + "action": "reopened", |
| 3428 | + "issue": { |
| 3429 | + "url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/2", |
| 3430 | + "repository_url": "https://api.github.com/repos/baxterthehacker/public-repo", |
| 3431 | + "labels_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/2/labels{/name}", |
| 3432 | + "comments_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/2/comments", |
| 3433 | + "events_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/2/events", |
| 3434 | + "html_url": "https://github.com/baxterthehacker/public-repo/issues/2", |
| 3435 | + "id": 73464126, |
| 3436 | + "number": 2, |
| 3437 | + "title": "Spelling error in the README file", |
| 3438 | + "user": { |
| 3439 | + "login": "baxterthehacker", |
| 3440 | + "id": 6752317, |
| 3441 | + "avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3", |
| 3442 | + "gravatar_id": "", |
| 3443 | + "url": "https://api.github.com/users/baxterthehacker", |
| 3444 | + "html_url": "https://github.com/baxterthehacker", |
| 3445 | + "followers_url": "https://api.github.com/users/baxterthehacker/followers", |
| 3446 | + "following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}", |
| 3447 | + "gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}", |
| 3448 | + "starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}", |
| 3449 | + "subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions", |
| 3450 | + "organizations_url": "https://api.github.com/users/baxterthehacker/orgs", |
| 3451 | + "repos_url": "https://api.github.com/users/baxterthehacker/repos", |
| 3452 | + "events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}", |
| 3453 | + "received_events_url": "https://api.github.com/users/baxterthehacker/received_events", |
| 3454 | + "type": "User", |
| 3455 | + "site_admin": false |
| 3456 | + }, |
| 3457 | + "labels": [], |
| 3458 | + "state": "open", |
| 3459 | + "locked": false, |
| 3460 | + "assignee": null, |
| 3461 | + "assignees": [], |
| 3462 | + "milestone": null, |
| 3463 | + "comments": 0, |
| 3464 | + "created_at": "2015-05-05T23:40:28Z", |
| 3465 | + "updated_at": "2015-05-05T23:40:28Z", |
| 3466 | + "closed_at": null, |
| 3467 | + "body": "It looks like you accidentally spelled 'commit' with two 't's." |
| 3468 | + }, |
| 3469 | + "installation": { |
| 3470 | + "id": 12345 |
| 3471 | + }, |
| 3472 | + "repository": { |
| 3473 | + "id": 35129377, |
| 3474 | + "name": "public-repo", |
| 3475 | + "full_name": "baxterthehacker/public-repo", |
| 3476 | + "owner": { |
| 3477 | + "login": "baxterthehacker", |
| 3478 | + "id": 6752317, |
| 3479 | + "avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3", |
| 3480 | + "gravatar_id": "", |
| 3481 | + "url": "https://api.github.com/users/baxterthehacker", |
| 3482 | + "html_url": "https://github.com/baxterthehacker", |
| 3483 | + "followers_url": "https://api.github.com/users/baxterthehacker/followers", |
| 3484 | + "following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}", |
| 3485 | + "gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}", |
| 3486 | + "starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}", |
| 3487 | + "subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions", |
| 3488 | + "organizations_url": "https://api.github.com/users/baxterthehacker/orgs", |
| 3489 | + "repos_url": "https://api.github.com/users/baxterthehacker/repos", |
| 3490 | + "events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}", |
| 3491 | + "received_events_url": "https://api.github.com/users/baxterthehacker/received_events", |
| 3492 | + "type": "User", |
| 3493 | + "site_admin": false |
| 3494 | + }, |
| 3495 | + "private": false, |
| 3496 | + "html_url": "https://github.com/baxterthehacker/public-repo", |
| 3497 | + "description": "", |
| 3498 | + "fork": false, |
| 3499 | + "url": "https://api.github.com/repos/baxterthehacker/public-repo", |
| 3500 | + "created_at": "2015-05-05T23:40:12Z", |
| 3501 | + "updated_at": "2015-05-05T23:40:12Z", |
| 3502 | + "pushed_at": "2015-05-05T23:40:27Z" |
| 3503 | + }, |
| 3504 | + "sender": { |
| 3505 | + "login": "baxterthehacker", |
| 3506 | + "id": 6752317, |
| 3507 | + "avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3", |
| 3508 | + "gravatar_id": "", |
| 3509 | + "url": "https://api.github.com/users/baxterthehacker", |
| 3510 | + "html_url": "https://github.com/baxterthehacker", |
| 3511 | + "followers_url": "https://api.github.com/users/baxterthehacker/followers", |
| 3512 | + "following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}", |
| 3513 | + "gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}", |
| 3514 | + "starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}", |
| 3515 | + "subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions", |
| 3516 | + "organizations_url": "https://api.github.com/users/baxterthehacker/orgs", |
| 3517 | + "repos_url": "https://api.github.com/users/baxterthehacker/repos", |
| 3518 | + "events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}", |
| 3519 | + "received_events_url": "https://api.github.com/users/baxterthehacker/received_events", |
| 3520 | + "type": "User", |
| 3521 | + "site_admin": false |
| 3522 | + } |
| 3523 | +}""" |
0 commit comments