Skip to content

Latest commit

 

History

History
49 lines (45 loc) · 2.03 KB

File metadata and controls

49 lines (45 loc) · 2.03 KB

Contribution guidelines:

Notes:

  • Each PR should have only one featured pattern as an example on a new branch.
  • PR commits should be in the shape of feature-to-add: files changes.
  • Each featured-pattern should be in a separate runnable project and has an additional github-md (markdown) file to demonstrate the following:
    1. The usages of the pattern.
    2. The UML paradigm of the pattern.
    3. Tweaks of the pattern.
    4. Other languages implementation if possible.
  • A PR should have a tasked description of the 2 must-to-do tasks [the pattern-project] and [the github-md-file] with the following formula:
Title: 
Feature-added: little description

Description: 
This PR adds/changes/modifies/deletes the following: 
- [x] Foo-bar Pattern.
- [ ] Foo-bar descriptive docs (FOOBAR.md).

This ensures that other folks know the progress of your PR and what are your plans in a real-time fashion !

Steps to contribute (Create a PR):

  1. Fork this repository.
  2. Clone this repository locally on your disk via the git-client-side:
$ mkdir ./Design-Patterns && cd ./Design-Patterns && git clone https://github.com/your-user-name/Design-Patterns.git
  1. Create a new featured branch off the master branch:
$ git branch master -b 'featured-branch'
  1. Do your changes.
  2. Add the files and commit the changes, be sure to make meaningful adds and commits messages as far as you can as we previously mentioned in this shape (feature-to-add: files changes):
$ git add ./[files-to-add] && git commit -m 'feature-to-add: files changes'
  1. Push changes:
$ git push origin featured-branch
  1. Create a PR with a good title and description in the shape of Feature-added: little description.

Steps to update with the remote:

  1. To avoid conflicts, any changes proposed should be on a new branch on your fork if the original feature branch is outdated.
  2. To update with a branch use the following command:
$ cd ./Design-Patterns && git checkout [branch-name] && git pull origin [branch-name]