Skip to content

Latest commit

 

History

History
112 lines (73 loc) · 5.69 KB

CONTRIBUTING.md

File metadata and controls

112 lines (73 loc) · 5.69 KB

Contributing to xero-node

👍🎉 First off, thanks for taking the time to contribute! 🎉👍

We want to make contributing to this project as easy and transparent as possible, whether it's:

  • Reporting a bug
  • Discussing the current state of the code
  • Submitting a fix
  • Proposing new features
  • Becoming a maintainer

The following is a set of guidelines for contributing to Xero and its projects, which are hosted in the XeroAPI Organization on GitHub. These are mostly guidelines, not rules. Use your best judgment, and feel free to propose changes to this document in a pull request.

Table Of Contents

Code of Conduct

I don't want to read this whole thing, I just have a question!!!

How Can I Contribute?

Code of Conduct

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

I don't want to read this whole thing I just have a question!!!

Note: Please don't file an issue to ask a question. You'll get faster results by using the resources below.

We have an official message board where Xero API support and the community chimes in with helpful advice if you have questions.

How Can I Contribute?

You can contribute by reporting bugs, suggesting enhancements, improving documentation i.e. README or submitting a pull request.

Which version of the SDK are you using?

As of Sept 2019, support for oAuth 2 will be generally available for developers. During this transition period from oAuth 1.0a to oAuth 2, we will be supporting two versions of the SDK.

  • 3.x code resides in oauth1 and supports oAuth 1.0a
  • 4.x code resides in the master branch and supports oAuth 2

Bugs and enhancements for version 4.x will be prioritized over 3.x.

Reporting Bugs

Bugs are tracked as issues in this repository.

Before opening a new issue:

  • check the README to see if the behavior you observed might be expected and if configuration options are available to provide you with the desired behavior.

  • perform a cursory search to see if there's an existing issue covering your feedback. If there is one and the issue is still open, add a 👍 reaction on the issue to express interest in the issue being resolved. That will help the team gauge interest without the noise of comments which trigger notifications to all watchers. Comments should be used only if you have new and useful information to share.

Write bug reports with detail, background, and sample code

  • Which version of the SDK are you using?
  • A quick summary and/or background
  • Steps to reproduce
    • Be specific!
    • Give sample code if you can.
  • What you expected would happen
  • What actually happens
  • Notes (possibly including why you think this might be happening, or stuff you tried that didn't work)

Suggesting Enhancements

When opening an issue for a feature request:

  • use a clear and descriptive title for the issue to identify the problem.
  • include as many details as possible in the body. Explain your use-case, the problems you're hitting and the solutions you'd like to see to address those problems.

Pull requests

We welcome your feedback and pull requests. Be aware some code is generated and pull requests may not be the best solution - see below.

We Use OpenAPI Generator

The best way to propose changes to the codebase is to open an issue and discuss with our team.

We are using OpenAPI Generator and our OpenAPI specs, to create and update our models and client classes. Improvements may require updates to our OAS or our customized mustache templates instead of modifying via pull request.

Submit a pull request

  1. Fork and clone the repository
  2. Create a new branch: git checkout -b my-branch-name
  3. Make your change, add tests if needed
  4. Make sure the tests pass on your machine: mvn test
  5. Push to your fork and submit a pull request
  6. Pat your self on the back and wait for your pull request to be reviewed and merged.

Here are a few things you can do that will increase the likelihood of your pull request being accepted:

  • Follow the style guide.
  • Write tests.
  • Keep your change as focused as possible. If there are multiple changes you would like to make that are not dependent upon each other, consider submitting them as separate pull requests.
  • Write a good commit message.

Style Guide

  • 4 spaces for indentation rather than tabs

License

By contributing, you agree that your contributions will be licensed under its MIT License.