Github
Github 更新通知を受け取って処理を行なう
<?php
if(!isset($_POST['payload']))die();
$payload=json_decode($_POST['payload']);
if(!(isset($payload->repository->url)&&$payload->repository->url=='https://github.com/hogehoge')){
die();
}
Issue
Issue 番号をコミットメッセージに組み込むことで Issue をクローズできる
fix #1 close #1 closed #1 resolve #1
Pull Request
- 作業中であれば
[WIP]
と付与する
GutHub Flow
- master ブランチは常にデプロイできる状態とする
- デプロイツールを利用して自動化する
- 新しい作業をする場合には、master ブランチから記述的な名前のブランチを作成
- 作成したローカルリポジトリのブランチにコミット
- 同名のブランチを GitHub のリポジトリに作成し、定期的に push する
- Pull Request ベースでのやり取りを行う
- 他のメンバーがレビューを行い、作業終了を確認したら master へマージする
- マージが完了したら、デプロイする
Pages
Other
- github/git-sizer
Compute various size metrics for a Git repository, flagging those that might cause problems