{"action":"created","issue":{"url":"https://api.github.com/repos/opticks-org/opticks/issues/2","repository_url":"https://api.github.com/repos/opticks-org/opticks","labels_url":"https://api.github.com/repos/opticks-org/opticks/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/opticks-org/opticks/issues/2/comments","events_url":"https://api.github.com/repos/opticks-org/opticks/issues/2/events","html_url":"https://github.com/opticks-org/opticks/issues/2","id":305736573,"number":2,"title":"Update or remove revision script","user":{"login":"bradh","id":174642,"avatar_url":"https://avatars2.githubusercontent.com/u/174642?v=4","gravatar_id":"","url":"https://api.github.com/users/bradh","html_url":"https://github.com/bradh","followers_url":"https://api.github.com/users/bradh/followers","following_url":"https://api.github.com/users/bradh/following{/other_user}","gists_url":"https://api.github.com/users/bradh/gists{/gist_id}","starred_url":"https://api.github.com/users/bradh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradh/subscriptions","organizations_url":"https://api.github.com/users/bradh/orgs","repos_url":"https://api.github.com/users/bradh/repos","events_url":"https://api.github.com/users/bradh/events{/privacy}","received_events_url":"https://api.github.com/users/bradh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-03-15T22:09:14Z","updated_at":"2018-03-16T13:57:03Z","closed_at":null,"author_association":"NONE","body":"https://github.com/opticks-org/opticks/blob/master/Code/update-build-revision.py is subversion based.\r\n"},"comment":{"url":"https://api.github.com/repos/opticks-org/opticks/issues/comments/373720762","html_url":"https://github.com/opticks-org/opticks/issues/2#issuecomment-373720762","issue_url":"https://api.github.com/repos/opticks-org/opticks/issues/2","id":373720762,"user":{"login":"dwcaraway","id":1282711,"avatar_url":"https://avatars0.githubusercontent.com/u/1282711?v=4","gravatar_id":"","url":"https://api.github.com/users/dwcaraway","html_url":"https://github.com/dwcaraway","followers_url":"https://api.github.com/users/dwcaraway/followers","following_url":"https://api.github.com/users/dwcaraway/following{/other_user}","gists_url":"https://api.github.com/users/dwcaraway/gists{/gist_id}","starred_url":"https://api.github.com/users/dwcaraway/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwcaraway/subscriptions","organizations_url":"https://api.github.com/users/dwcaraway/orgs","repos_url":"https://api.github.com/users/dwcaraway/repos","events_url":"https://api.github.com/users/dwcaraway/events{/privacy}","received_events_url":"https://api.github.com/users/dwcaraway/received_events","type":"User","site_admin":false},"created_at":"2018-03-16T13:57:03Z","updated_at":"2018-03-16T13:57:03Z","author_association":"NONE","body":"What about the [git describe](https://git-scm.com/docs/git-describe) output? Below is result of running the command on `master`:\r\n\r\n```\r\n$ git describe\r\nv4.12.0rc1-16-g99b6f72d\r\n```\r\nThis indicates that `HEAD` has a latest tag `v4.12.0rc1`, that we've had `16` commits since then and that the SHA1 hash is `99b6f72d` which corresponds to \r\n\r\n```\r\n$ git rev-parse --short HEAD\r\n99b6f72d\r\n```\r\nIf there are no commits since the last tag (e.g. an official release build ), then the output would just be the tag name.\r\n\r\n```\r\n$ git checkout v4.12.0rc1\r\n$ git describe\r\n// v4.12.0rc1\r\n```\r\n\r\nThere are chances of collisions with history rewrites but given this identifier on a deployed instance, you'd be able to tell what they're running."}}
{"actor":{"display_login":"dwcaraway"}}