johnson-rl / Hook_Testing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hook Testing!

This is an app for testing some hooks.

Github Webhook

Here is the format of the Webhook payload:

{
  "ref"=>"refs/heads/master",
  "before"=>"8681502d90cc405f8c48a5f68e1a5046caf9dff2",
  "after"=>"30ad91681e31e1d76417fec2b5855df44ba60062",
  "created"=>false,
  "deleted"=>false,
  "forced"=>false,
  "base_ref"=>nil, "compare"=>"https://github.com/johnson-rl/Hook_Testing/compare/8681502d90cc...30ad91681e31",
  "commits"=>
    [
      {
        "id"=>"30ad91681e31e1d76417fec2b5855df44ba60062",
        "tree_id"=>"3fb99423ff099fcbe7f8dfef6d5ee0d6b45dedf0",
        "distinct"=>true,
        "message"=>"Hi, it's shivers",
        "timestamp"=>"2017-06-25T16:51:57-07:00",
        "url"=>"https://github.com/johnson-rl/Hook_Testing/commit/30ad91681e31e1d76417fec2b5855df44ba60062",
        "author"=>
          {
            "name"=>"johnson-rl",
            "email"=>"johnson.rl@gmail.com",
            "username"=>"johnson-rl"
          },
        "committer"=>
          {
            "name"=>"johnson-rl",
            "email"=>"johnson.rl@gmail.com",
            "username"=>"johnson-rl"
          },
        "added"=>[],
        "removed"=>[],
        "modified"=>["readme.md"]
      }
    ],
  "head_commit"=>
    {
      "id"=>"30ad91681e31e1d76417fec2b5855df44ba60062",
      "tree_id"=>"3fb99423ff099fcbe7f8dfef6d5ee0d6b45dedf0",
      "distinct"=>true,
      "message"=>"Hi, it's shivers",
      "timestamp"=>"2017-06-25T16:51:57-07:00",
      "url"=>"https://github.com/johnson-rl/Hook_Testing/commit/30ad91681e31e1d76417fec2b5855df44ba60062",
      "author"=>
        {"name"=>"johnson-rl", "email"=>"johnson.rl@gmail.com", "username"=>"johnson-rl"},
      "committer"=>
        {"name"=>"johnson-rl", "email"=>"johnson.rl@gmail.com", "username"=>"johnson-rl"},
      "added"=>[],
      "removed"=>[],
      "modified"=>["readme.md"]
    },
  "repository"=>
    {
      "id"=>94484588,
      "name"=>"Hook_Testing",
      "full_name"=>"johnson-rl/Hook_Testing",
      "owner"=>
        {
          "name"=>"johnson-rl",
          "email"=>"johnson.rl@gmail.com",
          "login"=>"johnson-rl",
          "id"=>23468749,
          "avatar_url"=>"https://avatars1.githubusercontent.com/u/23468749?v=3",
          "gravatar_id"=>"",
          "url"=>"https://api.github.com/users/johnson-rl",
          "html_url"=>"https://github.com/johnson-rl",
          "followers_url"=>"https://api.github.com/users/johnson-rl/followers",
          "following_url"=>"https://api.github.com/users/johnson-rl/following{/other_user}",
          "gists_url"=>"https://api.github.com/users/johnson-rl/gists{/gist_id}",
          "starred_url"=>"https://api.github.com/users/johnson-rl/starred{/owner}{/repo}",
          "subscriptions_url"=>"https://api.github.com/users/johnson-rl/subscriptions",
          "organizations_url"=>"https://api.github.com/users/johnson-rl/orgs",
          "repos_url"=>"https://api.github.com/users/johnson-rl/repos",
          "events_url"=>"https://api.github.com/users/johnson-rl/events{/privacy}",
          "received_events_url"=>"https://api.github.com/users/johnson-rl/received_events",
          "type"=>"User",
          "site_admin"=>false
        },
      "private"=>false,
      "html_url"=>"https://github.com/johnson-rl/Hook_Testing",
      "description"=>nil,
      "fork"=>false,
      "url"=>"https://github.com/johnson-rl/Hook_Testing",
      "forks_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/forks",
      "keys_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/keys{/key_id}",
      "collaborators_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/collaborators{/collaborator}",
      "teams_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/teams",
      "hooks_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/hooks",
      "issue_events_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/issues/events{/number}",
      "events_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/events",
      "assignees_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/assignees{/user}",
      "branches_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/branches{/branch}",
      "tags_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/tags",
      "blobs_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/git/blobs{/sha}",
      "git_tags_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/git/tags{/sha}",
      "git_refs_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/git/refs{/sha}",
      "trees_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/git/trees{/sha}",
      "statuses_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/statuses/{sha}",
      "languages_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/languages",
      "stargazers_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/stargazers",
      "contributors_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/contributors",
      "subscribers_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/subscribers",
      "subscription_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/subscription",
      "commits_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/commits{/sha}",
      "git_commits_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/git/commits{/sha}",
      "comments_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/comments{/number}",
      "issue_comment_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/issues/comments{/number}",
      "contents_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/contents/{+path}",
      "compare_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/compare/{base}...{head}",
      "merges_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/merges",
      "archive_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/{archive_format}{/ref}",
      "downloads_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/downloads",
      "issues_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/issues{/number}",
      "pulls_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/pulls{/number}",
      "milestones_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/milestones{/number}",
      "notifications_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/notifications{?since,all,participating}",
      "labels_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/labels{/name}",
      "releases_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/releases{/id}",
      "deployments_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/deployments",
      "created_at"=>1497566924,
      "updated_at"=>"2017-06-15T22:48:44Z",
      "pushed_at"=>1498434719,
      "git_url"=>"git://github.com/johnson-rl/Hook_Testing.git",
      "ssh_url"=>"git@github.com:johnson-rl/Hook_Testing.git",
      "clone_url"=>"https://github.com/johnson-rl/Hook_Testing.git",
      "svn_url"=>"https://github.com/johnson-rl/Hook_Testing",
      "homepage"=>nil,
      "size"=>3,
      "stargazers_count"=>0,
      "watchers_count"=>0,
      "language"=>nil,
      "has_issues"=>true,
      "has_projects"=>true,
      "has_downloads"=>true,
      "has_wiki"=>true,
      "has_pages"=>false,
      "forks_count"=>0,
      "mirror_url"=>nil,
      "open_issues_count"=>0,
      "forks"=>0,
      "open_issues"=>0,
      "watchers"=>0,
      "default_branch"=>"master",
      "stargazers"=>0,
      "master_branch"=>"master"
    },
  "pusher"=>
    {
      "name"=>"johnson-rl",
      "email"=>"johnson.rl@gmail.com"
    },
  "sender"=>
    {
      "login"=>"johnson-rl",
      "id"=>23468749,
      "avatar_url"=>"https://avatars1.githubusercontent.com/u/23468749?v=3",
      "gravatar_id"=>"",
      "url"=>"https://api.github.com/users/johnson-rl",
      "html_url"=>"https://github.com/johnson-rl",
      "followers_url"=>"https://api.github.com/users/johnson-rl/followers",
      "following_url"=>"https://api.github.com/users/johnson-rl/following{/other_user}",
      "gists_url"=>"https://api.github.com/users/johnson-rl/gists{/gist_id}",
      "starred_url"=>"https://api.github.com/users/johnson-rl/starred{/owner}{/repo}",
      "subscriptions_url"=>"https://api.github.com/users/johnson-rl/subscriptions",
      "organizations_url"=>"https://api.github.com/users/johnson-rl/orgs",
      "repos_url"=>"https://api.github.com/users/johnson-rl/repos",
      "events_url"=>"https://api.github.com/users/johnson-rl/events{/privacy}",
      "received_events_url"=>"https://api.github.com/users/johnson-rl/received_events",
      "type"=>"User",
      "site_admin"=>false
    },
  "commit"=>{}
}

