{"id":21135846,"url":"https://github.com/kyoshidajp/tosa","last_synced_at":"2025-07-09T03:33:20.235Z","repository":{"id":57544267,"uuid":"115899189","full_name":"kyoshidajp/tosa","owner":"kyoshidajp","description":"Open pull request page from commit hash tool","archived":false,"fork":false,"pushed_at":"2018-04-07T08:30:35.000Z","size":57,"stargazers_count":13,"open_issues_count":3,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-06-20T08:11:23.431Z","etag":null,"topics":["git","github","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","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/kyoshidajp.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-01T04:27:33.000Z","updated_at":"2021-11-26T20:36:53.000Z","dependencies_parsed_at":"2022-09-16T23:02:01.663Z","dependency_job_id":null,"html_url":"https://github.com/kyoshidajp/tosa","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyoshidajp%2Ftosa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyoshidajp%2Ftosa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyoshidajp%2Ftosa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyoshidajp%2Ftosa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kyoshidajp","download_url":"https://codeload.github.com/kyoshidajp/tosa/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225482437,"owners_count":17481212,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","github","golang"],"created_at":"2024-11-20T06:59:21.208Z","updated_at":"2024-11-20T06:59:21.862Z","avatar_url":"https://github.com/kyoshidajp.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TOSA\n\n[![GitHub release](https://img.shields.io/github/release/kyoshidajp/tosa.svg?style=flat-square)][release]\n[![Travis](https://travis-ci.org/kyoshidajp/tosa.svg?branch=master)](https://travis-ci.org/kyoshidajp/tosa)\n[![Go Documentation](http://img.shields.io/badge/go-documentation-blue.svg?style=flat-square)][godocs]\n[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)][license]\n\n[release]: https://github.com/kyoshidajp/tosa/releases\n[license]: https://github.com/kyoshidajp/tosa/blob/master/LICENSE\n[godocs]: http://godoc.org/github.com/kyoshidajp/tosa\n\n**TOSA** is **O**pen **S**ource **A**vailable.\n\nOpen pull request page or get pull request data from sha(commit hash). You can more easily find why the code is included by the page:mag_right:\n\n![tosa1](https://user-images.githubusercontent.com/3317191/37557365-c279fabe-2a46-11e8-9c68-2c65f9862132.gif)\n\nIf you want to run on VS Code? You can get VS Code extension from [Marketplace](https://marketplace.visualstudio.com/items?itemName=kyoshidajp.vscode-tosa).\n\n## Usage\n\n```\n$ tosa \u003csha\u003e\n```\n\n### Options\n\n```\n-u, --url      Print the pull request url.\n\n-a, --apiurl   Print the issue API url.\n\n-n, --newline  If -u(--url) or -a(--apiurl) option is specified, print\n               the url with newline character at last.\n\n-d, --debug    Enable debug mode.\n               Print debug log.\n\n-h, --help     Show this help message and exit.\n\n-v, --version  Print current version.\n```\n\n*NOTE*: Set Github Access Token which has \"Full control of private repositories\" scope as an environment variable `GITHUB_TOKEN`. If not set, `tosa` requires your Github username and password(and two-factor auth code if you are setting). Because of using [GitHub API v3](https://developer.github.com/v3/).\n\n\n### from tig\n\nAdd the following key bindings in `$HOME/.tigrc`.\n\n```\nbind main O @tosa %(commit)\nbind blame O @tosa %(commit)\n```\n\nOpen page by O(Shift+o) in main or blame view.\n\n![tig_tosa](https://user-images.githubusercontent.com/3317191/37557359-a14d0c64-2a46-11e8-92b3-b1d446757b92.gif)\n\n### API URL\n\nGet GitHub issue API url.\n\n```\n$ tosa -a \u003csha\u003e\n```\n\nGet title of pull request via [jq](https://stedolan.github.io/jq/), for example.\n\n```\n$ curl -s `tosa -a c97e6909` | jq -r '.title'\nAdd short command option and usage\n```\n\nFor more information, see [Issues \\| GitHub Developer Guide](https://developer.github.com/v3/issues/#get-a-single-issue). \n\n## Install\n\n### Homebrew\n\nIf you have already installed [Homebrew](http://brew.sh/); then can install by brew command.\n\n```\n$ brew tap kyoshidajp/tosa\n$ brew install tosa\n```\n\n### go get\n\nIf you are a Golang developper/user; then execute `go get`.\n\n```\n$ go get -u github.com/kyoshidajp/tosa\n```\n\n### Manual\n\n1. Download binary which meets your system from [Releases](release).\n1. Unarchive it.\n1. Put `tosa` where you want.\n1. Add `tosa` path to `$PATH`.\n\n## Author\n\n[Katsuhiko YOSHIDA](https://github.com/kyoshidajp)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkyoshidajp%2Ftosa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkyoshidajp%2Ftosa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkyoshidajp%2Ftosa/lists"}