Skip to content

Commit

Permalink
#88 Moves the PR number to the start of the commit message when mergi…
Browse files Browse the repository at this point in the history
…ng the PR
  • Loading branch information
astroDimitrios authored Dec 18, 2024
1 parent 612ea21 commit 1e26eed
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion episodes/10-pull-requests.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,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

0 comments on commit 1e26eed

Please sign in to comment.