Skip to content

Commit 0bd4119

Browse files
committed
docs: add about when create branch from next-minor-version-branch
1 parent a1e8197 commit 0bd4119

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

contributing/pull_request.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,12 @@ The best way to contribute is to fork the CodeIgniter4 repository, and "clone" t
238238
- `> cd CodeIgniter4/`
239239
- `> composer update`
240240
6. Create a new [branch](https://help.github.com/en/articles/about-branches) in your project for each set of changes you want to make.
241-
- `> git checkout -b <new-branch-name>`
241+
- If your PR is for bug fixes:
242+
- `> git switch develop`
243+
- `> git switch -c <new-branch-name>`
244+
- If your PR has any enhancement, create new branch from next minor version branch, e.g. __"4.3"__:
245+
- `> git switch <next-minor-version-branch>`
246+
- `> git switch -c <new-branch-name>`
242247
7. Fix existing bugs on the [Issue tracker](https://github.com/codeigniter4/CodeIgniter4/issues) after confirming that no one else is working on them.
243248
8. [Commit](https://help.github.com/en/desktop/contributing-to-projects/committing-and-reviewing-changes-to-your-project) the changed files in your contribution branch.
244249
- `> git commit`

0 commit comments

Comments
 (0)