{"action":"created","issue":{"url":"https://api.github.com/repos/lobodol/drone-flight-controller/issues/8","repository_url":"https://api.github.com/repos/lobodol/drone-flight-controller","labels_url":"https://api.github.com/repos/lobodol/drone-flight-controller/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/lobodol/drone-flight-controller/issues/8/comments","events_url":"https://api.github.com/repos/lobodol/drone-flight-controller/issues/8/events","html_url":"https://github.com/lobodol/drone-flight-controller/issues/8","id":336591569,"node_id":"MDU6SXNzdWUzMzY1OTE1Njk=","number":8,"title":"Use constants for status","user":{"login":"lobodol","id":7249581,"node_id":"MDQ6VXNlcjcyNDk1ODE=","avatar_url":"https://avatars0.githubusercontent.com/u/7249581?v=4","gravatar_id":"","url":"https://api.github.com/users/lobodol","html_url":"https://github.com/lobodol","followers_url":"https://api.github.com/users/lobodol/followers","following_url":"https://api.github.com/users/lobodol/following{/other_user}","gists_url":"https://api.github.com/users/lobodol/gists{/gist_id}","starred_url":"https://api.github.com/users/lobodol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lobodol/subscriptions","organizations_url":"https://api.github.com/users/lobodol/orgs","repos_url":"https://api.github.com/users/lobodol/repos","events_url":"https://api.github.com/users/lobodol/events{/privacy}","received_events_url":"https://api.github.com/users/lobodol/received_events","type":"User","site_admin":false},"labels":[{"id":244895821,"node_id":"MDU6TGFiZWwyNDQ4OTU4MjE=","url":"https://api.github.com/repos/lobodol/drone-flight-controller/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-28T12:01:09Z","updated_at":"2018-06-28T12:10:44Z","closed_at":"2018-06-28T12:10:44Z","author_association":"OWNER","body":"Currently, the function `isStarted()` uses hard-coded values `0`, `1` & `2` to manage status.\r\nUsing constants instead would be more conveniant.\r\nFor instance :\r\n\r\n```c\r\n#define STOPPED  0\r\n#define STARTING 1\r\n#define STARTED  2\r\n\r\nint status = STOPPED;\r\n\r\nbool isStarted()\r\n{\r\n  return status == STARTED;\r\n}\r\n```\r\n\r\nIt is then easier to understand what is done is this function."},"comment":{"url":"https://api.github.com/repos/lobodol/drone-flight-controller/issues/comments/401013237","html_url":"https://github.com/lobodol/drone-flight-controller/issues/8#issuecomment-401013237","issue_url":"https://api.github.com/repos/lobodol/drone-flight-controller/issues/8","id":401013237,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMTAxMzIzNw==","user":{"login":"lobodol","id":7249581,"node_id":"MDQ6VXNlcjcyNDk1ODE=","avatar_url":"https://avatars0.githubusercontent.com/u/7249581?v=4","gravatar_id":"","url":"https://api.github.com/users/lobodol","html_url":"https://github.com/lobodol","followers_url":"https://api.github.com/users/lobodol/followers","following_url":"https://api.github.com/users/lobodol/following{/other_user}","gists_url":"https://api.github.com/users/lobodol/gists{/gist_id}","starred_url":"https://api.github.com/users/lobodol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lobodol/subscriptions","organizations_url":"https://api.github.com/users/lobodol/orgs","repos_url":"https://api.github.com/users/lobodol/repos","events_url":"https://api.github.com/users/lobodol/events{/privacy}","received_events_url":"https://api.github.com/users/lobodol/received_events","type":"User","site_admin":false},"created_at":"2018-06-28T12:10:44Z","updated_at":"2018-06-28T12:10:44Z","author_association":"OWNER","body":"Pull request merged"}}
{"actor":{"display_login":"lobodol"}}