{"action":"created","issue":{"url":"https://api.github.com/repos/backdrop-contrib/githubapi/issues/7","repository_url":"https://api.github.com/repos/backdrop-contrib/githubapi","labels_url":"https://api.github.com/repos/backdrop-contrib/githubapi/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/backdrop-contrib/githubapi/issues/7/comments","events_url":"https://api.github.com/repos/backdrop-contrib/githubapi/issues/7/events","html_url":"https://github.com/backdrop-contrib/githubapi/issues/7","id":143048863,"number":7,"title":"Document provided hooks","user":{"login":"quicksketch","id":100206,"avatar_url":"https://avatars.githubusercontent.com/u/100206?v=3","gravatar_id":"","url":"https://api.github.com/users/quicksketch","html_url":"https://github.com/quicksketch","followers_url":"https://api.github.com/users/quicksketch/followers","following_url":"https://api.github.com/users/quicksketch/following{/other_user}","gists_url":"https://api.github.com/users/quicksketch/gists{/gist_id}","starred_url":"https://api.github.com/users/quicksketch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quicksketch/subscriptions","organizations_url":"https://api.github.com/users/quicksketch/orgs","repos_url":"https://api.github.com/users/quicksketch/repos","events_url":"https://api.github.com/users/quicksketch/events{/privacy}","received_events_url":"https://api.github.com/users/quicksketch/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/backdrop-contrib/githubapi/labels/Better%20documentation","name":"Better documentation","color":"fbca04"},{"url":"https://api.github.com/repos/backdrop-contrib/githubapi/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/backdrop-contrib/githubapi/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":{"login":"Gormartsen","id":5018896,"avatar_url":"https://avatars.githubusercontent.com/u/5018896?v=3","gravatar_id":"","url":"https://api.github.com/users/Gormartsen","html_url":"https://github.com/Gormartsen","followers_url":"https://api.github.com/users/Gormartsen/followers","following_url":"https://api.github.com/users/Gormartsen/following{/other_user}","gists_url":"https://api.github.com/users/Gormartsen/gists{/gist_id}","starred_url":"https://api.github.com/users/Gormartsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gormartsen/subscriptions","organizations_url":"https://api.github.com/users/Gormartsen/orgs","repos_url":"https://api.github.com/users/Gormartsen/repos","events_url":"https://api.github.com/users/Gormartsen/events{/privacy}","received_events_url":"https://api.github.com/users/Gormartsen/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2016-03-23T18:51:32Z","updated_at":"2016-03-23T18:54:34Z","closed_at":null,"body":"While reviewing the changes to project_github.module in https://github.com/backdrop-contrib/project/pull/13, I wanted to know what each parameter was that got passed into `hook_githubapi_payload()`:\r\n\r\n```php\r\n /**\r\n * Implements hook_githubapi_payload().\r\n */\r\nfunction project_github_githubapi_payload($event_name, $record, $repo) {\r\n  ...\r\n}\r\n```\r\n\r\n`$record` and `$repo` are mysterious parameters, without proper documentation it can be difficult to figure out what they contain. Typically modules that provide hooks also have a `githubapi.api.php` file that contains all their documentation. e.g. https://github.com/backdrop-contrib/flag/blob/1.x-1.x/flag.api.php or https://github.com/backdrop-contrib/webform/blob/1.x-1.x/webform.api.php"},"comment":{"url":"https://api.github.com/repos/backdrop-contrib/githubapi/issues/comments/200493947","html_url":"https://github.com/backdrop-contrib/githubapi/issues/7#issuecomment-200493947","issue_url":"https://api.github.com/repos/backdrop-contrib/githubapi/issues/7","id":200493947,"user":{"login":"Gormartsen","id":5018896,"avatar_url":"https://avatars.githubusercontent.com/u/5018896?v=3","gravatar_id":"","url":"https://api.github.com/users/Gormartsen","html_url":"https://github.com/Gormartsen","followers_url":"https://api.github.com/users/Gormartsen/followers","following_url":"https://api.github.com/users/Gormartsen/following{/other_user}","gists_url":"https://api.github.com/users/Gormartsen/gists{/gist_id}","starred_url":"https://api.github.com/users/Gormartsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gormartsen/subscriptions","organizations_url":"https://api.github.com/users/Gormartsen/orgs","repos_url":"https://api.github.com/users/Gormartsen/repos","events_url":"https://api.github.com/users/Gormartsen/events{/privacy}","received_events_url":"https://api.github.com/users/Gormartsen/received_events","type":"User","site_admin":false},"created_at":"2016-03-23T18:54:34Z","updated_at":"2016-03-23T18:54:34Z","body":"project_github_githubapi_payload required better documentation."}}