Skip to content

Commit 677e145

Browse files
authored
Merge pull request RooCodeInc#1652 from RooVetGit/contributor_guidelines
Contributor guidelines
2 parents 443946a + b1615a3 commit 677e145

File tree

3 files changed

+190
-6
lines changed

3 files changed

+190
-6
lines changed

CODE_OF_CONDUCT.md

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, sex characteristics, gender identity and expression,
9+
level of experience, education, socio-economic status, nationality, personal
10+
appearance, race, religion, or sexual identity and orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
- Using welcoming and inclusive language
18+
- Being respectful of differing viewpoints and experiences
19+
- Gracefully accepting constructive criticism
20+
- Focusing on what is best for the community
21+
- Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
- The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
- Trolling, insulting/derogatory comments, and personal or political attacks
28+
- Public or private harassment
29+
- Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
- Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting the project team at [email protected]. All complaints
59+
will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate to the circumstances. The project team is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
## Attribution
69+
70+
This Code of Conduct is adapted from [Cline's version][cline_coc] of the [Contributor Covenant][homepage], version 1.4,
71+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72+
73+
[cline_coc]: https://github.com/cline/cline/blob/main/CODE_OF_CONDUCT.md
74+
[homepage]: https://www.contributor-covenant.org
75+
76+
For answers to common questions about this code of conduct, see
77+
https://www.contributor-covenant.org/faq

CONTRIBUTING.md

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
# Contributing to Roo Code
2+
3+
We're thrilled you're interested in contributing to Roo Code. Whether you're fixing a bug, adding a feature, or improving our docs, every contribution makes Roo Code smarter! To keep our community vibrant and welcoming, all members must adhere to our [Code of Conduct](CODE_OF_CONDUCT.md).
4+
5+
## Join Our Community
6+
7+
We strongly encourage all contributors to join our [Discord community](https://discord.gg/roocode)! Being part of our Discord server helps you:
8+
9+
- Get real-time help and guidance on your contributions
10+
- Connect with other contributors and core team members
11+
- Stay updated on project developments and priorities
12+
- Participate in discussions that shape Roo Code's future
13+
- Find collaboration opportunities with other developers
14+
15+
## Reporting Bugs or Issues
16+
17+
Bug reports help make Roo Code better for everyone! Before creating a new issue, please [search existing ones](https://github.com/RooVetGit/Roo-Code/issues) to avoid duplicates. When you're ready to report a bug, head over to our [issues page](https://github.com/RooVetGit/Roo-Code/issues/new/choose) where you'll find a template to help you with filling out the relevant information.
18+
19+
<blockquote class='warning-note'>
20+
🔐 <b>Important:</b> If you discover a security vulnerability, please use the <a href="https://github.com/RooVetGit/Roo-Code/security/advisories/new">Github security tool to report it privately</a>.
21+
</blockquote>
22+
23+
## Deciding What to Work On
24+
25+
Looking for a good first contribution? Check out issues in the "Issue [Unassigned]" section of our [Roo Code Issues](https://github.com/orgs/RooVetGit/projects/1) Github Project. These are specifically curated for new contributors and areas where we'd love some help!
26+
27+
We also welcome contributions to our [documentation](https://docs.roocode.com/)! Whether it's fixing typos, improving existing guides, or creating new educational content - we'd love to build a community-driven repository of resources that helps everyone get the most out of Roo Code. You can click "Edit this page" on any page to quickly get to the right spot in Github to edit the file, or you can dive directly into https://github.com/RooVetGit/Roo-Code-Docs.
28+
29+
If you're planning to work on a bigger feature, please create a [feature request](https://github.com/RooVetGit/Roo-Code/discussions/categories/feature-requests?discussions_q=is%3Aopen+category%3A%22Feature+Requests%22+sort%3Atop) first so we can discuss whether it aligns with Roo Code's vision.
30+
31+
## Development Setup
32+
33+
1. **Clone** the repo:
34+
35+
```sh
36+
git clone https://github.com/RooVetGit/Roo-Code.git
37+
```
38+
39+
2. **Install dependencies**:
40+
41+
```sh
42+
npm run install:all
43+
```
44+
45+
3. **Start the webview (Vite/React app with HMR)**:
46+
47+
```sh
48+
npm run dev
49+
```
50+
51+
4. **Debug**:
52+
Press `F5` (or **Run****Start Debugging**) in VSCode to open a new session with Roo Code loaded.
53+
54+
Changes to the webview will appear immediately. Changes to the core extension will require a restart of the extension host.
55+
56+
Alternatively you can build a .vsix and install it directly in VSCode:
57+
58+
```sh
59+
npm run build
60+
```
61+
62+
A `.vsix` file will appear in the `bin/` directory which can be installed with:
63+
64+
```sh
65+
code --install-extension bin/roo-cline-<version>.vsix
66+
```
67+
68+
## Writing and Submitting Code
69+
70+
Anyone can contribute code to Roo Code, but we ask that you follow these guidelines to ensure your contributions can be smoothly integrated:
71+
72+
1. **Keep Pull Requests Focused**
73+
74+
- Limit PRs to a single feature or bug fix
75+
- Split larger changes into smaller, related PRs
76+
- Break changes into logical commits that can be reviewed independently
77+
78+
2. **Code Quality**
79+
80+
- All PRs must pass CI checks which include both linting and formatting
81+
- Address any ESLint warnings or errors before submitting
82+
- Respond to all feedback from Ellipsis, our automated code review tool
83+
- Follow TypeScript best practices and maintain type safety
84+
85+
3. **Testing**
86+
87+
- Add tests for new features
88+
- Run `npm test` to ensure all tests pass
89+
- Update existing tests if your changes affect them
90+
- Include both unit tests and integration tests where appropriate
91+
92+
4. **Commit Guidelines**
93+
94+
- Write clear, descriptive commit messages
95+
- Reference relevant issues in commits using #issue-number
96+
97+
5. **Before Submitting**
98+
99+
- Rebase your branch on the latest main
100+
- Ensure your branch builds successfully
101+
- Double-check all tests are passing
102+
- Review your changes for any debugging code or console logs
103+
104+
6. **Pull Request Description**
105+
- Clearly describe what your changes do
106+
- Include steps to test the changes
107+
- List any breaking changes
108+
- Add screenshots for UI changes
109+
110+
## Contribution Agreement
111+
112+
By submitting a pull request, you agree that your contributions will be licensed under the same license as the project ([Apache 2.0](LICENSE)).

README.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,7 @@ We use [changesets](https://github.com/changesets/changesets) for versioning and
161161

162162
## Contributing
163163

164-
We love community contributions! Here’s how to get involved:
165-
166-
1. **Check Issues & Requests**: See [open issues](https://github.com/RooVetGit/Roo-Code/issues) or [feature requests](https://github.com/RooVetGit/Roo-Code/discussions/categories/feature-requests).
167-
2. **Fork & branch** off `main`.
168-
3. **Submit a Pull Request** once your feature or fix is ready.
169-
4. **Join** our [Reddit community](https://www.reddit.com/r/RooCode/) and [Discord](https://roocode.com/discord) for feedback, tips, and announcements.
164+
We love community contributions! Get started by reading our [CONTRIBUTING.md](CONTRIBUTING.md).
170165

171166
---
172167

0 commit comments

Comments
 (0)