{"action":"created","issue":{"url":"https://api.github.com/repos/AtomicGameEngine/AtomicGameEngine/issues/580","labels_url":"https://api.github.com/repos/AtomicGameEngine/AtomicGameEngine/issues/580/labels{/name}","comments_url":"https://api.github.com/repos/AtomicGameEngine/AtomicGameEngine/issues/580/comments","events_url":"https://api.github.com/repos/AtomicGameEngine/AtomicGameEngine/issues/580/events","html_url":"https://github.com/AtomicGameEngine/AtomicGameEngine/issues/580","id":125485418,"number":580,"title":"Add git commit hash to build and make sure it is viewable from Atomic Editor's about dialog","user":{"login":"JoshEngebretson","id":376203,"avatar_url":"https://avatars.githubusercontent.com/u/376203?v=3","gravatar_id":"","url":"https://api.github.com/users/JoshEngebretson","html_url":"https://github.com/JoshEngebretson","followers_url":"https://api.github.com/users/JoshEngebretson/followers","following_url":"https://api.github.com/users/JoshEngebretson/following{/other_user}","gists_url":"https://api.github.com/users/JoshEngebretson/gists{/gist_id}","starred_url":"https://api.github.com/users/JoshEngebretson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoshEngebretson/subscriptions","organizations_url":"https://api.github.com/users/JoshEngebretson/orgs","repos_url":"https://api.github.com/users/JoshEngebretson/repos","events_url":"https://api.github.com/users/JoshEngebretson/events{/privacy}","received_events_url":"https://api.github.com/users/JoshEngebretson/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/AtomicGameEngine/AtomicGameEngine/labels/difficulty:%202","name":"difficulty: 2","color":"bfe5bf"},{"url":"https://api.github.com/repos/AtomicGameEngine/AtomicGameEngine/labels/priority:%20medium","name":"priority: medium","color":"fbca04"},{"url":"https://api.github.com/repos/AtomicGameEngine/AtomicGameEngine/labels/type:%20enhancement","name":"type: enhancement","color":"bfdadc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-01-07T21:11:42Z","updated_at":"2016-01-23T16:28:45Z","closed_at":null,"body":""},"comment":{"url":"https://api.github.com/repos/AtomicGameEngine/AtomicGameEngine/issues/comments/174198032","html_url":"https://github.com/AtomicGameEngine/AtomicGameEngine/issues/580#issuecomment-174198032","issue_url":"https://api.github.com/repos/AtomicGameEngine/AtomicGameEngine/issues/580","id":174198032,"user":{"login":"JoshEngebretson","id":376203,"avatar_url":"https://avatars.githubusercontent.com/u/376203?v=3","gravatar_id":"","url":"https://api.github.com/users/JoshEngebretson","html_url":"https://github.com/JoshEngebretson","followers_url":"https://api.github.com/users/JoshEngebretson/followers","following_url":"https://api.github.com/users/JoshEngebretson/following{/other_user}","gists_url":"https://api.github.com/users/JoshEngebretson/gists{/gist_id}","starred_url":"https://api.github.com/users/JoshEngebretson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoshEngebretson/subscriptions","organizations_url":"https://api.github.com/users/JoshEngebretson/orgs","repos_url":"https://api.github.com/users/JoshEngebretson/repos","events_url":"https://api.github.com/users/JoshEngebretson/events{/privacy}","received_events_url":"https://api.github.com/users/JoshEngebretson/received_events","type":"User","site_admin":false},"created_at":"2016-01-23T16:28:45Z","updated_at":"2016-01-23T16:28:45Z","body":"\r\nHi @WilliamTambellini,  \r\n\r\nI am liking this answer from that thread: http://stackoverflow.com/a/4318642\r\n\r\nI think we should generate a source file in the Artifacts folder, much like the generated script binding sources, this should be in a platform specific folder (like the generated script bindings, which would let us include some per-platform compile time info as well).\r\n\r\nIt would be good to make a header/cpp as with the linked Stack Overflow answer, to avoid complete recompiles every time the HEAD commit changes (add_definitions would cause this).  \r\n\r\nWe can expand upon this in the engine sources with some utility to get the build time, whether it is a release/debug build, the git commit hash, etc for display in the About dialog.  We can also build upon this to use the git commit to see whether there is a newer version of the Editor available for  download (based on build hash).\r\n\r\nThis can be done for local dev builds first (Build/Scripts) and then be factored into the CI system (Build/CIScripts), importantly for local dev builds, the cmake script shouldn't fail if the git command cannot be found or if there was an error getting the revision, using an error hash (like all 0's) instead"}}