Skip to content

Commit bbc41af

Browse files
committed
Development: Clarify PR creation using gh tool.
The existing documentation is slightly misleading in that it makes it seem like the default repo should be the fork, rather than upstream, when this may not be the case. Add a note to clarify this. Resolves: #189
1 parent 7070fe8 commit bbc41af

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • docs/Development/Policies-and-Procedures/Code-Contribution

‎docs/Development/Policies-and-Procedures/Code-Contribution/index.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ You should always use option 1 when possible. Unlike Gerrit, GitHub was never d
118118

119119
### Create a Pull Request
120120

121-
When you've finished your work and committed, you can create a new pull request by running `gh pr create --fill --base <base branch>`. The `--fill` option sets the pull request description to the same as the commit message and the `--base` option indicates which asterisk branch the pull request is targeted for (usually master). When prompted where the new branch should be pushed, choose your fork, NOT the upstream repo.
121+
When you've finished your work and committed, you can create a new pull request by running `gh pr create --fill --base <base branch>`. First, run `gh repo set-default --view` to ensure you've set the default repository to the upstream repository (asterisk/asterisk, asterisk/testsuite, etc), then create the pull request with `gh pr create --fill --base <base branch>`. The `--fill` option sets the pull request description to the same as the commit message and the `--base` option indicates which asterisk branch the pull request is targeted for (usually master). When prompted where the new branch should be pushed, choose your fork, NOT the upstream repo.
122122

123123
#### Cherry Picking
124124
Unless there are special circumstances, all changes need to be cherry-picked to the currently-supported major version branches. This is accomplished by adding a special comment to the PR indicating which branches the PR should be cherry-picked to:

0 commit comments

Comments
 (0)