Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d634800

Browse files
authored
add community infrastructure docs (#2)
* DOCS: Create organization README for LocalStack πŸš€ * DOCS: Add a `CODE_OF_CONDUCT.md` * DOCS: Add CONTRIBUTING.md for LocalStack * DOCS: Add Git & GitHub workflow * DOCS: Add Slack guidelines * CHORE: Fix all PR suggestions * DOCS: Add minimal README for .github * CHORE: Fix all the suggestions
1 parent 9cc8122 commit d634800

File tree

5 files changed

+289
-0
lines changed

5 files changed

+289
-0
lines changed

β€ŽCODE_OF_CONDUCT.mdβ€Ž

Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
We as members, contributors, and leaders pledge to make participation in our
6+
community a harassment-free experience for everyone, regardless of age, body
7+
size, visible or invisible disability, ethnicity, sex characteristics, gender
8+
identity and expression, level of experience, education, socio-economic status,
9+
nationality, personal appearance, race, religion, or sexual identity
10+
and orientation.
11+
12+
We pledge to act and interact in ways that contribute to an open, welcoming,
13+
diverse, inclusive, and healthy community.
14+
15+
## Our Standards
16+
17+
Examples of behavior that contributes to a positive environment for our
18+
community include:
19+
20+
* Demonstrating empathy and kindness toward other people
21+
* Being respectful of differing opinions, viewpoints, and experiences
22+
* Giving and gracefully accepting constructive feedback
23+
* Accepting responsibility and apologizing to those affected by our mistakes,
24+
and learning from the experience
25+
* Focusing on what is best not just for us as individuals, but for the
26+
overall community
27+
28+
Examples of unacceptable behavior include:
29+
30+
* The use of sexualized language or imagery, and sexual attention or
31+
advances of any kind
32+
* Trolling, insulting or derogatory comments, and personal or political attacks
33+
* Public or private harassment
34+
* Publishing others' private information, such as a physical or email
35+
address, without their explicit permission
36+
* Other conduct which could reasonably be considered inappropriate in a
37+
professional setting
38+
39+
## Enforcement Responsibilities
40+
41+
Community leaders are responsible for clarifying and enforcing our standards of
42+
acceptable behavior and will take appropriate and fair corrective action in
43+
response to any behavior that they deem inappropriate, threatening, offensive,
44+
or harmful.
45+
46+
Community leaders have the right and responsibility to remove, edit, or reject
47+
comments, commits, code, wiki edits, issues, and other contributions that are
48+
not aligned to this Code of Conduct, and will communicate reasons for moderation
49+
decisions when appropriate.
50+
51+
## Scope
52+
53+
This Code of Conduct applies within all community spaces, and also applies when
54+
an individual is officially representing the community in public spaces.
55+
Examples of representing our community include using an official e-mail address,
56+
posting via an official social media account, or acting as an appointed
57+
representative at an online or offline event.
58+
59+
## Enforcement
60+
61+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
62+
reported to the community leaders responsible for enforcement at
63+
64+
All complaints will be reviewed and investigated promptly and fairly.
65+
66+
All community leaders are obligated to respect the privacy and security of the
67+
reporter of any incident.
68+
69+
## Enforcement Guidelines
70+
71+
Community leaders will follow these Community Impact Guidelines in determining
72+
the consequences for any action they deem in violation of this Code of Conduct:
73+
74+
### 1. Correction
75+
76+
**Community Impact**: Use of inappropriate language or other behavior deemed
77+
unprofessional or unwelcome in the community.
78+
79+
**Consequence**: A private, written warning from community leaders, providing
80+
clarity around the nature of the violation and an explanation of why the
81+
behavior was inappropriate. A public apology may be requested.
82+
83+
### 2. Warning
84+
85+
**Community Impact**: A violation through a single incident or series
86+
of actions.
87+
88+
**Consequence**: A warning with consequences for continued behavior. No
89+
interaction with the people involved, including unsolicited interaction with
90+
those enforcing the Code of Conduct, for a specified period of time. This
91+
includes avoiding interactions in community spaces as well as external channels
92+
like social media. Violating these terms may lead to a temporary or
93+
permanent ban.
94+
95+
### 3. Temporary Ban
96+
97+
**Community Impact**: A serious violation of community standards, including
98+
sustained inappropriate behavior.
99+
100+
**Consequence**: A temporary ban from any sort of interaction or public
101+
communication with the community for a specified period of time. No public or
102+
private interaction with the people involved, including unsolicited interaction
103+
with those enforcing the Code of Conduct, is allowed during this period.
104+
Violating these terms may lead to a permanent ban.
105+
106+
### 4. Permanent Ban
107+
108+
**Community Impact**: Demonstrating a pattern of violation of community
109+
standards, including sustained inappropriate behavior, harassment of an
110+
individual, or aggression toward or disparagement of classes of individuals.
111+
112+
**Consequence**: A permanent ban from any sort of public interaction within
113+
the community.
114+
115+
## Attribution
116+
117+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118+
version 2.0, available at
119+
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
120+
121+
Community Impact Guidelines were inspired by [Mozilla's code of conduct
122+
enforcement ladder](https://github.com/mozilla/diversity).
123+
124+
[homepage]: https://www.contributor-covenant.org
125+
126+
For answers to common questions about this code of conduct, see the FAQ at
127+
https://www.contributor-covenant.org/faq. Translations are available at
128+
https://www.contributor-covenant.org/translations.

β€ŽCONTRIBUTING.mdβ€Ž

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# Contributing
2+
3+
## Welcome
4+
5+
LocalStack is a community driven project that aims to help developers emulate AWS services locally, without connecting to any cloud provider! The community version of LocalStack has grown exceptionally and now supports various AWS services, which is detailed on our [feature coverage](https://docs.localstack.cloud/aws/feature-coverage/).
6+
7+
This document serves the need for a guide for contributors to help them understand the overall organization of the LocalStack community projects. As an emerging open-source community, we have a plethora of work that we need to do and complete, and it is not just limited to code.
8+
9+
From a contribution perspective, you can work on writing examples, triaging issues and pull requests, submitting bug fixes, suggesting improvements and making our documentation accessible to more users.
10+
11+
## Prerequisites
12+
13+
Before submitting any contributions to LocalStack, you should complete the following prerequisties. Having completed and understood the basic philosophy around these steps would make it easier for you to land your first contribution.
14+
15+
### Code of conduct
16+
17+
LocalStack governs its participants according to the Contributor Covenant [Code of Conduct](CODE_OF_CONDUCT.md). As a contributor, you agree to uphold this code. Please report unacceptable behavior to [[email protected]](mailto:[email protected]).
18+
19+
### Setup the development environment
20+
21+
To contribute code contributions, setting up a development environment is required. Review the [LocalStack developer guide](https://docs.localstack.cloud/developer-guide/) to understand how you can setup the environment and make the desirable changes. It is also recommended to look at our [open issues](https://github.com/localstack/localstack/issues) for better context around contributions we are looking for.
22+
23+
### Licensing
24+
25+
When you submit changes, your submissions are understood to be under the same [Apache 2.0 License](LICENSE) that covers the project. Feel free to contact the maintainers if that's a concern.
26+
27+
## Contribution flow
28+
29+
We assume that you have already set up the project on your local machine by following up on the official documentation. If you are stuck, do reach out to one of the maintainers to help you out in the process.
30+
31+
Our contribution flow is very straightforward and follows an issue-pull request workflow. The contributors need to fork the repository for having their contributions landed on the project. If you are looking to contribute, we have laid down a series of steps that we would like you to follow.
32+
33+
### Find an issue to work on
34+
35+
We would recommend you to go through the **Issues** of the specific project that you would like to contribute to. You can additionally:
36+
37+
- Understand and identify the gaps in the code and documentation.
38+
- Understand the code formatting, stylistic principles and comment format that is being followed.
39+
- Test specific pull requests and the project on your local machine and see if the changes are desirable.
40+
41+
Exploring the issues and pull requests, will give you an idea of how the contribution flow works. Upon finding something to work on, you can either request for the issue to be assigned to you (if someone else has created the Issue) or you can make your own. To ensure that the issue is received positively by the maintainers make sure of the following:
42+
43+
- If you are filing a Bug report, make sure that the report includes all the information that the maintainer needs to reproduce the issue.
44+
- If you are filing a feature request, make sure you pitch in your idea well and it should be constructive.
45+
- Before opening a new issue, make sure a similar one has not already been created or is being worked on by someone else.
46+
47+
### Landing your pull request
48+
49+
To make sure you land a great contribution, we would request you to follow the standard Git & GitHub workflow to know about code collaboration. If you are not already familiar with Git, we would suggest you follow the [official Git documentation](https://git-scm.com/doc).
50+
51+
We would recommend:
52+
53+
- Every Pull Request should have the corresponding issue linked to it.
54+
- Every Pull Request should pass the automated CI checks.
55+
- Every Pull Request should be as atomic as possible.
56+
- Every Pull Request should include a test verifying the new/fixed behavior.
57+
58+
Atomic commits correspond to the smallest, most meaningful change you can make to the code. You can keep your pull request as a draft if you are still working on it. Upon completion, you can mark the pull request is ready to review for further comments and feedback.
59+
60+
### Reviewing pull requests
61+
62+
After landing your pull request, the maintainers will review it and provide actionable feedback. Don't hesitate to contact the maintainers on the Slack community channels if you are awaiting your first review or you have made all the required changes.
63+
64+
Maintainers expect the comments to be resolved once a review has been completed. You can provide updates if you are still working on it, to help us understand the areas where we can help. After the pull request is reviewed and approved, we would squash all the commits before we officially merge it.

β€ŽGIT_GITHUB_WORKFLOW.mdβ€Ž

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Git & GitHub workflow
2+
3+
This document is the best practice guide that contains the rules to follow while contributing to LocalStack projects using Git & GitHub.
4+
5+
## Prerequisites
6+
7+
The basic prerequisites are:
8+
9+
- [GitHub Account](https://github.com/home)
10+
- [Git CLI](https://git-scm.com/)
11+
12+
We also recommend you to authenticate [Git with GitHub using SSH](https://docs.github.com/en/authentication/connecting-to-github-with-ssh).
13+
14+
## Fork and clone
15+
16+
In your browser, visit: https://github.com/localstack. Find the project that you would like to contribute to and open the appropriate link. In the upper left corner, you will find an option to fork the project. Please click on it to create a fork/copy of the repository on your profile.
17+
18+
- In your terminal, clone the repository by running the command where `your-username` represents your GitHub username while the `project-slug` signifies the name of the project you are cloning.
19+
20+
```sh
21+
git clone https://github.com/<your-username>/<project-slug>/
22+
```
23+
- Enter into the newly created directory by running the following command on your terminal:
24+
25+
```sh
26+
cd <project-slug>
27+
```
28+
- Configure the upstream for your fork so that `git` can sync work from the upstream, by running the following command:
29+
30+
```sh
31+
git remote add upstream <link_of_original_repository>
32+
```
33+
- Check if upstream is configured by running the command:
34+
35+
```sh
36+
git remote -v
37+
```
38+
39+
## Making a contribution
40+
41+
After you set up your fork, start contributing code, docs and fixes.
42+
43+
- Create a branch on your local machine:
44+
45+
```sh
46+
git checkout <branch-name>
47+
```
48+
- Commit the changes:
49+
50+
```sh
51+
git add <file> <file> ...
52+
git commit -m "relevant commit message"
53+
```
54+
- Push the changes to the remote forked repository.
55+
56+
```sh
57+
git push -u origin <branch-name>
58+
```
59+
60+
You can now create a pull request to get your changes merged into the upstream branch of the specific repository.

β€ŽREADME.mdβ€Ž

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<p align="center">
2+
<img src="assets/localstack-readme-banner.svg" alt="LocalStack - A fully functional local cloud stack">
3+
</p>
4+
5+
The purpose of this repository is to host all the community health files for LocalStack. These files serve the purpose of global community files which are applied to all the organizations that don't have their own files.
6+
7+
- [Contributing to LocalStack](CONTRIBUTING.md)
8+
- [LocalStack Contributor Covenant](CODE_OF_CONDUCT.md)
9+
- [Git-GitHub workflow](GIT_GITHUB_WORKFLOW.md)
10+
- [Slack guidelines](SLACK_GUIDELINES.md)

β€ŽSLACK_GUIDELINES.mdβ€Ž

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Slack guidelines
2+
3+
LocalStack community uses Slack for real-time conversations and to communicate across the community. To make sure we are getting the best out of our Slack community, we have a few guidelines in place.
4+
5+
- **Follow our code of conduct**: LocalStack expects all the contributors to uphold the Contributor Covenant [Code of Conduct](CODE_OF_CONDUCT.md).
6+
- **Be nice, be respectful**: Be nice and respectful with all the community members. If someone sounds off, give them the benefit of the doubt and assume they meant well.
7+
- **Use inclusive language**: Be mindful of not using words that are exclusionary in nature and should allow more diverse audience to engage with you.
8+
- **Community support**: For all community support, please use the `community-support` channel. For inquiries about professional and enterprise support, use the `general` channel to express interest.
9+
- **Avoid direct messages**: Slack is about communication and we prefer public messages to be used wherever we can. Please use direct messages for sales, inquiry into licensing and pro support.
10+
11+
## Channels
12+
13+
### ##announcement
14+
15+
Everyone will be automatically added into this channel. Admins will have posting privileges. This is a good place to look out for new releases, features, workshops and webinars!
16+
17+
### ##community-support
18+
19+
Everyone will be automatically added into this channel. Everyone will have posting privileges. This is a good place to put your queries, bug reports, issues that you encountered while using LocalStack.
20+
21+
### ##general
22+
23+
Everyone will be automatically added into this channel. Everyone will have posting privileges. This is a good place to discuss about LocalStack, inquire about sales and pro licensing and more.
24+
25+
### ##random
26+
27+
Everyone will be automatically added into this channel. Everyone will have posting privileges. We use it for non-work banter and watercool conversation.

0 commit comments

Comments
Β (0)