{"action":"opened","issue":{"url":"https://api.github.com/repos/toggl/toggldesktop/issues/2714","repository_url":"https://api.github.com/repos/toggl/toggldesktop","labels_url":"https://api.github.com/repos/toggl/toggldesktop/issues/2714/labels{/name}","comments_url":"https://api.github.com/repos/toggl/toggldesktop/issues/2714/comments","events_url":"https://api.github.com/repos/toggl/toggldesktop/issues/2714/events","html_url":"https://github.com/toggl/toggldesktop/issues/2714","id":392077546,"node_id":"MDU6SXNzdWUzOTIwNzc1NDY=","number":2714,"title":"Support \"make fmt\" as a Run Script in Xcode project","user":{"login":"NghiaTranUIT","id":5878421,"node_id":"MDQ6VXNlcjU4Nzg0MjE=","avatar_url":"https://avatars1.githubusercontent.com/u/5878421?v=4","gravatar_id":"","url":"https://api.github.com/users/NghiaTranUIT","html_url":"https://github.com/NghiaTranUIT","followers_url":"https://api.github.com/users/NghiaTranUIT/followers","following_url":"https://api.github.com/users/NghiaTranUIT/following{/other_user}","gists_url":"https://api.github.com/users/NghiaTranUIT/gists{/gist_id}","starred_url":"https://api.github.com/users/NghiaTranUIT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NghiaTranUIT/subscriptions","organizations_url":"https://api.github.com/users/NghiaTranUIT/orgs","repos_url":"https://api.github.com/users/NghiaTranUIT/repos","events_url":"https://api.github.com/users/NghiaTranUIT/events{/privacy}","received_events_url":"https://api.github.com/users/NghiaTranUIT/received_events","type":"User","site_admin":false},"labels":[{"id":81804050,"node_id":"MDU6TGFiZWw4MTgwNDA1MA==","url":"https://api.github.com/repos/toggl/toggldesktop/labels/macOs","name":"macOs","color":"bfe5bf","default":false}],"state":"open","locked":false,"assignee":{"login":"NghiaTranUIT","id":5878421,"node_id":"MDQ6VXNlcjU4Nzg0MjE=","avatar_url":"https://avatars1.githubusercontent.com/u/5878421?v=4","gravatar_id":"","url":"https://api.github.com/users/NghiaTranUIT","html_url":"https://github.com/NghiaTranUIT","followers_url":"https://api.github.com/users/NghiaTranUIT/followers","following_url":"https://api.github.com/users/NghiaTranUIT/following{/other_user}","gists_url":"https://api.github.com/users/NghiaTranUIT/gists{/gist_id}","starred_url":"https://api.github.com/users/NghiaTranUIT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NghiaTranUIT/subscriptions","organizations_url":"https://api.github.com/users/NghiaTranUIT/orgs","repos_url":"https://api.github.com/users/NghiaTranUIT/repos","events_url":"https://api.github.com/users/NghiaTranUIT/events{/privacy}","received_events_url":"https://api.github.com/users/NghiaTranUIT/received_events","type":"User","site_admin":false},"assignees":[{"login":"NghiaTranUIT","id":5878421,"node_id":"MDQ6VXNlcjU4Nzg0MjE=","avatar_url":"https://avatars1.githubusercontent.com/u/5878421?v=4","gravatar_id":"","url":"https://api.github.com/users/NghiaTranUIT","html_url":"https://github.com/NghiaTranUIT","followers_url":"https://api.github.com/users/NghiaTranUIT/followers","following_url":"https://api.github.com/users/NghiaTranUIT/following{/other_user}","gists_url":"https://api.github.com/users/NghiaTranUIT/gists{/gist_id}","starred_url":"https://api.github.com/users/NghiaTranUIT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NghiaTranUIT/subscriptions","organizations_url":"https://api.github.com/users/NghiaTranUIT/orgs","repos_url":"https://api.github.com/users/NghiaTranUIT/repos","events_url":"https://api.github.com/users/NghiaTranUIT/events{/privacy}","received_events_url":"https://api.github.com/users/NghiaTranUIT/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-12-18T09:57:50Z","updated_at":"2018-12-18T09:57:50Z","closed_at":null,"author_association":"MEMBER","body":"\r\n### 💻 Environment\r\nPlatform: macOS\r\n\r\n### Problem\r\n- We forgot to run `make fmt` when pushing the commit to Desktop Repo\r\n- Redundant format commits like `fmt (mac)`\r\n- It's genuinely error prone procedure 🐞 \r\n \r\n### 📒 Description\r\nBy executing `make fmt` whenever we run the app, it guarantees that our code (library and mac UI) are formatted before pushing to the repo.\r\n\r\n### ⭐️ Why do you want this?\r\nThere are certain benefits:\r\n- It's automation 🤖 \r\n- No unnecessary fmt commit\r\n\r\n### Suggestion\r\nThe Run Script could look like\r\n```bash\r\n# Type a script or drag a script file from your workspace to insert its path.\r\nset -e\r\n\r\nif ! which uncrustify > /dev/null; then\r\n    echo \"warning: Uncrustify is not installed.\"\r\nelse\r\n    cd $SRCROOT/../../../../\r\n    make fmt\r\nfi\r\n```\r\n\r\n\r\n"}}
{"actor":{"display_login":"NghiaTranUIT"}}