Skip to content

Latest commit

 

History

History
48 lines (33 loc) · 2.01 KB

CONTRIBUTING.md

File metadata and controls

48 lines (33 loc) · 2.01 KB

Contributing to paypal-checkout

We are always looking for ways to make our modules better. Adding features and fixing bugs allows everyone who depends on this code to create better, more stable applications. Feel free to raise a pull request to us. Our team would review your proposed modifications and, if appropriate, merge your changes into our code. Ideas and other comments are also welcome.

Getting Started

  1. Create your own fork of this repository.
# Clone it
$ git clone [email protected]:me/paypal-checkout.git

# Change directory
$ cd paypal-checkout

# Add the upstream repo
$ git remote add upstream [email protected]:paypal/paypal-checkout.git

# Get the latest upstream changes
$ git pull upstream

# Install dependencies
$ npm install

# Run scripts to verify installation (Note: test includes lint)
$ npm test

Making Changes

  1. Make sure that your changes adhere to the current coding conventions used throughout the project, indentation, accurate comments, etc.
  2. Ensure existing tests pass ($ npm test) and include test cases which fail without your change and succeed with it.

Submitting Changes

  1. Ensure that no errors are generated by ESLint (run during $ npm test).
  2. Commit your changes in logical chunks, i.e. keep your changes small per single commit.
  3. Locally merge (or rebase) the upstream branch into your topic branch: $ git pull upstream && git merge.
  4. Push your topic branch up to your fork: $ git push origin <topic-branch-name>.
  5. Open a Pull Request with a clear title and description.
  6. You should follow the Angular.js commit message guidelines for both your commit messages and PR titles.

If you have any questions about contributing, please feel free to contact us by posting your questions on GitHub.

Copyright 2016, PayPal under the Apache 2.0 license.