Skip to content

Commit 8013a9a

Browse files
committed
set up opensearch org github template
1 parent e68143c commit 8013a9a

15 files changed

+663
-49
lines changed

ADMINS.md

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
## Overview
2+
3+
This document explains who the admins are (see below), what they do in this repo, and how they should be doing it. If you're interested in becoming a maintainer, see [MAINTAINERS](MAINTAINERS.md). If you're interested in contributing, see [CONTRIBUTING](CONTRIBUTING.md).
4+
5+
## Current Admins
6+
7+
| Admin | GitHub ID | Affiliation |
8+
| --------------- | --------------------------------------- | ----------- |
9+
| Henri Yandell | [hyandell](https://github.com/hyandell) | Amazon |
10+
11+
## Admin Responsibilities
12+
13+
As an admin you own stewartship of the repository and its settings. Admins have [admin-level permissions on a repository](https://docs.github.com/en/organizations/managing-access-to-your-organizations-repositories/repository-permission-levels-for-an-organization). Use those privileges to serve the community and protect the repository as follows.
14+
15+
### Prioritize Security
16+
17+
Security is your number one priority. Manage security keys and safeguard access to the repository.
18+
19+
Note that this repository is monitored and supported 24/7 by Amazon Security, see [Reporting a Vulnerability](SECURITY.md) for details.
20+
21+
### Enforce Code of Conduct
22+
23+
Act on [CODE_OF_CONDUCT](CODE_OF_CONDUCT.md) violations by revoking access, and blocking malicious actors.
24+
25+
### Adopt Organizational Best Practices
26+
27+
Adopt organizational best practices, work in the open, and collaborate with other admins by opening issues before making process changes. Prefer consistency, and avoid diverging from practices in the opensearch-project organization.

CODE_OF_CONDUCT.md

+25-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,25 @@
1-
## Code of Conduct
2-
This project has adopted the [Amazon Open Source Code of Conduct](https://aws.github.io/code-of-conduct).
3-
For more information see the [Code of Conduct FAQ](https://aws.github.io/code-of-conduct-faq) or contact
4-
opensource-codeofconduct@amazon.com with any additional questions or comments.
1+
2+
This code of conduct applies to all spaces provided by the OpenSource project including in code, documentation, issue trackers, mailing lists, chat channels, wikis, blogs, social media and any other communication channels used by the project.
3+
4+
5+
**Our open source communities endeavor to:**
6+
7+
* Be Inclusive: We are committed to being a community where everyone can join and contribute. This means using inclusive and welcoming language.
8+
* Be Welcoming: We are committed to maintaining a safe space for everyone to be able to contribute.
9+
* Be Respectful: We are committed to encouraging differing viewpoints, accepting constructive criticism and work collaboratively towards decisions that help the project grow. Disrespectful and unacceptable behavior will not be tolerated.
10+
* Be Collaborative: We are committed to supporting what is best for our community and users. When we build anything for the benefit of the project, we should document the work we do and communicate to others on how this affects their work.
11+
12+
13+
**Our Responsibility. As contributors, members, or bystanders we each individually have the responsibility to behave professionally and respectfully at all times. Disrespectful and unacceptable behaviors include, but are not limited to:**
14+
15+
* The use of violent threats, abusive, discriminatory, or derogatory language;
16+
* Offensive comments related to gender, gender identity and expression, sexual orientation, disability, mental illness, race, political or religious affiliation;
17+
* Posting of sexually explicit or violent content;
18+
* The use of sexualized language and unwelcome sexual attention or advances;
19+
* Public or private harassment of any kind;
20+
* Publishing private information, such as physical or electronic address, without permission;
21+
* Other conduct which could reasonably be considered inappropriate in a professional setting;
22+
* Advocating for or encouraging any of the above behaviors.
23+
* Enforcement and Reporting Code of Conduct Issues:
24+
25+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported. [Contact us](mailto:opensource-codeofconduct@amazon.com). All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances.

CONTRIBUTING.md

+104-37
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,126 @@
1-
# Contributing Guidelines
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+
- [Documentation Changes](#documentation-changes)
7+
- [Contributing Code](#contributing-code)
8+
- [Developer Certificate of Origin](#developer-certificate-of-origin)
9+
- [License Headers](#license-headers)
10+
- [Review Process](#review-process)
211

3-
Thank you for your interest in contributing to our project. Whether it's a bug report, new feature, correction, or additional
4-
documentation, we greatly value feedback and contributions from our community.
12+
## Contributing to OpenSearch
513

6-
Please read through this document before submitting any issues or pull requests to ensure we have all the necessary
7-
information to effectively respond to your bug report or contribution.
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.
815

16+
## First Things First
917

10-
## Reporting Bugs/Feature Requests
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](issues).
1119

12-
We welcome you to use the GitHub issue tracker to report bugs or suggest features.
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).
1321

14-
When filing an issue, please check existing open, or recently closed, issues to make sure somebody else hasn't already
15-
reported the issue. Please try to include as much information as you can. Details like these are incredibly useful:
22+
## Ways to Contribute
1623

17-
* A reproducible test case or series of steps
18-
* The version of our code being used
19-
* Any modifications you've made relevant to the bug
20-
* Anything unusual about your environment or deployment
24+
### Bug Reports
2125

26+
Ugh! Bugs!
2227

23-
## Contributing via Pull Requests
24-
Contributions via pull requests are much appreciated. Before sending us a pull request, please ensure that:
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.
2529

26-
1. You are working against the latest source on the *main* branch.
27-
2. You check existing open, and recently merged, pull requests to make sure someone else hasn't addressed the problem already.
28-
3. You open an issue to discuss any significant work - we would hate for your time to be wasted.
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](issues).
2931

30-
To send us a pull request, please:
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.
3133

32-
1. Fork the repository.
33-
2. Modify the source; please focus on the specific change you are contributing. If you also reformat all the code, it will be hard for us to focus on your change.
34-
3. Ensure local tests pass.
35-
4. Commit to your fork using clear commit messages.
36-
5. Send us a pull request, answering any default questions in the pull request interface.
37-
6. Pay attention to any automated CI failures reported in the pull request, and stay involved in the conversation.
34+
### Feature Requests
3835

39-
GitHub provides additional document on [forking a repository](https://help.github.com/articles/fork-a-repo/) and
40-
[creating a pull request](https://help.github.com/articles/creating-a-pull-request/).
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.
4137

38+
### Documentation Changes
4239

43-
## Finding contributions to work on
44-
Looking at the existing issues is a great way to find something to contribute on. As our projects, by default, use the default GitHub issue labels (enhancement/bug/duplicate/help wanted/invalid/question/wontfix), looking at any 'help wanted' issues is a great place to start.
40+
TODO
4541

42+
### Contributing Code
4643

47-
## Code of Conduct
48-
This project has adopted the [Amazon Open Source Code of Conduct](https://aws.github.io/code-of-conduct).
49-
For more information see the [Code of Conduct FAQ](https://aws.github.io/code-of-conduct-faq) or contact
50-
opensource-codeofconduct@amazon.com with any additional questions or comments.
44+
As with other types of contributions, the first step is to [open an issue on GitHub](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.
5145

46+
## Developer Certificate of Origin
5247

53-
## Security issue notifications
54-
If you discover a potential security issue in this project we ask that you notify AWS/Amazon Security via our [vulnerability reporting page](http://aws.amazon.com/security/vulnerability-reporting/). Please do **not** create a public github issue.
48+
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.
5549

50+
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.
5651

57-
## Licensing
52+
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/).
5853

59-
See the [LICENSE](LICENSE) file for our project's licensing. We will ask you to confirm the licensing of your contribution.
54+
```
55+
Developer's Certificate of Origin 1.1
56+
57+
By making a contribution to this project, I certify that:
58+
59+
(a) The contribution was created in whole or in part by me and I
60+
have the right to submit it under the open source license
61+
indicated in the file; or
62+
63+
(b) The contribution is based upon previous work that, to the
64+
best of my knowledge, is covered under an appropriate open
65+
source license and I have the right under that license to
66+
submit that work with modifications, whether created in whole
67+
or in part by me, under the same open source license (unless
68+
I am permitted to submit under a different license), as
69+
Indicated in the file; or
70+
71+
(c) The contribution was provided directly to me by some other
72+
person who certified (a), (b) or (c) and I have not modified
73+
it.
74+
75+
(d) I understand and agree that this project and the contribution
76+
are public and that a record of the contribution (including
77+
all personal information I submit with it, including my
78+
sign-off) is maintained indefinitely and may be redistributed
79+
consistent with this project or the open source license(s)
80+
involved.
81+
```
82+
83+
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.
84+
85+
Each commit must include a DCO which looks like this
86+
87+
```
88+
Signed-off-by: Jane Smith <jane.smith@email.com>
89+
```
90+
91+
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.
92+
93+
## License Headers
94+
95+
New files in your code contributions should contain the following license header. If you are modifying existing files with license headers, or including new files that already have license headers, do not remove or modify them without guidance.
96+
97+
### Java
98+
99+
```
100+
/*
101+
* Copyright OpenSearch Contributors
102+
* SPDX-License-Identifier: Apache-2.0
103+
*/
104+
```
105+
106+
### Python
107+
```
108+
# Copyright OpenSearch Contributors
109+
# SPDX-License-Identifier: Apache-2.0
110+
```
111+
112+
### Shell
113+
```
114+
# Copyright OpenSearch Contributors
115+
# SPDX-License-Identifier: Apache-2.0
116+
```
117+
118+
## Review Process
119+
120+
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](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.
121+
122+
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.
123+
124+
If we accept the PR, a [maintainer](MAINTAINERS.md) will merge your change and usually take care of backporting it to appropriate branches ourselves.
125+
126+
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.

ISSUE_TEMPLATE/BUG_TEMPLATE.md

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
name: 🐛 Bug report
3+
about: Create a report to help us improve
4+
title: '[BUG]'
5+
labels: 'bug, untriaged'
6+
assignees: ''
7+
---
8+
9+
**What is the bug?**
10+
A clear and concise description of the bug.
11+
12+
**How can one reproduce the bug?**
13+
Steps to reproduce the behavior:
14+
1. Go to '...'
15+
2. Click on '....'
16+
3. Scroll down to '....'
17+
4. See error
18+
19+
**What is the expected behavior?**
20+
A clear and concise description of what you expected to happen.
21+
22+
**What is your host/environment?**
23+
- OS: [e.g. iOS]
24+
- Version [e.g. 22]
25+
- Plugins
26+
27+
**Do you have any screenshots?**
28+
If applicable, add screenshots to help explain your problem.
29+
30+
**Do you have any additional context?**
31+
Add any other context about the problem.
+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
name: 🎆 Feature request
3+
about: Request a feature in this project
4+
title: '[FEATURE]'
5+
labels: enhancement
6+
assignees: ''
7+
---
8+
**Is your feature request related to a problem?**
9+
A clear and concise description of what the problem is, e.g. _I'm always frustrated when [...]_
10+
11+
**What solution would you like?**
12+
A clear and concise description of what you want to happen.
13+
14+
**What alternatives have you considered?**
15+
A clear and concise description of any alternative solutions or features you've considered.
16+
17+
**Do you have any additional context?**
18+
Add any other context or screenshots about the feature request here.

ISSUE_TEMPLATE/PROPOSAL_TEMPLATE.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: 💭 Proposal
3+
about: Suggest an idea for a specific feature you wish to propose to the community for comment
4+
title: '[PROPOSAL]'
5+
labels: proposal
6+
assignees: ''
7+
---
8+
## What kind of business use case are you trying to solve? What are your requirements?
9+
A clear and concise description of the business problem, e.g. _My customers are asking for [...]_
10+
11+
**What is the problem? What is preventing you from meeting the requirements?**
12+
Describe what impact this problem has for lack of a solution.
13+
14+
**What are you proposing? What do you suggest we do to solve the problem or improve the existing situation?**
15+
Describe your proposed solution. It's OK if you don't have one.
16+
17+
**What are your assumptions or prerequisites?**
18+
Describe any assumptions you may be making that would limit the scope of this proposal.
19+
20+
**What are remaining open questions?**
21+
List questions that may need to be answered before proceeding with an implementation.

ISSUE_TEMPLATE/config.yml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
contact_links:
2+
- name: OpenSearch Community Support
3+
url: https://discuss.opendistrocommunity.dev/
4+
about: Please ask and answer questions here.
5+
- name: AWS/Amazon Security
6+
url: https://aws.amazon.com/security/vulnerability-reporting/
7+
about: Please report security vulnerabilities here.

0 commit comments

Comments
 (0)