Code Monkey home page Code Monkey logo

github-types's Introduction

This package contains types used in the GitHub API. It is incomplete and only covers a subset of the whole API.

See also related package github which not only contains the types but also a client for the API.

github-types's People

Contributors

werehamster avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

zaytsev

github-types's Issues

"push" event handling broken

I get the following error when receiving a "push" event from GitHub: ParseError "Error in $: key \"size\" not present".

This is a sample JSON event body:

{
  "ref": "refs/heads/boop",
  "before": "b6de7903a74c8a369b194a63d045c9aed1064af3",
  "after": "0000000000000000000000000000000000000000",
  "created": false,
  "deleted": true,
  "forced": false,
  "base_ref": null,
  "compare": "https://github.com/TokTok/github-tools/compare/b6de7903a74c...000000000000",
  "commits": [],
  "head_commit": null,
  "repository": {
    "id": 69141484,
    "name": "github-tools",
    "full_name": "TokTok/github-tools",
    "owner": {
      "name": "TokTok",
      "email": "[email protected]"
    },
    "private": false,
    "html_url": "https://github.com/TokTok/github-tools",
    "description": "Small GitHub utilities like pull-status and changelog generator",
    "fork": false,
    "url": "https://github.com/TokTok/github-tools",
    "forks_url": "https://api.github.com/repos/TokTok/github-tools/forks",
    "keys_url": "https://api.github.com/repos/TokTok/github-tools/keys{/key_id}",
    "collaborators_url": "https://api.github.com/repos/TokTok/github-tools/collaborators{/collaborator}",
    "teams_url": "https://api.github.com/repos/TokTok/github-tools/teams",
    "hooks_url": "https://api.github.com/repos/TokTok/github-tools/hooks",
    "issue_events_url": "https://api.github.com/repos/TokTok/github-tools/issues/events{/number}",
    "events_url": "https://api.github.com/repos/TokTok/github-tools/events",
    "assignees_url": "https://api.github.com/repos/TokTok/github-tools/assignees{/user}",
    "branches_url": "https://api.github.com/repos/TokTok/github-tools/branches{/branch}",
    "tags_url": "https://api.github.com/repos/TokTok/github-tools/tags",
    "blobs_url": "https://api.github.com/repos/TokTok/github-tools/git/blobs{/sha}",
    "git_tags_url": "https://api.github.com/repos/TokTok/github-tools/git/tags{/sha}",
    "git_refs_url": "https://api.github.com/repos/TokTok/github-tools/git/refs{/sha}",
    "trees_url": "https://api.github.com/repos/TokTok/github-tools/git/trees{/sha}",
    "statuses_url": "https://api.github.com/repos/TokTok/github-tools/statuses/{sha}",
    "languages_url": "https://api.github.com/repos/TokTok/github-tools/languages",
    "stargazers_url": "https://api.github.com/repos/TokTok/github-tools/stargazers",
    "contributors_url": "https://api.github.com/repos/TokTok/github-tools/contributors",
    "subscribers_url": "https://api.github.com/repos/TokTok/github-tools/subscribers",
    "subscription_url": "https://api.github.com/repos/TokTok/github-tools/subscription",
    "commits_url": "https://api.github.com/repos/TokTok/github-tools/commits{/sha}",
    "git_commits_url": "https://api.github.com/repos/TokTok/github-tools/git/commits{/sha}",
    "comments_url": "https://api.github.com/repos/TokTok/github-tools/comments{/number}",
    "issue_comment_url": "https://api.github.com/repos/TokTok/github-tools/issues/comments{/number}",
    "contents_url": "https://api.github.com/repos/TokTok/github-tools/contents/{+path}",
    "compare_url": "https://api.github.com/repos/TokTok/github-tools/compare/{base}...{head}",
    "merges_url": "https://api.github.com/repos/TokTok/github-tools/merges",
    "archive_url": "https://api.github.com/repos/TokTok/github-tools/{archive_format}{/ref}",
    "downloads_url": "https://api.github.com/repos/TokTok/github-tools/downloads",
    "issues_url": "https://api.github.com/repos/TokTok/github-tools/issues{/number}",
    "pulls_url": "https://api.github.com/repos/TokTok/github-tools/pulls{/number}",
    "milestones_url": "https://api.github.com/repos/TokTok/github-tools/milestones{/number}",
    "notifications_url": "https://api.github.com/repos/TokTok/github-tools/notifications{?since,all,participating}",
    "labels_url": "https://api.github.com/repos/TokTok/github-tools/labels{/name}",
    "releases_url": "https://api.github.com/repos/TokTok/github-tools/releases{/id}",
    "deployments_url": "https://api.github.com/repos/TokTok/github-tools/deployments",
    "created_at": 1474774012,
    "updated_at": "2016-11-15T22:46:07Z",
    "pushed_at": 1481755655,
    "git_url": "git://github.com/TokTok/github-tools.git",
    "ssh_url": "[email protected]:TokTok/github-tools.git",
    "clone_url": "https://github.com/TokTok/github-tools.git",
    "svn_url": "https://github.com/TokTok/github-tools",
    "homepage": "",
    "size": 51,
    "stargazers_count": 1,
    "watchers_count": 1,
    "language": "Haskell",
    "has_issues": true,
    "has_downloads": true,
    "has_wiki": false,
    "has_pages": false,
    "forks_count": 2,
    "mirror_url": null,
    "open_issues_count": 1,
    "forks": 2,
    "open_issues": 1,
    "watchers": 1,
    "default_branch": "master",
    "stargazers": 1,
    "master_branch": "master",
    "organization": "TokTok"
  },
  "pusher": {
    "name": "iphydf",
    "email": "[email protected]"
  },
  "organization": {
    "login": "TokTok",
    "id": 17427091,
    "url": "https://api.github.com/orgs/TokTok",
    "repos_url": "https://api.github.com/orgs/TokTok/repos",
    "events_url": "https://api.github.com/orgs/TokTok/events",
    "hooks_url": "https://api.github.com/orgs/TokTok/hooks",
    "issues_url": "https://api.github.com/orgs/TokTok/issues",
    "members_url": "https://api.github.com/orgs/TokTok/members{/member}",
    "public_members_url": "https://api.github.com/orgs/TokTok/public_members{/member}",
    "avatar_url": "https://avatars.githubusercontent.com/u/17427091?v=3",
    "description": "#toktok on Freenode"
  },
  "sender": {
    "login": "iphydf",
    "id": 10647936,
    "avatar_url": "https://avatars.githubusercontent.com/u/10647936?v=3",
    "gravatar_id": "",
    "url": "https://api.github.com/users/iphydf",
    "html_url": "https://github.com/iphydf",
    "followers_url": "https://api.github.com/users/iphydf/followers",
    "following_url": "https://api.github.com/users/iphydf/following{/other_user}",
    "gists_url": "https://api.github.com/users/iphydf/gists{/gist_id}",
    "starred_url": "https://api.github.com/users/iphydf/starred{/owner}{/repo}",
    "subscriptions_url": "https://api.github.com/users/iphydf/subscriptions",
    "organizations_url": "https://api.github.com/users/iphydf/orgs",
    "repos_url": "https://api.github.com/users/iphydf/repos",
    "events_url": "https://api.github.com/users/iphydf/events{/privacy}",
    "received_events_url": "https://api.github.com/users/iphydf/received_events",
    "type": "User",
    "site_admin": false
  }
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.