Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moves the PR number to the start of the commit message when merging the PR #88

Merged
merged 1 commit into from
Dec 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion episodes/10-pull-requests.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,22 @@ This helps keep the commit history of the `main` branch tidy and linear[^squash-

Once you've selected the squash option click on the green
**Squash and merge** button.
Edit the commit title and description if necessary.
Edit the commit title so that the PR number is at the start of the message.
For instance:

```output
Add in a forecast file (#1)
```

Would be changed to:

```output
#1 Add in a forecast file
```

This makes it easier to navigate to the PR for a change
when you're on the GitHub repositories code view.
Change the description if necessary.
Then click on **Confirm squash and merge**.

![](fig/github_pr_closed.png){alt='A screenshot showing a closed pull request on the weather repository.'}
Expand Down