{"action":"created","issue":{"url":"https://api.github.com/repos/jekyll/github-metadata/issues/131","repository_url":"https://api.github.com/repos/jekyll/github-metadata","labels_url":"https://api.github.com/repos/jekyll/github-metadata/issues/131/labels{/name}","comments_url":"https://api.github.com/repos/jekyll/github-metadata/issues/131/comments","events_url":"https://api.github.com/repos/jekyll/github-metadata/issues/131/events","html_url":"https://github.com/jekyll/github-metadata/issues/131","id":347639052,"node_id":"MDU6SXNzdWUzNDc2MzkwNTI=","number":131,"title":"Metadata `build_revision` not exposed from API","user":{"login":"apiraino","id":6098822,"node_id":"MDQ6VXNlcjYwOTg4MjI=","avatar_url":"https://avatars2.githubusercontent.com/u/6098822?v=4","gravatar_id":"","url":"https://api.github.com/users/apiraino","html_url":"https://github.com/apiraino","followers_url":"https://api.github.com/users/apiraino/followers","following_url":"https://api.github.com/users/apiraino/following{/other_user}","gists_url":"https://api.github.com/users/apiraino/gists{/gist_id}","starred_url":"https://api.github.com/users/apiraino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apiraino/subscriptions","organizations_url":"https://api.github.com/users/apiraino/orgs","repos_url":"https://api.github.com/users/apiraino/repos","events_url":"https://api.github.com/users/apiraino/events{/privacy}","received_events_url":"https://api.github.com/users/apiraino/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":17,"created_at":"2018-08-04T18:32:06Z","updated_at":"2019-01-02T20:18:44Z","closed_at":"2019-01-02T20:18:45Z","author_association":"NONE","body":"Hello,\r\n\r\nI'm building locally a docker container with jekyll + [jekyll-theme-hacker](https://github.com/pages-themes/hacker) to test changes before pushing to [apiraino.github.io](https://github.com/apiraino/apiraino.github.io).\r\n\r\nThat theme is causing `jekyll serve` to fail. After some trial-and-error I managed to nail down the culprit to the variable [`site.github.build_revision`](https://github.com/pages-themes/hacker/blob/master/_layouts/default.html#L7) which (my guess) is not exposed.\r\n\r\nI can workaround running the container with:\r\n```\r\ndocker run -p 80:4000 \\\r\n  -e JEKYLL_BUILD_REVISION=`git rev-parse HEAD` \\\r\n  -e JEKYLL_GITHUB_TOKEN=xxxx \\\r\n  -v $(pwd):/site myjekyll:theme-hacker\r\n```\r\nbut I'm not sure this is the cleanest solution.\r\n\r\nI'm not sure which API is not exposing this piece of metadata: is this an issue with `github-metadata` Ruby pkg or the Github API itself?\r\n\r\n(possibly related to #122)?\r\n\r\nthanks for an opinion on this"},"comment":{"url":"https://api.github.com/repos/jekyll/github-metadata/issues/comments/450973098","html_url":"https://github.com/jekyll/github-metadata/issues/131#issuecomment-450973098","issue_url":"https://api.github.com/repos/jekyll/github-metadata/issues/131","id":450973098,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MDk3MzA5OA==","user":{"login":"parkr","id":237985,"node_id":"MDQ6VXNlcjIzNzk4NQ==","avatar_url":"https://avatars0.githubusercontent.com/u/237985?v=4","gravatar_id":"","url":"https://api.github.com/users/parkr","html_url":"https://github.com/parkr","followers_url":"https://api.github.com/users/parkr/followers","following_url":"https://api.github.com/users/parkr/following{/other_user}","gists_url":"https://api.github.com/users/parkr/gists{/gist_id}","starred_url":"https://api.github.com/users/parkr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parkr/subscriptions","organizations_url":"https://api.github.com/users/parkr/orgs","repos_url":"https://api.github.com/users/parkr/repos","events_url":"https://api.github.com/users/parkr/events{/privacy}","received_events_url":"https://api.github.com/users/parkr/received_events","type":"User","site_admin":true},"created_at":"2019-01-02T20:18:44Z","updated_at":"2019-01-02T20:18:44Z","author_association":"MEMBER","body":"v2.10.0 is out and has detection for git! We can move the issue of extracting the code for detecting `git`'s existence out to a separate issue 😄 "}}
{"actor":{"display_login":"parkr"}}