Skip to content

Commit c9e5d7a

Browse files
committed
added template repository structure
0 parents  commit c9e5d7a

30 files changed

Lines changed: 1221 additions & 0 deletions

.github/CODE_OF_CONDUCT.md

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

.github/CONTRIBUTING.md

Lines changed: 196 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,196 @@
1+
# Contribute
2+
3+
This article explains how to contribute to project. Please read through the following guidelines.
4+
5+
Write something nice and instructive as an intro. Talk about what kind of contributions you are interested in.
6+
7+
> Welcome! We love receiving contributions from our community, so thanks for stopping by! There are many ways to contribute, including submitting bug reports, improving documentation, submitting feature requests, reviewing new submissions, or contributing code that can be incorporated into the project.
8+
9+
## Summary
10+
11+
This document describes our development process. Following these guidelines shows that you respect the time and effort of the developers managing this project. In return, you will be shown respect in addressing your issue, reviewing your changes, and incorporating your contributions.
12+
13+
> 👉 **Note**: before participating in our community, please read our
14+
> [code of conduct][coc].
15+
> By interacting with this repository, organization, or community you agree to
16+
> abide by its terms.
17+
18+
## Contributions
19+
20+
There’s several ways to contribute, not just by writing code. If you have questions, see [support][support].
21+
22+
### Financial support
23+
24+
It’s possible to support us financially by becoming a backer or sponsor through [Open Collective][collective].
25+
26+
### Improve docs
27+
28+
As a user you’re perfect for helping us improve our docs.Typo corrections, error fixes, better explanations, new examples, etcetera.
29+
30+
### Improve issues
31+
32+
Some issues lack information, aren’t reproducible, or are just incorrect. You can help by trying to make them easier to resolve.
33+
Existing issues might benefit from your unique experience or opinions.
34+
35+
### Write code
36+
37+
Code contributions are very welcome.
38+
It’s probably a good idea to first post a question or open an issue to report a bug or suggest a new feature before creating a pull request.
39+
40+
## Submitting an issue
41+
42+
* The issue tracker is for issues. Use discussions for support
43+
* Search the issue tracker (including closed issues) before opening a new issue
44+
* Ensure you’re using the latest version of our packages
45+
* Use a clear and descriptive title
46+
* Include as much information as possible: steps to reproduce the issue, error message, version, operating system, etcetera
47+
* The more time you put into an issue, the better we will be able to help you
48+
* The best issue report is a proper reproduction step to prove it
49+
50+
## Development Process
51+
52+
What is your development process?
53+
54+
> This project follows the basic git glow
55+
56+
Talk about branches people should work on. Specifically, where is the starting point? `main`, `feature`, `hotfix` `task` etc.
57+
58+
### Testing
59+
60+
If you add code you need to add tests! We’ve learned the hard way that code without tests is undependable. If your pull request reduces our test coverage because it lacks tests then it will be rejected.
61+
62+
Provide instructions for adding new tests. Provide instructions for running tests.
63+
64+
```sh
65+
npm run test
66+
```
67+
68+
### Style Guidelines
69+
70+
run below command
71+
72+
```sh
73+
npm run lint
74+
```
75+
76+
### Code Formatting
77+
78+
use code formatter in your IDE, add prettier and some other useful extension in your IDE.
79+
80+
### Git Commit Guidelines
81+
82+
below are the guidelines for your commit messages.
83+
84+
* add clear message and with 50 lines
85+
* prefix feature / issue number from issue page
86+
87+
### Submitting a pull request
88+
89+
* Run `npm test` locally to build, format, and test your changes
90+
* Non-trivial changes are often best discussed in an issue first, to prevent you from doing unnecessary work
91+
* For ambitious tasks, you should try to get your work in front of the community for feedback as soon as possible
92+
* New features should be accompanied by tests and documentation
93+
* Don’t include unrelated changes
94+
* Test before submitting code by running `npm test`
95+
* Write a convincing description of why we should land your pull request: it’s your job to convince us
96+
97+
## Pull Request Process
98+
99+
Add notes for pushing your branch:
100+
101+
When you are ready to generate a pull request, either for preliminary review, or for consideration of merging into the project you must first push your local topic branch back up to GitHub:
102+
103+
```sh
104+
git push origin feature/branch-name
105+
```
106+
107+
Include a note about submitting the PR:
108+
109+
Once you've committed and pushed all of your changes to GitHub, go to the page for your fork on GitHub, select your development branch, and click the pull request button. If you need to make any adjustments to your pull request, just push the updates to your branch. Your pull request will automatically track the changes on your development branch and update.
110+
111+
1. Ensure any install or build dependencies are removed before the end of the layer when doing a build.
112+
2. Update the README.md with details of changes to the interface, this includes new environment variables, exposed ports, useful file locations and container parameters.
113+
3. Increase the version numbers in any examples files and the README.md to the new version that this Pull Request would represent. The versioning scheme we use is [SemVer](http://semver.org/).
114+
4. You may merge the Pull Request in once you have the sign-off of two other developers, or if you do not have permission to do that, you may request the second reviewer to merge it for you.
115+
116+
### Review Process
117+
118+
Who reviews it? Who needs to sign off before it’s accepted? When should a contributor expect to hear from you? How can contributors get commit access, if at all?
119+
120+
> The core team looks at Pull Requests on a regular basis in a weekly triage meeting that we hold in a public Google Hangout. The hangout is announced in the weekly status updates that are sent to the puppet-dev list. Notes are posted to the Puppet Community community-triage repo and include a link to a YouTube recording of the hangout. After feedback has been given we expect responses within two weeks. After two weeks we may close the pull request if it isn't showing any activity.
121+
122+
> Except for critical, urgent or very small fixes, we try to leave pull requests open for most of the day or overnight if something comes in late in the day, so that multiple people have the chance to review/comment. Anyone who reviews a pull request should leave a note to let others know that someone has looked at it. For larger commits, we like to have a +1 from someone else on the core team and/or from other contributor(s). Please note if you reviewed the code or tested locally -- a +1 by itself will typically be interpreted as your thinking its a good idea, but not having reviewed in detail.
123+
124+
Perhaps also provide the steps your team will use for checking a PR. Or discuss the steps run on your CI server if you have one. This will help developers understand how to investigate any failures or test the process on their own.
125+
126+
### Addressing Feedback
127+
128+
Once a PR has been submitted, your changes will be reviewed and constructive feedback may be provided. Feedback isn't meant as an attack, but to help make sure the highest-quality code makes it into our project. Changes will be approved once required feedback has been addressed.
129+
130+
If a maintainer asks you to "rebase" your PR, they're saying that a lot of code has changed, and that you need to update your fork so it's easier to merge.
131+
132+
To update your forked repository, follow these steps:
133+
134+
### Fetch upstream master and merge with your repo's main branch
135+
136+
```sh
137+
138+
git fetch upstream
139+
git checkout main
140+
git merge upstream/main
141+
```
142+
143+
#### If there were any new commits, rebase your development branch
144+
145+
```sh
146+
git checkout feature/branch-name
147+
git rebase main
148+
```
149+
150+
If too much code has changed for git to automatically apply your branches changes to the new master, you will need to manually resolve the merge conflicts yourself.
151+
152+
Once your new branch has no conflicts and works correctly, you can override your old branch using this command:
153+
154+
```sh
155+
156+
git push origin feature/branch-name
157+
158+
```
159+
160+
Note that this will overwrite the old branch on the server, so make sure you are happy with your changes first!
161+
162+
## Community
163+
164+
Do you have a mailing list, Google group, slack channel, IRC channel? Link to them here.
165+
166+
Include Other Notes on how people can contribute
167+
168+
* You can help us answer questions our users have here:
169+
* You can help build and design our website here:
170+
* You can help write blog posts about the project by:
171+
* You can help with newsletters and internal communications by:
172+
173+
* Create an example of the project in real world by building something or showing what others have built.
174+
* Write about other people’s projects based on this project. Show how it’s used in daily life. Take screenshots and make videos!
175+
176+
## Resources
177+
178+
* [How to contribute to open source](https://opensource.guide/how-to-contribute/)
179+
* [Making your first contribution](https://medium.com/@vadimdemedes/making-your-first-contribution-de6576ddb190)
180+
* [Using pull requests](https://help.github.com/articles/about-pull-requests/)
181+
* [GitHub help](https://help.github.com)
182+
* [git commit message](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html)
183+
184+
## License
185+
186+
© [Keshav Mohta][author]
187+
188+
<!-- Definitions -->
189+
190+
[author]: https://xkeshav.com
191+
192+
[collective]: https://opencollective.com/recursivezero
193+
194+
[support]: https://github.com/xkeshav/template/blob/main/.github/SUPPORT.md
195+
196+
[coc]: https://github.com/xkeshav/template/blob/main/.github/CODE_OF_CONDUCT.md

.github/COOWNERS

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Lines starting with '#' are comments
2+
3+
# Each line is a file pattern followed by one or more owners
4+
5+
# These owners will be the default owners for everything in the repo
6+
7+
* @xkeshav
8+
9+
# Order is important. The last matching pattern has the most precedence
10+
11+
# So if a pull request only touches javascript files, only these owners
12+
13+
# will be requested to review
14+
15+
*.js @xkeshav
16+
17+
# You can also use email addresses if you prefer
18+
19+
docs/* <xkeshav@gmail.com>

0 commit comments

Comments
 (0)