最終更新:2024-12-05 (木) 07:42:25 (50d)
GitHub/プルリクエスト
メモ
- you’re proposing your changes and requesting that someone review and pull in your contribution and merge them into their branch.
設定項目
Allow merge commits
- Add all commits from the head branch to the base branch with a merge commit.
Allow squash merging
- Combine all commits from the head branch into a single commit in the base branch.
Allow rebase merging
- Add all commits from the head branch onto the base branch individually.
GitHub/マージの設定
プルリクエストの作成
- マージするブランチを2つ指定
- base:master
- compare:readme-edits
- プルリクエスト名
- コメント
メモ
- コミットしたらコードができてなくてもプルリクエストできる
- 同じブランチ同士にプルリクは増やせない。
- プルリク作成後にコミットが増えたらその分もプルリクに含まれる。あくまでブランチ同士のマージ要求
- ブランチ作っただけだと変更がないのでプルリクできない。
表示
- プルリクエスト作るとブランチ選択の右にプルリクがあることが表示される
コメントにキーワード使ってClose
- By incorporating certain keywords into the text of your Pull Request, you can associate issues with code. When your Pull Request is merged, the related issues are also closed.
- For example, entering the phrase Closes #32 would close issue number 32 in the repository.
- https://help.github.com/articles/closing-issues-via-commit-messages/