Skip to content

Instantly share code, notes, and snippets.

@ikwattro
Created August 21, 2014 00:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ikwattro/7907cc42ee526b3d7231 to your computer and use it in GitHub Desktop.
Save ikwattro/7907cc42ee526b3d7231 to your computer and use it in GitHub Desktop.
Github Data Archive Event Payloads

PullRequestEventPayload

Array
(
    [created_at] => 2014-06-01T00:06:23-07:00
    [payload] => Array
        (
            [action] => opened
            [number] => 3
            [pull_request] => Array
                (
                    [url] => https://api.github.com/repos/IntrepidPursuits/KevinBot/pulls/3
                    [id] => 16573624
                    [html_url] => https://github.com/IntrepidPursuits/KevinBot/pull/3
                    [diff_url] => https://github.com/IntrepidPursuits/KevinBot/pull/3.diff
                    [patch_url] => https://github.com/IntrepidPursuits/KevinBot/pull/3.patch
                    [issue_url] => https://api.github.com/repos/IntrepidPursuits/KevinBot/issues/3
                    [number] => 3
                    [state] => open
                    [title] => Adds /setlist  to generate a hypothetical setlist for a band's next performance
                    [user] => Array
                        (
                            [login] => david-crowell
                            [id] => 1765967
                            [avatar_url] => https://avatars.githubusercontent.com/u/1765967?
                            [gravatar_id] => 9f7ee4596c6eeba65fba5884a1ec3a56
                            [url] => https://api.github.com/users/david-crowell
                            [html_url] => https://github.com/david-crowell
                            [followers_url] => https://api.github.com/users/david-crowell/followers
                            [following_url] => https://api.github.com/users/david-crowell/following{/other_user}
                            [gists_url] => https://api.github.com/users/david-crowell/gists{/gist_id}
                            [starred_url] => https://api.github.com/users/david-crowell/starred{/owner}{/repo}
                            [subscriptions_url] => https://api.github.com/users/david-crowell/subscriptions
                            [organizations_url] => https://api.github.com/users/david-crowell/orgs
                            [repos_url] => https://api.github.com/users/david-crowell/repos
                            [events_url] => https://api.github.com/users/david-crowell/events{/privacy}
                            [received_events_url] => https://api.github.com/users/david-crowell/received_events
                            [type] => User
                            [site_admin] => 
                        )

                    [body] => /setlist Red Hot Chili Peppers

Hits some code I wrote, returns a url for a spotify widget that's loads/plays a list of songs that more or less predicts the songs you'll likely hear at the band's next concert.
                    [created_at] => 2014-06-01T07:06:22Z
                    [updated_at] => 2014-06-01T07:06:22Z
                    [closed_at] => 
                    [merged_at] => 
                    [merge_commit_sha] => 
                    [assignee] => 
                    [milestone] => 
                    [commits_url] => https://api.github.com/repos/IntrepidPursuits/KevinBot/pulls/3/commits
                    [review_comments_url] => https://api.github.com/repos/IntrepidPursuits/KevinBot/pulls/3/comments
                    [review_comment_url] => https://api.github.com/repos/IntrepidPursuits/KevinBot/pulls/comments/{number}
                    [comments_url] => https://api.github.com/repos/IntrepidPursuits/KevinBot/issues/3/comments
                    [statuses_url] => https://api.github.com/repos/IntrepidPursuits/KevinBot/statuses/182e541416c14ee86189fb57ba4a9f08be4f534a
                    [head] => Array
                        (
                            [label] => david-crowell:setlist
                            [ref] => setlist
                            [sha] => 182e541416c14ee86189fb57ba4a9f08be4f534a
                            [user] => Array
                                (
                                    [login] => david-crowell
                                    [id] => 1765967
                                    [avatar_url] => https://avatars.githubusercontent.com/u/1765967?
                                    [gravatar_id] => 9f7ee4596c6eeba65fba5884a1ec3a56
                                    [url] => https://api.github.com/users/david-crowell
                                    [html_url] => https://github.com/david-crowell
                                    [followers_url] => https://api.github.com/users/david-crowell/followers
                                    [following_url] => https://api.github.com/users/david-crowell/following{/other_user}
                                    [gists_url] => https://api.github.com/users/david-crowell/gists{/gist_id}
                                    [starred_url] => https://api.github.com/users/david-crowell/starred{/owner}{/repo}
                                    [subscriptions_url] => https://api.github.com/users/david-crowell/subscriptions
                                    [organizations_url] => https://api.github.com/users/david-crowell/orgs
                                    [repos_url] => https://api.github.com/users/david-crowell/repos
                                    [events_url] => https://api.github.com/users/david-crowell/events{/privacy}
                                    [received_events_url] => https://api.github.com/users/david-crowell/received_events
                                    [type] => User
                                    [site_admin] => 
                                )

                            [repo] => Array
                                (
                                    [id] => 20372486
                                    [name] => KevinBot
                                    [full_name] => david-crowell/KevinBot
                                    [owner] => Array
                                        (
                                            [login] => david-crowell
                                            [id] => 1765967
                                            [avatar_url] => https://avatars.githubusercontent.com/u/1765967?
                                            [gravatar_id] => 9f7ee4596c6eeba65fba5884a1ec3a56
                                            [url] => https://api.github.com/users/david-crowell
                                            [html_url] => https://github.com/david-crowell
                                            [followers_url] => https://api.github.com/users/david-crowell/followers
                                            [following_url] => https://api.github.com/users/david-crowell/following{/other_user}
                                            [gists_url] => https://api.github.com/users/david-crowell/gists{/gist_id}
                                            [starred_url] => https://api.github.com/users/david-crowell/starred{/owner}{/repo}
                                            [subscriptions_url] => https://api.github.com/users/david-crowell/subscriptions
                                            [organizations_url] => https://api.github.com/users/david-crowell/orgs
                                            [repos_url] => https://api.github.com/users/david-crowell/repos
                                            [events_url] => https://api.github.com/users/david-crowell/events{/privacy}
                                            [received_events_url] => https://api.github.com/users/david-crowell/received_events
                                            [type] => User
                                            [site_admin] => 
                                        )

                                    [private] => 
                                    [html_url] => https://github.com/david-crowell/KevinBot
                                    [description] => 
                                    [fork] => 1
                                    [url] => https://api.github.com/repos/david-crowell/KevinBot
                                    [forks_url] => https://api.github.com/repos/david-crowell/KevinBot/forks
                                    [keys_url] => https://api.github.com/repos/david-crowell/KevinBot/keys{/key_id}
                                    [collaborators_url] => https://api.github.com/repos/david-crowell/KevinBot/collaborators{/collaborator}
                                    [teams_url] => https://api.github.com/repos/david-crowell/KevinBot/teams
                                    [hooks_url] => https://api.github.com/repos/david-crowell/KevinBot/hooks
                                    [issue_events_url] => https://api.github.com/repos/david-crowell/KevinBot/issues/events{/number}
                                    [events_url] => https://api.github.com/repos/david-crowell/KevinBot/events
                                    [assignees_url] => https://api.github.com/repos/david-crowell/KevinBot/assignees{/user}
                                    [branches_url] => https://api.github.com/repos/david-crowell/KevinBot/branches{/branch}
                                    [tags_url] => https://api.github.com/repos/david-crowell/KevinBot/tags
                                    [blobs_url] => https://api.github.com/repos/david-crowell/KevinBot/git/blobs{/sha}
                                    [git_tags_url] => https://api.github.com/repos/david-crowell/KevinBot/git/tags{/sha}
                                    [git_refs_url] => https://api.github.com/repos/david-crowell/KevinBot/git/refs{/sha}
                                    [trees_url] => https://api.github.com/repos/david-crowell/KevinBot/git/trees{/sha}
                                    [statuses_url] => https://api.github.com/repos/david-crowell/KevinBot/statuses/{sha}
                                    [languages_url] => https://api.github.com/repos/david-crowell/KevinBot/languages
                                    [stargazers_url] => https://api.github.com/repos/david-crowell/KevinBot/stargazers
                                    [contributors_url] => https://api.github.com/repos/david-crowell/KevinBot/contributors
                                    [subscribers_url] => https://api.github.com/repos/david-crowell/KevinBot/subscribers
                                    [subscription_url] => https://api.github.com/repos/david-crowell/KevinBot/subscription
                                    [commits_url] => https://api.github.com/repos/david-crowell/KevinBot/commits{/sha}
                                    [git_commits_url] => https://api.github.com/repos/david-crowell/KevinBot/git/commits{/sha}
                                    [comments_url] => https://api.github.com/repos/david-crowell/KevinBot/comments{/number}
                                    [issue_comment_url] => https://api.github.com/repos/david-crowell/KevinBot/issues/comments/{number}
                                    [contents_url] => https://api.github.com/repos/david-crowell/KevinBot/contents/{+path}
                                    [compare_url] => https://api.github.com/repos/david-crowell/KevinBot/compare/{base}...{head}
                                    [merges_url] => https://api.github.com/repos/david-crowell/KevinBot/merges
                                    [archive_url] => https://api.github.com/repos/david-crowell/KevinBot/{archive_format}{/ref}
                                    [downloads_url] => https://api.github.com/repos/david-crowell/KevinBot/downloads
                                    [issues_url] => https://api.github.com/repos/david-crowell/KevinBot/issues{/number}
                                    [pulls_url] => https://api.github.com/repos/david-crowell/KevinBot/pulls{/number}
                                    [milestones_url] => https://api.github.com/repos/david-crowell/KevinBot/milestones{/number}
                                    [notifications_url] => https://api.github.com/repos/david-crowell/KevinBot/notifications{?since,all,participating}
                                    [labels_url] => https://api.github.com/repos/david-crowell/KevinBot/labels{/name}
                                    [releases_url] => https://api.github.com/repos/david-crowell/KevinBot/releases{/id}
                                    [created_at] => 2014-06-01T07:00:43Z
                                    [updated_at] => 2014-06-01T07:06:22Z
                                    [pushed_at] => 2014-06-01T07:03:17Z
                                    [git_url] => git://github.com/david-crowell/KevinBot.git
                                    [ssh_url] => git@github.com:david-crowell/KevinBot.git
                                    [clone_url] => https://github.com/david-crowell/KevinBot.git
                                    [svn_url] => https://github.com/david-crowell/KevinBot
                                    [homepage] => 
                                    [size] => 173
                                    [stargazers_count] => 0
                                    [watchers_count] => 0
                                    [language] => Ruby
                                    [has_issues] => 
                                    [has_downloads] => 1
                                    [has_wiki] => 1
                                    [forks_count] => 0
                                    [mirror_url] => 
                                    [open_issues_count] => 0
                                    [forks] => 0
                                    [open_issues] => 0
                                    [watchers] => 0
                                    [default_branch] => master
                                    [permissions] => Array
                                        (
                                            [admin] => 
                                            [push] => 
                                            [pull] => 1
                                        )

                                )

                        )

                    [base] => Array
                        (
                            [label] => IntrepidPursuits:master
                            [ref] => master
                            [sha] => 1e12728a10817ca8a0a134ee388d51c4f7217c2c
                            [user] => Array
                                (
                                    [login] => IntrepidPursuits
                                    [id] => 2151424
                                    [avatar_url] => https://avatars.githubusercontent.com/u/2151424?
                                    [gravatar_id] => cd23f4f0b072e764f4ea29cd5ade9d3b
                                    [url] => https://api.github.com/users/IntrepidPursuits
                                    [html_url] => https://github.com/IntrepidPursuits
                                    [followers_url] => https://api.github.com/users/IntrepidPursuits/followers
                                    [following_url] => https://api.github.com/users/IntrepidPursuits/following{/other_user}
                                    [gists_url] => https://api.github.com/users/IntrepidPursuits/gists{/gist_id}
                                    [starred_url] => https://api.github.com/users/IntrepidPursuits/starred{/owner}{/repo}
                                    [subscriptions_url] => https://api.github.com/users/IntrepidPursuits/subscriptions
                                    [organizations_url] => https://api.github.com/users/IntrepidPursuits/orgs
                                    [repos_url] => https://api.github.com/users/IntrepidPursuits/repos
                                    [events_url] => https://api.github.com/users/IntrepidPursuits/events{/privacy}
                                    [received_events_url] => https://api.github.com/users/IntrepidPursuits/received_events
                                    [type] => Organization
                                    [site_admin] => 
                                )

                            [repo] => Array
                                (
                                    [id] => 19573238
                                    [name] => KevinBot
                                    [full_name] => IntrepidPursuits/KevinBot
                                    [owner] => Array
                                        (
                                            [login] => IntrepidPursuits
                                            [id] => 2151424
                                            [avatar_url] => https://avatars.githubusercontent.com/u/2151424?
                                            [gravatar_id] => cd23f4f0b072e764f4ea29cd5ade9d3b
                                            [url] => https://api.github.com/users/IntrepidPursuits
                                            [html_url] => https://github.com/IntrepidPursuits
                                            [followers_url] => https://api.github.com/users/IntrepidPursuits/followers
                                            [following_url] => https://api.github.com/users/IntrepidPursuits/following{/other_user}
                                            [gists_url] => https://api.github.com/users/IntrepidPursuits/gists{/gist_id}
                                            [starred_url] => https://api.github.com/users/IntrepidPursuits/starred{/owner}{/repo}
                                            [subscriptions_url] => https://api.github.com/users/IntrepidPursuits/subscriptions
                                            [organizations_url] => https://api.github.com/users/IntrepidPursuits/orgs
                                            [repos_url] => https://api.github.com/users/IntrepidPursuits/repos
                                            [events_url] => https://api.github.com/users/IntrepidPursuits/events{/privacy}
                                            [received_events_url] => https://api.github.com/users/IntrepidPursuits/received_events
                                            [type] => Organization
                                            [site_admin] => 
                                        )

                                    [private] => 
                                    [html_url] => https://github.com/IntrepidPursuits/KevinBot
                                    [description] => 
                                    [fork] => 
                                    [url] => https://api.github.com/repos/IntrepidPursuits/KevinBot
                                    [forks_url] => https://api.github.com/repos/IntrepidPursuits/KevinBot/forks
                                    [keys_url] => https://api.github.com/repos/IntrepidPursuits/KevinBot/keys{/key_id}
                                    [collaborators_url] => https://api.github.com/repos/IntrepidPursuits/KevinBot/collaborators{/collaborator}
                                    [teams_url] => https://api.github.com/repos/IntrepidPursuits/KevinBot/teams
                                    [hooks_url] => https://api.github.com/repos/IntrepidPursuits/KevinBot/hooks
                                    [issue_events_url] => https://api.github.com/repos/IntrepidPursuits/KevinBot/issues/events{/number}
                                    [events_url] => https://api.github.com/repos/IntrepidPursuits/KevinBot/events
                                    [assignees_url] => https://api.github.com/repos/IntrepidPursuits/KevinBot/assignees{/user}
                                    [branches_url] => https://api.github.com/repos/IntrepidPursuits/KevinBot/branches{/branch}
                                    [tags_url] => https://api.github.com/repos/IntrepidPursuits/KevinBot/tags
                                    [blobs_url] => https://api.github.com/repos/IntrepidPursuits/KevinBot/git/blobs{/sha}
                                    [git_tags_url] => https://api.github.com/repos/IntrepidPursuits/KevinBot/git/tags{/sha}
                                    [git_refs_url] => https://api.github.com/repos/IntrepidPursuits/KevinBot/git/refs{/sha}
                                    [trees_url] => https://api.github.com/repos/IntrepidPursuits/KevinBot/git/trees{/sha}
                                    [statuses_url] => https://api.github.com/repos/IntrepidPursuits/KevinBot/statuses/{sha}
                                    [languages_url] => https://api.github.com/repos/IntrepidPursuits/KevinBot/languages
                                    [stargazers_url] => https://api.github.com/repos/IntrepidPursuits/KevinBot/stargazers
                                    [contributors_url] => https://api.github.com/repos/IntrepidPursuits/KevinBot/contributors
                                    [subscribers_url] => https://api.github.com/repos/IntrepidPursuits/KevinBot/subscribers
                                    [subscription_url] => https://api.github.com/repos/IntrepidPursuits/KevinBot/subscription
                                    [commits_url] => https://api.github.com/repos/IntrepidPursuits/KevinBot/commits{/sha}
                                    [git_commits_url] => https://api.github.com/repos/IntrepidPursuits/KevinBot/git/commits{/sha}
                                    [comments_url] => https://api.github.com/repos/IntrepidPursuits/KevinBot/comments{/number}
                                    [issue_comment_url] => https://api.github.com/repos/IntrepidPursuits/KevinBot/issues/comments/{number}
                                    [contents_url] => https://api.github.com/repos/IntrepidPursuits/KevinBot/contents/{+path}
                                    [compare_url] => https://api.github.com/repos/IntrepidPursuits/KevinBot/compare/{base}...{head}
                                    [merges_url] => https://api.github.com/repos/IntrepidPursuits/KevinBot/merges
                                    [archive_url] => https://api.github.com/repos/IntrepidPursuits/KevinBot/{archive_format}{/ref}
                                    [downloads_url] => https://api.github.com/repos/IntrepidPursuits/KevinBot/downloads
                                    [issues_url] => https://api.github.com/repos/IntrepidPursuits/KevinBot/issues{/number}
                                    [pulls_url] => https://api.github.com/repos/IntrepidPursuits/KevinBot/pulls{/number}
                                    [milestones_url] => https://api.github.com/repos/IntrepidPursuits/KevinBot/milestones{/number}
                                    [notifications_url] => https://api.github.com/repos/IntrepidPursuits/KevinBot/notifications{?since,all,participating}
                                    [labels_url] => https://api.github.com/repos/IntrepidPursuits/KevinBot/labels{/name}
                                    [releases_url] => https://api.github.com/repos/IntrepidPursuits/KevinBot/releases{/id}
                                    [created_at] => 2014-05-08T12:53:17Z
                                    [updated_at] => 2014-05-29T20:12:11Z
                                    [pushed_at] => 2014-05-29T20:12:11Z
                                    [git_url] => git://github.com/IntrepidPursuits/KevinBot.git
                                    [ssh_url] => git@github.com:IntrepidPursuits/KevinBot.git
                                    [clone_url] => https://github.com/IntrepidPursuits/KevinBot.git
                                    [svn_url] => https://github.com/IntrepidPursuits/KevinBot
                                    [homepage] => 
                                    [size] => 173
                                    [stargazers_count] => 0
                                    [watchers_count] => 0
                                    [language] => Ruby
                                    [has_issues] => 1
                                    [has_downloads] => 1
                                    [has_wiki] => 1
                                    [forks_count] => 2
                                    [mirror_url] => 
                                    [open_issues_count] => 1
                                    [forks] => 2
                                    [open_issues] => 1
                                    [watchers] => 0
                                    [default_branch] => master
                                    [permissions] => Array
                                        (
                                            [admin] => 
                                            [push] => 
                                            [pull] => 1
                                        )

                                )

                        )

                    [_links] => Array
                        (
                            [self] => Array
                                (
                                    [href] => https://api.github.com/repos/IntrepidPursuits/KevinBot/pulls/3
                                )

                            [html] => Array
                                (
                                    [href] => https://github.com/IntrepidPursuits/KevinBot/pull/3
                                )

                            [issue] => Array
                                (
                                    [href] => https://api.github.com/repos/IntrepidPursuits/KevinBot/issues/3
                                )

                            [comments] => Array
                                (
                                    [href] => https://api.github.com/repos/IntrepidPursuits/KevinBot/issues/3/comments
                                )

                            [review_comments] => Array
                                (
                                    [href] => https://api.github.com/repos/IntrepidPursuits/KevinBot/pulls/3/comments
                                )

                            [review_comment] => Array
                                (
                                    [href] => https://api.github.com/repos/IntrepidPursuits/KevinBot/pulls/comments/{number}
                                )

                            [commits] => Array
                                (
                                    [href] => https://api.github.com/repos/IntrepidPursuits/KevinBot/pulls/3/commits
                                )

                            [statuses] => Array
                                (
                                    [href] => https://api.github.com/repos/IntrepidPursuits/KevinBot/statuses/182e541416c14ee86189fb57ba4a9f08be4f534a
                                )

                        )

                    [merged] => 
                    [mergeable] => 
                    [mergeable_state] => unknown
                    [merged_by] => 
                    [comments] => 0
                    [review_comments] => 0
                    [commits] => 1
                    [additions] => 41
                    [deletions] => 0
                    [changed_files] => 1
                )

        )

    [public] => 1
    [type] => PullRequestEvent
    [url] => https://github.com/IntrepidPursuits/KevinBot/pull/3
    [actor] => david-crowell
    [actor_attributes] => Array
        (
            [login] => david-crowell
            [type] => User
            [gravatar_id] => 9f7ee4596c6eeba65fba5884a1ec3a56
        )

    [repository] => Array
        (
            [id] => 19573238
            [name] => KevinBot
            [url] => https://github.com/IntrepidPursuits/KevinBot
            [description] => 
            [watchers] => 0
            [stargazers] => 0
            [forks] => 2
            [fork] => 
            [size] => 173
            [owner] => IntrepidPursuits
            [private] => 
            [open_issues] => 1
            [has_issues] => 1
            [has_downloads] => 1
            [has_wiki] => 1
            [language] => Ruby
            [created_at] => 2014-05-08T05:53:17-07:00
            [pushed_at] => 2014-05-29T13:12:11-07:00
            [master_branch] => master
            [organization] => IntrepidPursuits
        )

)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment