Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Add naming conventions for pull requests

...

A feature branch is branched off the master branch, and development on that feature happens in parallel with master. When development is complete, a pull request is submitted, after which it is merged back into the master branch.

Pull Requests

All code that is to be checked in will be reviewed and merged through a pull request.

Naming Conventions

A pull request title should be in the format

Code Block
themeConfluence
JIRA-#: Short Message Here

If there is no JIRA ticket number, create a JIRA ticket for the commit.

Also, write your commit message/pull request title in the imperative: "Fix bug" and not "Fixed bug" or "Fixes bug." This convention matches up with commit messages generated by commands like git merge and git revert. If ever in doubt, try filling in the blanks

If you apply my commit, it will ___________

Code Block
themeConfluence
ELEC-19: Add FSM implementation

Sample Scenario

Alice is working on a project. She clones the repository

Code Block
languagebash
themeConfluence
git clone https://github.com/uw-midsun/some-repository.git

and then creates a new feature branch.

Code Block
languagebash
themeConfluence
git branch -b yourher_great_feature

Because Alice is a good developer, she routinely makes commits and pushes them to the remote repository (GitHub).

...

Once she feels like her code is ready for review, she opens a pull request and puts the code up for review. A Software Lead will work with her to review the code, and she'll make any changes, commit them, and add them to the review. Once this is approved, the changes can be squashed and merged.

Image Added

TL;DR

  1. Create feature branch
  2. Perform development in feature branch
  3. Routinely push commits to remote tracking repository
  4. Put Create a pull request and put code up for review
  5. Make changes as necessary
  6. Squash and Merge into master