Skip to content

Lua-Matlab-Python-R-J2EE/skills-release-based-workflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Create a release based workflow

Create a release based workflow that is built on the foundations of the GitHub flow.

Step 6: Commit a hotfix to the release

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.

image

"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.

⌨️ Activity: Create and merge the hotfix pull request

  1. Open a pull request with hotfix-v1.0.1 as the base branch, and fix-game-background as the compare branch.
  2. 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
    
  3. Review the changes and click Create pull request.
  4. 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.

⌨️ Activity: Create the release pull request

  1. Open a pull request with main as the base branch, and hotfix-v1.0.1 as the compare branch.
  2. Ensure the title of your pull request is "Hotfix v1.0.1".
  3. Include a detailed pull request body, an example is below:
    ## Description:
    - Fixed bug introduced in last production release - set game background back to black
    
  4. Review the changes and click Create pull request.
  5. Click Merge pull request.
  6. 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 boardReview the GitHub status page

© 2023 GitHub • Code of ConductMIT License

About

My clone repository

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •