Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 1.87 KB

CONTRIBUTING.md

File metadata and controls

47 lines (32 loc) · 1.87 KB

Contributing to paypal-messaging-components

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 git@github.com:username/paypal-messaging-components.git

# Change directory
$ cd paypal-messaging-components

# Add the upstream repo
$ git remote add upstream git@github.com:paypal/paypal-messaging-components.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.

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

Copyright 2019, PayPal under the Apache 2.0 license.