{"id":16327711,"url":"https://github.com/hisasann/git-staging-flow","last_synced_at":"2026-04-27T22:32:00.624Z","repository":{"id":136894804,"uuid":"266917204","full_name":"hisasann/git-staging-flow","owner":"hisasann","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-15T14:33:42.000Z","size":17,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-04-04T11:01:59.422Z","etag":null,"topics":["git","github"],"latest_commit_sha":null,"homepage":null,"language":null,"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/hisasann.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":"2020-05-26T01:36:25.000Z","updated_at":"2020-05-28T08:35:43.000Z","dependencies_parsed_at":"2024-12-17T14:10:25.235Z","dependency_job_id":"997485cc-2dbc-4b1c-bed1-185a8702d642","html_url":"https://github.com/hisasann/git-staging-flow","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/hisasann/git-staging-flow","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hisasann%2Fgit-staging-flow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hisasann%2Fgit-staging-flow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hisasann%2Fgit-staging-flow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hisasann%2Fgit-staging-flow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hisasann","download_url":"https://codeload.github.com/hisasann/git-staging-flow/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hisasann%2Fgit-staging-flow/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32358509,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"ssl_error","status_checked_at":"2026-04-27T20:07:00.910Z","response_time":128,"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","github"],"created_at":"2024-10-10T23:12:20.696Z","updated_at":"2026-04-27T22:32:00.609Z","avatar_url":"https://github.com/hisasann.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🥭 git-staging-flow\n\n## デプロイ先の前提\n\n`メインとなるブランチたち` はそれぞれ一つずつデプロイする先（たとえばサーバー）があるとします\n\n## 🍗 メインとなるブランチたち\n\n### develop ブランチ\n\n開発用\n\n状況によっては複数個作られる場合がある\n\n### staging ブランチ\n\nQA や、お客さん確認など、開発者以外の方用\n\n状況によっては複数個作られる場合がある\n\n### production ブランチ\n\n本番用\n\n基本的に一つしかない\n\n## 🍜 作っては削除されるブランチたち\n\n### feature/* ブランチ\n\n新機能の実装で `develop` ブランチから作成されます\n\n### fix/* ブランチ\n\nQA でバグがあった場合で `develop` ブランチから作成されます\n\n### hotfix/* ブランチ\n\n本番でバグがあった場合に `production` ブランチから作成されます\n\n## 🥘 開発をするときのフロー\n\ndevelop ブランチ -\u003e feature ブランチ -\u003e develop ブランチ\n\n1. `develop` ブランチから `feature/first` ブランチを作成する\n1. `feature/first` で作業をし **commit** する\n1. 作業が完了したらローカルの `feature/first` ブランチを、リモートに **push** する\n1. github.com のリポジトリページに行きプルリクエストを作成する\n    * into `develop` from `feature/first`\n1. プルリクエストのレビューを **Reviewers** から受ける\n1. **Reviewers** が **approved** する\n1. プルリクエストをマージする\n1. ここで `develop` ブランチが **デプロイ** されるイメージ\n1. `feature/first` ブランチを delete する\n\n```\n*   d87f0c9 (origin/develop) Merge pull request #1 from hisasann/feature/first\n|\\\n| * 361dd3f (origin/feature/first, feature/first) first commit to feature/first\n|/\n* a34f262 (origin/staging, origin/production, staging, production) first commit\n```\n\n## 🥧 QA やお客さん確認のためのフロー\n\ndevelop ブランチ -\u003e staging ブランチ\n\n1. github 上で **New pull request** をクリックする\n1. base: `staging` ブランチ \u003c- `develop` ブランチを選択する\n1. タイトルやコメントを書く\n1. **Create pull request** をクリックする\n    * into `staging` from `develop`\n1. **Merge pull request** をクリックする\n1. **Confirm merge** をクリックする\n1. ここで `staging` ブランチが **デプロイ** されるイメージ\n1. [Branches](https://github.com/hisasann/git-staging-flow/settings/branches) で `develop`, `staging` ブランチを保護しているのでブランチの削除はできません\n\n## 🍝 本番へのデプロイフロー\n\nstaging ブランチ -\u003e production ブランチ\n\n1. github 上で **New pull request** をクリックする\n1. base: `production` ブランチ \u003c- `staging` ブランチを選択する\n1. タイトルやコメントを書く\n1. **Create pull request** をクリックする\n    * into `production` from `staging`\n1. **Merge pull request** をクリックする\n1. **Confirm merge** をクリックする\n1. [Branches](https://github.com/hisasann/git-staging-flow/settings/branches) で `develop`, `staging` ブランチを保護しているのでブランチの削除はできません\n1. ここで `production` ブランチが **デプロイ** されるイメージ\n1. リリースされたバージョンを github 上でリリース作業を行う\n    * [Release 一番最初のリリース · hisasann/git-staging-flow](https://github.com/hisasann/git-staging-flow/releases/tag/v0.0.1)\n\n## 🍫 QA でバグが発生したので直す\n\nQA は `staging` ブランチで行っている前提です\n\ndevelop ブランチ -\u003e fix ブランチ -\u003e develop ブランチ -\u003e staging ブランチ\n\n1. github で **issue** を作成する\n    * [stagingでほげふが画面が表示されない · Issue #5 · hisasann/git-staging-flow](https://github.com/hisasann/git-staging-flow/issues/5)\n1. `develop` ブランチから `fix/first` ブランチを作成する\n1. `fix/first` で作業をし **commit** する\n1. 作業が完了したらローカルの `fix/first` ブランチを、リモートに **push** する\n1. github.com のリポジトリページに行きプルリクエストを作成する\n    * into `develop` from `fix/first`\n1. プルリクエストのレビューを **Reviewers** から受ける\n1. **Reviewers** が **approved** する\n1. プルリクエストをマージする\n1. ここで `develop` ブランチが **デプロイ** されるイメージ\n1. `fix/first` ブランチを delete する\n1. ここから先は [QA やお客さん確認のためのフロー](https://github.com/hisasann/git-staging-flow#-qa-%E3%82%84%E3%81%8A%E5%AE%A2%E3%81%95%E3%82%93%E7%A2%BA%E8%AA%8D%E3%81%AE%E3%81%9F%E3%82%81%E3%81%AE%E3%83%95%E3%83%AD%E3%83%BC) を参照\n\n## 🍖 本番でバグが発生したので直す\n\nproduction ブランチ -\u003e develop-* ブランチ -\u003e hotfix ブランチ -\u003e develop-* ブランチ -\u003e staging-* ブランチ -\u003e production ブランチ\n\n1. github で **issue** を作成する\n1. `production` ブランチから `develop-hotfix-XXX` ブランチを作成する\n1. ローカルの `develop-hotfix-XXX` ブランチを、リモートに **push** する\n1. ここで `develop-hotfix-XXX` ブランチが **デプロイ** されるイメージ\n\n`develop-hotfix-XXX` ブランチとしてるのは、 `develop` ブランチがすでに新規開発で **commit** が進んでいると想定した場合の命名です\n\n一時的に `develop` サーバーは、 `develop-hotfix-XXX` ブランチがデプロイされる想定です\n\n1. `develop` サーバーで本番のバグが発生するかを確認する\n1. 再現した場合、 `develop-hotfix-XXX` ブランチから `hotfix/first` ブランチを作成する\n1. `hotfix/first` で作業をし **commit** する\n1. 作業が完了したらローカルの `hotfix/first` ブランチを、リモートに **push** する\n1. github.com のリポジトリページに行きプルリクエストを作成する\n    * into `develop-hotfix-XXX` from `hotfix/first`\n1. プルリクエストのレビューを **Reviewers** から受ける\n1. **Reviewers** が **approved** する\n1. プルリクエストをマージする\n1. ここで `develop-hotfix-XXX` ブランチが **再度デプロイ** されるイメージ\n1. `hotfix/first` ブランチを delete する\n1. ここまできたら QA する [QA やお客さん確認のためのフロー](https://github.com/hisasann/git-staging-flow#-qa-%E3%82%84%E3%81%8A%E5%AE%A2%E3%81%95%E3%82%93%E7%A2%BA%E8%AA%8D%E3%81%AE%E3%81%9F%E3%82%81%E3%81%AE%E3%83%95%E3%83%AD%E3%83%BC) を参照\n1. QA が通ったら本番へ [本番へのデプロイフロー](https://github.com/hisasann/git-staging-flow#-%E6%9C%AC%E7%95%AA%E3%81%B8%E3%81%AE%E3%83%87%E3%83%97%E3%83%AD%E3%82%A4%E3%83%95%E3%83%AD%E3%83%BC)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhisasann%2Fgit-staging-flow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhisasann%2Fgit-staging-flow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhisasann%2Fgit-staging-flow/lists"}