Skip to content
This repository has been archived by the owner on Sep 18, 2019. It is now read-only.

Latest commit

 

History

History
112 lines (78 loc) · 4.64 KB

CONTRIBUTING.MD

File metadata and controls

112 lines (78 loc) · 4.64 KB

Contributing to java-stix-validator

We'd welcome you contributing to java-stix-validator. Here are the guidelines to follow:

Code of Conduct

Help us keep java-stix-validator open and inclusive.

Got a Question or Problem?

If you have questions about how to use java-stix-validator, please direct these to the STIX discussion list.

Found an Issue?

If you find a bug in the source code or a mistake in the documentation, you can help us by submitting an issue to our GitHub Repository. Please see the Submission Guidelines below.

Want a Feature?

You can request a new feature by submitting an issue to our GitHub Repository.

If you would like to implement a new feature on your own, then consider the change's scope:

  • Major Changes should be discussed first on our STIX discussion list so that we can better coordinate our efforts, prevent duplication of work, and help you to craft the change so that it is successfully accepted into the project.
  • Small Changes can be crafted and submitted to the GitHub Repository as a Pull Request.

Want a Documentation Fix?

If you want to help improve the project's documentation, it's a good idea to let others know what you're working to minimize the duplication of effort. Before starting, check out the issue queue, comment on an existing issue to let others know what you're working on, or create a new issue if your work doesn't fit any of the existing issues.

For large changes, before submitting the pull request be sure you haven't accidentally introduced any layout or formatting issues. You should also make sure that your commit message is labeled "docs:" and follows the Git Commit Guidelines outlined below.

Submission Guidelines

Submitting an Issue

Before you submit your issue search the archive, maybe your question was already answered or resolved.

If your issue appears to be a bug, and hasn't been reported, open a new issue. Help us to maximize the effort we can spend fixing issues and adding new features, by not reporting duplicate issues. Providing the following information will increase the chances of your issue being dealt with quickly:

  • Explain - Explain why this is a bug for you.
  • The Version(s) - Is it a regression?
  • Steps to Reproduce the Error - Provide an example. Code is best.
  • Related Issues - Has a similar issue been reported before?
  • Suggest a Fix - If you can't fix the bug yourself, perhaps you can point to the line of code or commit that might be causing the problem.

Submitting a Pull Request

Before you submit your pull request consider the following guidelines:

  • Search the existing pull requests for an open or closed Pull Request that relates to your submission to avoid duplicating effort.

  • Make your changes in a new git branch:

    git checkout -b my-fix-branch master
  • Create your patch, including appropriate unit tests.

  • Commit your changes using a descriptive commit message

    git commit -a

Note: the optional commit -a command line option will automatically "add" and "rm" edited files.

  • Push your branch to GitHub:

    git push origin my-fix-branch
  • In GitHub, send a pull request to java_stix-validator:master.

  • If we suggest changes then:

    • Make the required updates.

    • Rebase your branch and force push to your GitHub repository (this will update your Pull Request):

      git rebase master -i
      git push origin my-fix-branch -f

After your pull request is merged

After your pull request is merged, you can safely delete your branch and pull the changes from the main (upstream) repository:

  • Delete the remote branch on GitHub:

    git push origin --delete my-fix-branch
  • Check out the master branch:

    git checkout master -f
  • Delete the local branch:

    git branch -D my-fix-branch
  • Update your master with the latest upstream version:

    git pull --ff upstream master