Skip to content

Commit c514410

Browse files
authored
Merge pull request #18 from github/docs/add-pr-command-mentions
docs: add /pr command mentions to course chapters
2 parents 30432a0 + 856928e commit c514410

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

01-setup-and-first-steps/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,7 @@ That's it for getting started! As you become comfortable, you can explore additi
402402
| Command | What It Does |
403403
|---------|--------------|
404404
| `/diff` | Review the changes made in the current directory |
405+
| `/pr` | Operate on pull requests for the current branch |
405406
| `/review` | Run the code-review agent to analyze changes |
406407
| `/research` | Run deep research investigation using GitHub and web sources |
407408
| `/terminal-setup` | Enable multiline input support (shift+enter and ctrl+enter) |

03-development-workflows/README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ copilot
571571
572572
<a id="workflow-5-git-integration"></a>
573573
<details>
574-
<summary><strong>Workflow 5: Git Integration</strong> - Commit messages, PR descriptions, /delegate, and /diff</summary>
574+
<summary><strong>Workflow 5: Git Integration</strong> - Commit messages, PR descriptions, /pr, /delegate, and /diff</summary>
575575
576576
<img src="images/git-integration-swimlane-single.png" alt="Git Integration workflow: stage changes, generate message, commit, create PR." width="800"/>
577577
@@ -637,6 +637,16 @@ Include:
637637
- Breaking changes? (yes/no)"
638638
```
639639
640+
### Using /pr in Interactive Mode for the Current Branch
641+
642+
If you're working with a branch in Copilot CLI's interactive mode, you can use the `/pr` command to work with pull requests. Use `/pr` to view a PR, create a new PR, fix an existing PR, or let Copilot CLI auto-decide based on the branch state.
643+
644+
```bash
645+
copilot
646+
647+
> /pr [view|create|fix|auto]
648+
```
649+
640650
### Review Before Push
641651
642652
Use `git diff main..HEAD` inside a `-p` prompt for a quick pre-push sanity check across all branch changes.

07-putting-it-together/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,10 @@ copilot
9292
# Review the changes
9393
> /review
9494

95-
# If review passes, generate a PR (uses GitHub MCP covered earlier in the course)
95+
# If review passes, use /pr to operate on the pull request for the current branch
96+
> /pr [view|create|fix|auto]
97+
98+
# Or ask naturally if you want Copilot to draft it from the terminal
9699
> Create a pull request titled "Feature: Add list unread books command"
97100
```
98101

0 commit comments

Comments
 (0)