Skip to content

Commit d678872

Browse files
authored
Scaffold initial repository metadata, workflows, and templates (#3)
Signed-off-by: Karen Xu <[email protected]>
1 parent 6745c1a commit d678872

14 files changed

+413
-1
lines changed

.github/CODEOWNERS

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@karenyrx @amberzsy @lucy66hw @philiplhchan

.github/workflows/add-untriaged.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Apply 'untriaged' label during issue lifecycle
2+
3+
on:
4+
issues:
5+
types: [opened, reopened, transferred]
6+
7+
jobs:
8+
apply-label:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Add `untriaged` Label
12+
uses: actions/github-script@v6
13+
with:
14+
script: |
15+
github.rest.issues.addLabels({
16+
issue_number: context.issue.number,
17+
owner: context.repo.owner,
18+
repo: context.repo.repo,
19+
labels: ['untriaged']
20+
})

.github/workflows/changelog.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Verify Changelog
2+
on:
3+
pull_request:
4+
types: [edited, labeled, opened, ready_for_review, reopened, review_requested, synchronize, unlabeled]
5+
6+
jobs:
7+
verify-changelog:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
with:
12+
token: ${{ secrets.GITHUB_TOKEN }}
13+
ref: ${{ github.event.pull_request.head.sha }}
14+
15+
- uses: dangoslen/changelog-enforcer@v3
16+
with:
17+
skipLabels: 'autocut, skip-changelog'

.gitignore

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Mac OS
2+
.DS_Store
3+
4+
# Node.js
5+
node_modules
6+
7+
# intellij files
8+
.idea/
9+
10+
# VSCode files
11+
.vscode/
12+
13+
# Jekyll Website
14+
_site/
15+
16+
# build output
17+
build/
18+
19+
# coverage output
20+
/coverage/
21+
22+
# log files
23+
/logs/

CHANGELOG.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# CHANGELOG
2+
3+
Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
4+
5+
## [Unreleased]
6+
7+
### Added
8+
9+
### Removed
10+
11+
### Fixed
12+
13+
### Security

CODE_OF_CONDUCT.md

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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+
**Our open source communities endeavor to:**
5+
6+
* Be Inclusive: We are committed to being a community where everyone can join and contribute. This means using inclusive and welcoming language.
7+
* Be Welcoming: We are committed to maintaining a safe space for everyone to be able to contribute.
8+
* 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.
9+
* 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.
10+
11+
**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:**
12+
13+
* The use of violent threats, abusive, discriminatory, or derogatory language;
14+
* Offensive comments related to gender, gender identity and expression, sexual orientation, disability, mental illness, race, political or religious affiliation;
15+
* Posting of sexually explicit or violent content;
16+
* The use of sexualized language and unwelcome sexual attention or advances;
17+
* Public or private harassment of any kind;
18+
* Publishing private information, such as physical or electronic address, without permission;
19+
* Other conduct which could reasonably be considered inappropriate in a professional setting;
20+
* Advocating for or encouraging any of the above behaviors.
21+
* Enforcement and Reporting Code of Conduct Issues:
22+
23+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported. [Contact us](mailto:[email protected]). All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances.

CONTRIBUTING.md

+91
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
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+
- [Review Process](#review-process)
9+
10+
## Contributing to OpenSearch
11+
12+
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.
13+
14+
## First Things First
15+
16+
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-protobufs/issues/new/choose).
17+
18+
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).
19+
20+
## Ways to Contribute
21+
22+
### Bug Reports
23+
24+
Ugh! Bugs!
25+
26+
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.
27+
28+
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-protobufs/issues/new/choose).
29+
30+
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.
31+
32+
### Feature Requests
33+
34+
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.
35+
36+
37+
### Contributing Code
38+
39+
As with other types of contributions, the first step is to [open an issue on GitHub](https://github.com/opensearch-project/opensearch-protobufs/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.
40+
41+
## Developer Certificate of Origin
42+
43+
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.
44+
45+
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.
46+
47+
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/).
48+
49+
```
50+
Developer's Certificate of Origin 1.1
51+
By making a contribution to this project, I certify that:
52+
(a) The contribution was created in whole or in part by me and I
53+
have the right to submit it under the open source license
54+
indicated in the file; or
55+
(b) The contribution is based upon previous work that, to the
56+
best of my knowledge, is covered under an appropriate open
57+
source license and I have the right under that license to
58+
submit that work with modifications, whether created in whole
59+
or in part by me, under the same open source license (unless
60+
I am permitted to submit under a different license), as
61+
Indicated in the file; or
62+
(c) The contribution was provided directly to me by some other
63+
person who certified (a), (b) or (c) and I have not modified
64+
it.
65+
(d) I understand and agree that this project and the contribution
66+
are public and that a record of the contribution (including
67+
all personal information I submit with it, including my
68+
sign-off) is maintained indefinitely and may be redistributed
69+
consistent with this project or the open source license(s)
70+
involved.
71+
```
72+
73+
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.
74+
75+
Each commit must include a DCO which looks like this
76+
77+
```
78+
Signed-off-by: Jane Smith <[email protected]>
79+
```
80+
81+
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.
82+
83+
## Review Process
84+
85+
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-protobufs/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.
86+
87+
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.
88+
89+
If we accept the PR, a [maintainer](MAINTAINERS.md) will merge your change and usually take care of backporting it to appropriate branches ourselves.
90+
91+
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.

DEVELOPER_GUIDE.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
TODO

0 commit comments

Comments
 (0)