Create a release based workflow that is built on the foundations of the GitHub flow.
Almost there ❤️
Notice that I didn't delete the branch? That's intentional.
Sometimes mistakes can happen with releases, and we'll want to be able to correct them on the same branch.
Now that your release is finalized, we have a confession to make. Somewhere in our recent update, I made a mistake and introduced a bug. Instead of changing the text colors to green, we changed the whole game background.
Tip: Sometimes GitHub Pages takes a few minutes to update. Your page might not immediately show the recent updates you've made.
"Hotfixes", or a quick fix to address a bug in software, are a normal part of development. Oftentimes you'll see application updates whose only description is "bug fixes".
When bugs come up after you release a version, you'll need to address them. We've already created a hotfix-v1.0.1
and fix-game-background
branches for you to start.
We'll submit a hotfix by creating and merging the pull request.
- Open a pull request with
hotfix-v1.0.1
as thebase
branch, andfix-game-background
as thecompare
branch. - Fill in the pull request template to describe your changes. You can set the pull request title to "Hotfix for broken game style". You can include a detailed pull request body, an example is below:
## Description: - Fixed bug, set game background back to black
- Review the changes and click Create pull request.
- We want to merge this into our hotfix branch now so click Merge pull request.
Now we want these changes merged into main
as well so let's create and merge a pull request with our hotfix to main
.
- Open a pull request with
main
as thebase
branch, andhotfix-v1.0.1
as thecompare
branch. - Ensure the title of your pull request is "Hotfix v1.0.1".
- Include a detailed pull request body, an example is below:
## Description: - Fixed bug introduced in last production release - set game background back to black
- Review the changes and click Create pull request.
- Click Merge pull request.
- Wait about 20 seconds then refresh this page (the one you're following instructions from). GitHub Actions will automatically update to the next step.
Get help: Post in our discussion board • Review the GitHub status page
© 2023 GitHub • Code of Conduct • MIT License