aboutsummaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorkongr45gpen <electrovesta@gmail.com>2014-05-11 13:52:29 +0300
committerkongr45gpen <electrovesta@gmail.com>2014-05-11 13:54:26 +0300
commit9b117389606bbe5c398c52bf7001c0324ba83183 (patch)
treef1bc94fef6b6ffa5c1587481d41306473e02a49b /samples
parent32f28055bd0e6368f0b13c8d40e9fc11e18b8cef (diff)
downloadsupybot_github-9b117389606bbe5c398c52bf7001c0324ba83183.tar.gz
supybot_github-9b117389606bbe5c398c52bf7001c0324ba83183.tar.bz2
supybot_github-9b117389606bbe5c398c52bf7001c0324ba83183.zip
Handle travis hook messages
Diffstat (limited to 'samples')
-rw-r--r--samples/travis-notification.json58
-rw-r--r--samples/wiki-new-page.json117
2 files changed, 175 insertions, 0 deletions
diff --git a/samples/travis-notification.json b/samples/travis-notification.json
new file mode 100644
index 0000000..90475ad
--- /dev/null
+++ b/samples/travis-notification.json
@@ -0,0 +1,58 @@
+{
+ "id": 1,
+ "number": "1",
+ "status": null,
+ "started_at": null,
+ "finished_at": null,
+ "status_message": "Passed",
+ "commit": "62aae5f70ceee39123ef",
+ "branch": "master",
+ "message": "this is a long commit message, because we must learn how to lead ever-present lives in the face of turbulence. It is a sign of things to come. The vector of aspiration is now happening worldwide. It is time to take it to the next level. Today, science tells us that the essence of nature is truth. Throughout history, humans have been interacting with the quantum matrix via four-dimensional superstructures. We are in the midst of a cosmic summoning of power that will let us access the multiverse itself. Who are we? Where on the great path will we be aligned?",
+ "compare_url": "https://github.com/svenfuchs/minimal/compare/master...develop",
+ "committed_at": "2011-11-11T11: 11: 11Z",
+ "committer_name": "Sven Fuchs",
+ "committer_email": "svenfuchs@artweb-design.de",
+ "author_name": "Sven Fuchs",
+ "author_email": "svenfuchs@artweb-design.de",
+ "type": "push",
+ "build_url": "https://travis-ci.org/svenfuchs/minimal/builds/1",
+ "repository": {
+ "id": 1,
+ "name": "minimal",
+ "owner_name": "svenfuchs",
+ "url": "http://github.com/svenfuchs/minimal"
+ },
+ "config": {
+ "notifications": {
+ "webhooks": ["http://evome.fr/notifications", "http://example.com/"]
+ }
+ },
+ "matrix": [
+ {
+ "id": 2,
+ "repository_id": 1,
+ "number": "1.1",
+ "state": "created",
+ "started_at": null,
+ "finished_at": null,
+ "config": {
+ "notifications": {
+ "webhooks": ["http://evome.fr/notifications", "http://example.com/"]
+ }
+ },
+ "status": null,
+ "log": "",
+ "result": null,
+ "parent_id": 1,
+ "commit": "62aae5f70ceee39123ef",
+ "branch": "master",
+ "message": "the commit message",
+ "committed_at": "2011-11-11T11: 11: 11Z",
+ "committer_name": "Sven Fuchs",
+ "committer_email": "svenfuchs@artweb-design.de",
+ "author_name": "Sven Fuchs",
+ "author_email": "svenfuchs@artweb-design.de",
+ "compare_url": "https://github.com/svenfuchs/minimal/compare/master...develop"
+ }
+ ]
+}
diff --git a/samples/wiki-new-page.json b/samples/wiki-new-page.json
new file mode 100644
index 0000000..b9ca4fa
--- /dev/null
+++ b/samples/wiki-new-page.json
@@ -0,0 +1,117 @@
+{
+ "pages": [
+ {
+ "page_name": "Home",
+ "title": "Home",
+ "summary": null,
+ "action": "created",
+ "sha": "9941c1a1bb1b2db99ad9aabf10c8f946d808e634",
+ "html_url": "https://github.com/kongr45gpen/supybot-github/wiki/Home"
+ }
+ ],
+ "repository": {
+ "id": 11590921,
+ "name": "supybot-github",
+ "full_name": "kongr45gpen/supybot-github",
+ "owner": {
+ "login": "kongr45gpen",
+ "id": 720678,
+ "avatar_url": "https://avatars.githubusercontent.com/u/720678?",
+ "gravatar_id": "237485d64005289a16ab3dcf7e04969a",
+ "url": "https://api.github.com/users/kongr45gpen",
+ "html_url": "https://github.com/kongr45gpen",
+ "followers_url": "https://api.github.com/users/kongr45gpen/followers",
+ "following_url": "https://api.github.com/users/kongr45gpen/following{/other_user}",
+ "gists_url": "https://api.github.com/users/kongr45gpen/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/kongr45gpen/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/kongr45gpen/subscriptions",
+ "organizations_url": "https://api.github.com/users/kongr45gpen/orgs",
+ "repos_url": "https://api.github.com/users/kongr45gpen/repos",
+ "events_url": "https://api.github.com/users/kongr45gpen/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/kongr45gpen/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "private": false,
+ "html_url": "https://github.com/kongr45gpen/supybot-github",
+ "description": "Highly configurable, still under construction supybot/gribble plugin that uses an HTTP post-commit hook to report commits and other updates from Github repositories",
+ "fork": false,
+ "url": "https://api.github.com/repos/kongr45gpen/supybot-github",
+ "forks_url": "https://api.github.com/repos/kongr45gpen/supybot-github/forks",
+ "keys_url": "https://api.github.com/repos/kongr45gpen/supybot-github/keys{/key_id}",
+ "collaborators_url": "https://api.github.com/repos/kongr45gpen/supybot-github/collaborators{/collaborator}",
+ "teams_url": "https://api.github.com/repos/kongr45gpen/supybot-github/teams",
+ "hooks_url": "https://api.github.com/repos/kongr45gpen/supybot-github/hooks",
+ "issue_events_url": "https://api.github.com/repos/kongr45gpen/supybot-github/issues/events{/number}",
+ "events_url": "https://api.github.com/repos/kongr45gpen/supybot-github/events",
+ "assignees_url": "https://api.github.com/repos/kongr45gpen/supybot-github/assignees{/user}",
+ "branches_url": "https://api.github.com/repos/kongr45gpen/supybot-github/branches{/branch}",
+ "tags_url": "https://api.github.com/repos/kongr45gpen/supybot-github/tags",
+ "blobs_url": "https://api.github.com/repos/kongr45gpen/supybot-github/git/blobs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/kongr45gpen/supybot-github/git/tags{/sha}",
+ "git_refs_url": "https://api.github.com/repos/kongr45gpen/supybot-github/git/refs{/sha}",
+ "trees_url": "https://api.github.com/repos/kongr45gpen/supybot-github/git/trees{/sha}",
+ "statuses_url": "https://api.github.com/repos/kongr45gpen/supybot-github/statuses/{sha}",
+ "languages_url": "https://api.github.com/repos/kongr45gpen/supybot-github/languages",
+ "stargazers_url": "https://api.github.com/repos/kongr45gpen/supybot-github/stargazers",
+ "contributors_url": "https://api.github.com/repos/kongr45gpen/supybot-github/contributors",
+ "subscribers_url": "https://api.github.com/repos/kongr45gpen/supybot-github/subscribers",
+ "subscription_url": "https://api.github.com/repos/kongr45gpen/supybot-github/subscription",
+ "commits_url": "https://api.github.com/repos/kongr45gpen/supybot-github/commits{/sha}",
+ "git_commits_url": "https://api.github.com/repos/kongr45gpen/supybot-github/git/commits{/sha}",
+ "comments_url": "https://api.github.com/repos/kongr45gpen/supybot-github/comments{/number}",
+ "issue_comment_url": "https://api.github.com/repos/kongr45gpen/supybot-github/issues/comments/{number}",
+ "contents_url": "https://api.github.com/repos/kongr45gpen/supybot-github/contents/{+path}",
+ "compare_url": "https://api.github.com/repos/kongr45gpen/supybot-github/compare/{base}...{head}",
+ "merges_url": "https://api.github.com/repos/kongr45gpen/supybot-github/merges",
+ "archive_url": "https://api.github.com/repos/kongr45gpen/supybot-github/{archive_format}{/ref}",
+ "downloads_url": "https://api.github.com/repos/kongr45gpen/supybot-github/downloads",
+ "issues_url": "https://api.github.com/repos/kongr45gpen/supybot-github/issues{/number}",
+ "pulls_url": "https://api.github.com/repos/kongr45gpen/supybot-github/pulls{/number}",
+ "milestones_url": "https://api.github.com/repos/kongr45gpen/supybot-github/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/kongr45gpen/supybot-github/notifications{?since,all,participating}",
+ "labels_url": "https://api.github.com/repos/kongr45gpen/supybot-github/labels{/name}",
+ "releases_url": "https://api.github.com/repos/kongr45gpen/supybot-github/releases{/id}",
+ "created_at": "2013-07-22T19:55:10Z",
+ "updated_at": "2014-04-28T17:34:27Z",
+ "pushed_at": "2014-04-28T16:07:39Z",
+ "git_url": "git://github.com/kongr45gpen/supybot-github.git",
+ "ssh_url": "git@github.com:kongr45gpen/supybot-github.git",
+ "clone_url": "https://github.com/kongr45gpen/supybot-github.git",
+ "svn_url": "https://github.com/kongr45gpen/supybot-github",
+ "homepage": "",
+ "size": 252,
+ "stargazers_count": 0,
+ "watchers_count": 0,
+ "language": "Python",
+ "has_issues": true,
+ "has_downloads": true,
+ "has_wiki": true,
+ "forks_count": 0,
+ "mirror_url": null,
+ "open_issues_count": 2,
+ "forks": 0,
+ "open_issues": 2,
+ "watchers": 0,
+ "default_branch": "master"
+ },
+ "sender": {
+ "login": "kongr45gpen",
+ "id": 720678,
+ "avatar_url": "https://avatars.githubusercontent.com/u/720678?",
+ "gravatar_id": "237485d64005289a16ab3dcf7e04969a",
+ "url": "https://api.github.com/users/kongr45gpen",
+ "html_url": "https://github.com/kongr45gpen",
+ "followers_url": "https://api.github.com/users/kongr45gpen/followers",
+ "following_url": "https://api.github.com/users/kongr45gpen/following{/other_user}",
+ "gists_url": "https://api.github.com/users/kongr45gpen/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/kongr45gpen/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/kongr45gpen/subscriptions",
+ "organizations_url": "https://api.github.com/users/kongr45gpen/orgs",
+ "repos_url": "https://api.github.com/users/kongr45gpen/repos",
+ "events_url": "https://api.github.com/users/kongr45gpen/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/kongr45gpen/received_events",
+ "type": "User",
+ "site_admin": false
+ }
+}

© 2014-2024 Faster IT GmbH | imprint | privacy policy