github.com/opensearch-project/opensearch-go/v2@v2.3.0/CONTRIBUTING.md (about)

     1  - [Contributing to OpenSearch](#contributing-to-opensearch)
     2  - [First Things First](#first-things-first)
     3  - [Ways to Contribute](#ways-to-contribute)
     4    - [Bug Reports](#bug-reports)
     5    - [Feature Requests](#feature-requests)
     6    - [Contributing Code](#contributing-code)
     7  - [Developer Certificate of Origin](#developer-certificate-of-origin)
     8  - [Changelog](#changelog)
     9    - [Adding Changes](#adding-changes)
    10  - [Review Process](#review-process)
    11  
    12  ## Contributing to OpenSearch
    13  
    14  OpenSearch is a community project that is built and maintained by people just like **you**. We're glad you're interested in helping out. There are several different ways you can do it, but before we talk about that, let's talk about how to get started.
    15  
    16  ## First Things First
    17  
    18  1. **When in doubt, open an issue** - For almost any type of contribution, the first step is opening an issue. Even if you think you already know what the solution is, writing down a description of the problem you're trying to solve will help everyone get context when they review your pull request. If it's truly a trivial change (e.g. spelling error), you can skip this step -- but as the subject says, when it doubt, [open an issue](https://github.com/opensearch-project/opensearch-go/issues/new/choose).
    19  
    20  2. **Only submit your own work** (or work you have sufficient rights to submit) - Please make sure that any code or documentation you submit is your work or you have the rights to submit. We respect the intellectual property rights of others, and as part of contributing, we'll ask you to sign your contribution with a "Developer Certificate of Origin" (DCO) that states you have the rights to submit this work and you understand we'll use your contribution. There's more information about this topic in the [DCO section](#developer-certificate-of-origin).
    21  
    22  ## Ways to Contribute
    23  
    24  ### Bug Reports
    25  
    26  Ugh! Bugs!
    27  
    28  A bug is when software behaves in a way that you didn't expect and the developer didn't intend. To help us understand what's going on, we first want to make sure you're working from the latest version.
    29  
    30  Once you've confirmed that the bug still exists in the latest version, you'll want to check to make sure it's not something we already know about on the [open issues GitHub page](https://github.com/opensearch-project/opensearch-go/issues/new/choose).
    31  
    32  If you've upgraded to the latest version and you can't find it in our open issues list, then you'll need to tell us how to reproduce it Provide as much information as you can. You may think that the problem lies with your query, when actually it depends on how your data is indexed. The easier it is for us to recreate your problem, the faster it is likely to be fixed.
    33  
    34  ### Feature Requests
    35  
    36  If you've thought of a way that OpenSearch could be better, we want to hear about it. We track feature requests using GitHub, so please feel free to open an issue which describes the feature you would like to see, why you need it, and how it should work.
    37  
    38  ### Contributing Code
    39  
    40  As with other types of contributions, the first step is to [open an issue on GitHub](https://github.com/opensearch-project/opensearch-go/issues/new/choose). Opening an issue before you make changes makes sure that someone else isn't already working on that particular problem. It also lets us all work together to find the right approach before you spend a bunch of time on a PR. So again, when in doubt, open an issue.
    41  
    42  ## Developer Certificate of Origin
    43  
    44  OpenSearch is an open source product released under the Apache 2.0 license (see either [the Apache site](https://www.apache.org/licenses/LICENSE-2.0) or the [LICENSE.txt file](LICENSE.txt)). The Apache 2.0 license allows you to freely use, modify, distribute, and sell your own products that include Apache 2.0 licensed software.
    45  
    46  We respect intellectual property rights of others and we want to make sure all incoming contributions are correctly attributed and licensed. A Developer Certificate of Origin (DCO) is a lightweight mechanism to do that.
    47  
    48  The DCO is a declaration attached to every contribution made by every developer. In the commit message of the contribution, the developer simply adds a `Signed-off-by` statement and thereby agrees to the DCO, which you can find below or at [DeveloperCertificate.org](http://developercertificate.org/).
    49  
    50  ```
    51  Developer's Certificate of Origin 1.1
    52  
    53  By making a contribution to this project, I certify that:
    54  
    55  (a) The contribution was created in whole or in part by me and I
    56      have the right to submit it under the open source license
    57      indicated in the file; or
    58  
    59  (b) The contribution is based upon previous work that, to the
    60      best of my knowledge, is covered under an appropriate open
    61      source license and I have the right under that license to
    62      submit that work with modifications, whether created in whole
    63      or in part by me, under the same open source license (unless
    64      I am permitted to submit under a different license), as
    65      Indicated in the file; or
    66  
    67  (c) The contribution was provided directly to me by some other
    68      person who certified (a), (b) or (c) and I have not modified
    69      it.
    70  
    71  (d) I understand and agree that this project and the contribution
    72      are public and that a record of the contribution (including
    73      all personal information I submit with it, including my
    74      sign-off) is maintained indefinitely and may be redistributed
    75      consistent with this project or the open source license(s)
    76      involved.
    77  ```
    78  
    79  We require that every contribution to OpenSearch is signed with a Developer Certificate of Origin. Additionally, please use your real name. We do not accept anonymous contributors nor those utilizing pseudonyms.
    80  
    81  Each commit must include a DCO which looks like this
    82  
    83  ```
    84  Signed-off-by: Jane Smith <jane.smith@email.com>
    85  ```
    86  
    87  You may type this line on your own when writing your commit messages. However, if your user.name and user.email are set in your git configs, you can use `-s` or `– – signoff` to add the `Signed-off-by` line to the end of the commit message.
    88  
    89  ## Changelog
    90  
    91  OpenSearch-go maintains a version specific changelog by enforcing a change to the ongoing [CHANGELOG](CHANGELOG.md) file adhering to the [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) format.
    92  
    93  The changes are curated by version, with the changes to the main branch added chronologically to the `Unreleased` version. Each version has corresponding sections which list out the category of the change - `Added`, `Changed`, `Deprecated`, `Removed`, `Fixed`, `Security`.
    94  
    95  ### Adding Changes
    96  
    97  As a contributor, you must ensure that every pull request has its changes listed out within the corresponding version and appropriate section of the [CHANGELOG](CHANGELOG.md) file.
    98  
    99  Adding in the change is a two step process -
   100  
   101  1. Add your changes to the corresponding section within the CHANGELOG file with dummy pull request information, publish the PR.
   102  
   103  2. Update the entry for your change in [`CHANGELOG.md`](CHANGELOG.md) and make sure that you reference the pull request there.
   104  
   105  ## Review Process
   106  
   107  We deeply appreciate everyone who takes the time to make a contribution. We will review all contributions as quickly as possible. As a reminder, [opening an issue](https://github.com/opensearch-project/opensearch-go/issues/new/choose) discussing your change before you make it is the best way to smooth the PR process. This will prevent a rejection because someone else is already working on the problem, or because the solution is incompatible with the architectural direction.
   108  
   109  During the PR process, expect that there will be some back-and-forth. Please try to respond to comments in a timely fashion, and if you don't wish to continue with the PR, let us know. If a PR takes too many iterations for its complexity or size, we may reject it. Additionally, if you stop responding we may close the PR as abandoned. In either case, if you feel this was done in error, please add a comment on the PR.
   110  
   111  If we accept the PR, a [maintainer](MAINTAINERS.md) will merge your change and usually take care of backporting it to appropriate branches ourselves.
   112  
   113  If we reject the PR, we will close the pull request with a comment explaining why. This decision isn't always final: if you feel we have misunderstood your intended change or otherwise think that we should reconsider then please continue the conversation with a comment on the PR and we'll do our best to address any further points you raise.