Skip to content

Latest commit

 

History

History
73 lines (46 loc) · 1.54 KB

CONTRIBUTING.md

File metadata and controls

73 lines (46 loc) · 1.54 KB

How to contribute

Before you start

Setting up

You may need to fork this project in GitHub.

git clone git@github.com:adhocore/asserts.git

# OR if you have a fork
git clone git@github.com:<your_github_handle>/asserts.git

# You may also add upstream
git remote add upstream https://github.com/adhocore/asserts.git

cd asserts

# Create a new branch
git checkout -b $branch_name

# Install deps
composer install -o

Moving forward

# Open asserts in IDE
subl asserts

# ... and do the needful

# Optionally run the lint
for P in src tests; do find $P -type f -name '*.php' -exec php -l {} \;; done

# ... and phpcs fixer or stuffs like that!

# Run tests
vendor/bin/phpunit --coverage-text


# If your feature takes long your dev branch might be out of sync, you may want to
git checkout $branch_name
git pull upstream master # branch could be something else than master

Finalizing

Everything looking good?

# Commit your stuffs
git add $file ...$files
git commit -m "..."

# Push 'em
git push origin HEAD

Now goto GitHub, select your branch and create PR.

Getting PR merged

You have to wait. You have to address change requests. Be patient.

Thank you for contribution!

Lastly Please be informed that your works will be licensed same as the project license