{"id":44316793,"url":"https://github.com/yumazak/bb","last_synced_at":"2026-02-11T05:13:20.826Z","repository":{"id":249487109,"uuid":"831441927","full_name":"yumazak/bb","owner":"yumazak","description":"bb is a tool that utilizes OpenAI's API to automatically generate Git branch names and pull request descriptions based on user input and Git diff information.","archived":false,"fork":false,"pushed_at":"2024-07-23T04:31:59.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-07-23T10:01:44.814Z","etag":null,"topics":["ai","chatgpt","git","productivity"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yumazak.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-20T15:01:06.000Z","updated_at":"2024-07-23T04:32:02.000Z","dependencies_parsed_at":"2024-07-21T09:43:57.112Z","dependency_job_id":null,"html_url":"https://github.com/yumazak/bb","commit_stats":null,"previous_names":["yumazak/bb"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yumazak/bb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yumazak%2Fbb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yumazak%2Fbb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yumazak%2Fbb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yumazak%2Fbb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yumazak","download_url":"https://codeload.github.com/yumazak/bb/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yumazak%2Fbb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29327145,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T03:52:29.695Z","status":"ssl_error","status_checked_at":"2026-02-11T03:52:23.094Z","response_time":97,"last_error":"SSL_read: 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":["ai","chatgpt","git","productivity"],"created_at":"2026-02-11T05:13:20.390Z","updated_at":"2026-02-11T05:13:20.820Z","avatar_url":"https://github.com/yumazak.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bb - Git Branch Name and Pull Request Assistant\n\n## 概要\n`bb`は、OpenAIのAPI(`gpt-4o-mini`)を利用して、Gitのブランチ名やプルリクエストの説明を自動生成するツールです。ユーザーの入力やGitの差分情報から、適切なブランチ名やプルリクエストのタイトル、変更点のリストを生成します。\n\n## インストール\n\n### 事前準備\nOpenAI APIキーを取得し、環境変数に設定。\n```bash\n$ export OPENAI_API_KEY=your-api-key\n```\n\nプロジェクトの依存関係をインストール。\n```bash\n$ rye sync\n```\n\nツールとしてインストール。\n```bash\n$ rye install .\n```\n\n## 使い方\n\n### コマンド\n以下のコマンドを使用して、ブランチ名やプルリクエストのタイトル、説明を生成できます。\n\n#### `pr` コマンド\nGitの差分からプルリクエストの変更点を生成します。\n\n```bash\n$ bb pr -b \u003cbranch\u003e [-d] [-n]\n-b, --branch：比較対象のブランチ（デフォルトは develop）。\n-d, --description：プルリクエストの説明を生成するフラグ。\n-n, --name：ブランチ名を生成するフラグ。\n\n# プルリクエストの変更点のみを生成\n$ bb pr -b main\n\n# プルリクエストの変更点とブランチ名を生成\n$ bb pr -b main -n\n\n# プルリクエストのタイトルと変更点を生成\n$ bb pr -b main -d\n\n# プルリクエストのタイトル、変更点、ブランチ名を生成\n$ bb pr -b main -dn\n```\n\n#### `bn` コマンド\nユーザーのインプットからシンプルなブランチ名を生成します。\n\n```bash\n$ bb bn \u003cdescription\u003e\n\n$ bb bn 新しい検索UIの追加\n#output feature/add-new-search-ui\n```\n#### `co` コマンド\nGitの差分からコミットメッセージを生成します。\n\n```bash\n$ bb co\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyumazak%2Fbb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyumazak%2Fbb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyumazak%2Fbb/lists"}