{"id":28074227,"url":"https://github.com/peek/peek-git","last_synced_at":"2026-03-06T04:31:51.201Z","repository":{"id":7352727,"uuid":"8676864","full_name":"peek/peek-git","owner":"peek","description":"Take a peek into the Git info of your Rails application.","archived":false,"fork":false,"pushed_at":"2018-10-20T17:15:25.000Z","size":200,"stargazers_count":17,"open_issues_count":1,"forks_count":8,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-15T01:40:36.212Z","etag":null,"topics":["git","peek","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/peek.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-03-09T22:01:04.000Z","updated_at":"2023-12-01T21:39:16.000Z","dependencies_parsed_at":"2022-08-20T15:20:50.668Z","dependency_job_id":null,"html_url":"https://github.com/peek/peek-git","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/peek/peek-git","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peek%2Fpeek-git","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peek%2Fpeek-git/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peek%2Fpeek-git/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peek%2Fpeek-git/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peek","download_url":"https://codeload.github.com/peek/peek-git/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peek%2Fpeek-git/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29490360,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T19:29:10.908Z","status":"ssl_error","status_checked_at":"2026-02-15T19:29:10.419Z","response_time":118,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["git","peek","ruby"],"created_at":"2025-05-12T23:32:10.386Z","updated_at":"2026-03-06T04:31:51.183Z","avatar_url":"https://github.com/peek.png","language":"Ruby","readme":"# Peek::Git\n\nTake a peek into the Git info of your Rails application.\n\nThings this peek view provides:\n\n- View the current branch name\n- Compare the diff of the current revision on your GitHub repo\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'peek-git'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install peek-git\n\n## Usage\n\nAdd the following to your `config/initializers/peek.rb`:\n\n```ruby\nPeek.into Peek::Views::Git\n```\n\nYou will need to set the GitHub project's name with owner if you plan on\ncomparing the current ref against your default branch on GitHub.\n\n```ruby\n# nwo - name with owner - owner/name\nPeek.into Peek::Views::Git, :nwo =\u003e 'dewski/json_builder'\n```\n\nYou can also manually set each of the following optional options:\n\n- SHA\n- Default Branch (master by default)\n- Branch Name\n- Domain Name (github.com by default)\n- Protocol (https by default)\n\n```ruby\nPeek.into Peek::Views::Git, \\\n  :sha =\u003e '740f6b7b11b8717efaf51ddb98ce23394544f7e0',\n  :default_branch =\u003e 'rails4.0',\n  :branch_name =\u003e 'integration',\n  :domain =\u003e 'github.com',\n  :protocol =\u003e 'https'\n```\n\n## Using Peek::Git on Heroku\n\nUnfortunately Heroku [removes](https://devcenter.heroku.com/articles/slug-compiler#compilation)\nthe .git directory during slug compilation which doesn't make it possible to\nview the current deployed SHA or branch.\n\nThe one workaround is to set the GIT_SHA and GIT_BRANCH ENV variables within\nyour deploy process.\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeek%2Fpeek-git","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeek%2Fpeek-git","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeek%2Fpeek-git/lists"}