Branch Version

Branch version:

Parameters: {"ref"=>"refs/heads/develop", "before"=>"0000000000000000000000000000000000000000", "after"=>"966c661f3b17f1bd6ec7b8cfb31239cef32a5b24", "created"=>true, "deleted"=>false, "forced"=>false, "base_ref"=>nil, "compare"=>"https://github.com/johnson-rl/Hook_Testing/commit/966c661f3b17", "commits"=>[{"id"=>"966c661f3b17f1bd6ec7b8cfb31239cef32a5b24", "tree_id"=>"df21492c7ed7021c17cb60492ebb5cf25ca64f61", "distinct"=>true, "message"=>"trying a branch", "timestamp"=>"2017-06-25T22:25:02-07:00", "url"=>"https://github.com/johnson-rl/Hook_Testing/commit/966c661f3b17f1bd6ec7b8cfb31239cef32a5b24", "author"=>{"name"=>"johnson-rl", "email"=>"johnson.rl@gmail.com", "username"=>"johnson-rl"}, "committer"=>{"name"=>"johnson-rl", "email"=>"johnson.rl@gmail.com", "username"=>"johnson-rl"}, "added"=>[], "removed"=>[], "modified"=>["readme.md"]}], "head_commit"=>{"id"=>"966c661f3b17f1bd6ec7b8cfb31239cef32a5b24", "tree_id"=>"df21492c7ed7021c17cb60492ebb5cf25ca64f61", "distinct"=>true, "message"=>"trying a branch", "timestamp"=>"2017-06-25T22:25:02-07:00", "url"=>"https://github.com/johnson-rl/Hook_Testing/commit/966c661f3b17f1bd6ec7b8cfb31239cef32a5b24", "author"=>{"name"=>"johnson-rl", "email"=>"johnson.rl@gmail.com", "username"=>"johnson-rl"}, "committer"=>{"name"=>"johnson-rl", "email"=>"johnson.rl@gmail.com", "username"=>"johnson-rl"}, "added"=>[], "removed"=>[], "modified"=>["readme.md"]}, "repository"=>{"id"=>94484588, "name"=>"Hook_Testing", "full_name"=>"johnson-rl/Hook_Testing", "owner"=>{"name"=>"johnson-rl", "email"=>"johnson.rl@gmail.com", "login"=>"johnson-rl", "id"=>23468749, "avatar_url"=>"https://avatars1.githubusercontent.com/u/23468749?v=3", "gravatar_id"=>"", "url"=>"https://api.github.com/users/johnson-rl", "html_url"=>"https://github.com/johnson-rl", "followers_url"=>"https://api.github.com/users/johnson-rl/followers", "following_url"=>"https://api.github.com/users/johnson-rl/following{/other_user}", "gists_url"=>"https://api.github.com/users/johnson-rl/gists{/gist_id}", "starred_url"=>"https://api.github.com/users/johnson-rl/starred{/owner}{/repo}", "subscriptions_url"=>"https://api.github.com/users/johnson-rl/subscriptions", "organizations_url"=>"https://api.github.com/users/johnson-rl/orgs", "repos_url"=>"https://api.github.com/users/johnson-rl/repos", "events_url"=>"https://api.github.com/users/johnson-rl/events{/privacy}", "received_events_url"=>"https://api.github.com/users/johnson-rl/received_events", "type"=>"User", "site_admin"=>false}, "private"=>false, "html_url"=>"https://github.com/johnson-rl/Hook_Testing", "description"=>nil, "fork"=>false, "url"=>"https://github.com/johnson-rl/Hook_Testing", "forks_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/forks", "keys_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/keys{/key_id}", "collaborators_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/collaborators{/collaborator}", "teams_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/teams", "hooks_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/hooks", "issue_events_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/issues/events{/number}", "events_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/events", "assignees_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/assignees{/user}", "branches_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/branches{/branch}", "tags_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/tags", "blobs_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/git/blobs{/sha}", "git_tags_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/git/tags{/sha}", "git_refs_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/git/refs{/sha}", "trees_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/git/trees{/sha}", "statuses_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/statuses/{sha}", "languages_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/languages", "stargazers_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/stargazers", "contributors_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/contributors", "subscribers_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/subscribers", "subscription_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/subscription", "commits_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/commits{/sha}", "git_commits_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/git/commits{/sha}", "comments_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/comments{/number}", "issue_comment_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/issues/comments{/number}", "contents_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/contents/{+path}", "compare_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/compare/{base}...{head}", "merges_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/merges", "archive_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/{archive_format}{/ref}", "downloads_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/downloads", "issues_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/issues{/number}", "pulls_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/pulls{/number}", "milestones_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/milestones{/number}", "notifications_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/notifications{?since,all,participating}", "labels_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/labels{/name}", "releases_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/releases{/id}", "deployments_url"=>"https://api.github.com/repos/johnson-rl/Hook_Testing/deployments", "created_at"=>1497566924, "updated_at"=>"2017-06-15T22:48:44Z", "pushed_at"=>1498454706, "git_url"=>"git://github.com/johnson-rl/Hook_Testing.git", "ssh_url"=>"git@github.com:johnson-rl/Hook_Testing.git", "clone_url"=>"https://github.com/johnson-rl/Hook_Testing.git", "svn_url"=>"https://github.com/johnson-rl/Hook_Testing", "homepage"=>nil, "size"=>11, "stargazers_count"=>0, "watchers_count"=>0, "language"=>nil, "has_issues"=>true, "has_projects"=>true, "has_downloads"=>true, "has_wiki"=>true, "has_pages"=>false, "forks_count"=>0, "mirror_url"=>nil, "open_issues_count"=>0, "forks"=>0, "open_issues"=>0, "watchers"=>0, "default_branch"=>"master", "stargazers"=>0, "master_branch"=>"master"}, "pusher"=>{"name"=>"johnson-rl", "email"=>"johnson.rl@gmail.com"}, "sender"=>{"login"=>"johnson-rl", "id"=>23468749, "avatar_url"=>"https://avatars1.githubusercontent.com/u/23468749?v=3", "gravatar_id"=>"", "url"=>"https://api.github.com/users/johnson-rl", "html_url"=>"https://github.com/johnson-rl", "followers_url"=>"https://api.github.com/users/johnson-rl/followers", "following_url"=>"https://api.github.com/users/johnson-rl/following{/other_user}", "gists_url"=>"https://api.github.com/users/johnson-rl/gists{/gist_id}", "starred_url"=>"https://api.github.com/users/johnson-rl/starred{/owner}{/repo}", "subscriptions_url"=>"https://api.github.com/users/johnson-rl/subscriptions", "organizations_url"=>"https://api.github.com/users/johnson-rl/orgs", "repos_url"=>"https://api.github.com/users/johnson-rl/repos", "events_url"=>"https://api.github.com/users/johnson-rl/events{/privacy}", "received_events_url"=>"https://api.github.com/users/johnson-rl/received_events", "type"=>"User", "site_admin"=>false}, "commit"=>{}}

About