Skip to content

Commit e45f91f

Browse files
committed
docs: add GitHub issue templates and update project documentation
This commit adds new GitHub issue templates for bug reports and feature requests, updates the pull request template, and enhances various project documentation files to improve the contribution process and provide better guidance for users and contributors.
1 parent 0bed867 commit e45f91f

File tree

8 files changed

+464
-55
lines changed

8 files changed

+464
-55
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
name: Bug Report
3+
about: Create a report to help us improve
4+
title: '[BUG] '
5+
labels: bug
6+
assignees: ''
7+
---
8+
9+
**Describe the Bug**
10+
A clear and concise description of what the bug is.
11+
12+
**To Reproduce**
13+
Steps to reproduce the behavior:
14+
1. Run command '...'
15+
2. Enter input '....'
16+
3. See error
17+
18+
**Expected Behavior**
19+
A clear and concise description of what you expected to happen.
20+
21+
**Screenshots**
22+
If applicable, add screenshots to help explain your problem.
23+
24+
**Environment:**
25+
- OS: [e.g. Ubuntu 20.04]
26+
- Python Version: [e.g. 3.9]
27+
- Wellcode CLI Version: [e.g. 1.0.0]
28+
29+
**Additional Context**
30+
Add any other context about the problem here.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: Feature Request
3+
about: Suggest an idea for this project
4+
title: '[FEATURE] '
5+
labels: enhancement
6+
assignees: ''
7+
---
8+
9+
**Is your feature request related to a problem? Please describe.**
10+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
11+
12+
**Describe the solution you'd like**
13+
A clear and concise description of what you want to happen.
14+
15+
**Describe alternatives you've considered**
16+
A clear and concise description of any alternative solutions or features you've considered.
17+
18+
**Additional context**
19+
Add any other context or screenshots about the feature request here.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
## Description
2+
<!-- Describe your changes in detail -->
3+
4+
## Related Issue
5+
<!-- Please link to the issue here -->
6+
Fixes #
7+
8+
## Type of Change
9+
<!-- Please delete options that are not relevant -->
10+
- [ ] Bug fix (non-breaking change addressing an issue)
11+
- [ ] New feature (non-breaking change adding functionality)
12+
- [ ] Breaking change (fix or feature causing existing functionality to break)
13+
- [ ] Documentation update
14+
15+
## Testing
16+
<!-- Please describe the tests you ran to verify your changes -->
17+
- [ ] Test A
18+
- [ ] Test B
19+
20+
## Checklist
21+
- [ ] My code follows the style guidelines of this project
22+
- [ ] I have performed a self-review of my own code
23+
- [ ] I have commented my code, particularly in hard-to-understand areas
24+
- [ ] I have made corresponding changes to the documentation
25+
- [ ] My changes generate no new warnings
26+
- [ ] I have added tests that prove my fix is effective or that my feature works
27+
- [ ] New and existing unit tests pass locally with my changes

CODE_OF_CONDUCT.md

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,39 @@
22

33
## Our Pledge
44

5-
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, 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.
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.
611

712
## Our Standards
813

9-
Examples of behavior that contributes to creating a positive environment include:
14+
Examples of behavior that contributes to a positive environment:
1015

11-
* Using welcoming and inclusive language
12-
* Being respectful of differing viewpoints and experiences
13-
* Gracefully accepting constructive criticism
16+
* Demonstrating empathy and kindness toward other people
17+
* Being respectful of differing opinions, viewpoints, and experiences
18+
* Giving and gracefully accepting constructive feedback
19+
* Accepting responsibility and apologizing to those affected by our mistakes
1420
* Focusing on what is best for the community
15-
* Showing empathy towards other community members
1621

17-
Examples of unacceptable behavior by participants include:
22+
Examples of unacceptable behavior:
1823

19-
* The use of sexualized language or imagery and unwelcome sexual attention or advances
20-
* Trolling, insulting/derogatory comments, and personal or political attacks
24+
* The use of sexualized language or imagery, and sexual attention or advances
25+
* Trolling, insulting or derogatory comments, and personal or political attacks
2126
* Public or private harassment
22-
* Publishing others' private information, such as a physical or electronic address, without explicit permission
23-
* Other conduct which could reasonably be considered inappropriate in a professional setting
27+
* Publishing others' private information without explicit permission
28+
* Other conduct which could reasonably be considered inappropriate
2429

25-
## Our Responsibilities
30+
## Enforcement Responsibilities
2631

27-
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
32+
Project maintainers are responsible for clarifying and enforcing our standards of
33+
acceptable behavior and will take appropriate and fair corrective action in
34+
response to any behavior that they deem inappropriate, threatening, offensive,
35+
or harmful.
2836

2937
## Enforcement
3038

31-
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [INSERT EMAIL ADDRESS]. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement
39+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
40+
reported to the project team at

CONTRIBUTING.md

Lines changed: 53 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,78 @@
1-
# Contributing to wellcode-cli
1+
# Contributing to Wellcode CLI
22

3-
First off, thank you for considering contributing to wellcode-cli! It's people like you that make wellcode-cli such a great tool.
3+
👍🎉 First off, thanks for taking the time to contribute! 🎉👍
44

55
## Code of Conduct
66

7-
By participating in this project, you are expected to uphold our [Code of Conduct](CODE_OF_CONDUCT.md).
7+
This project and everyone participating in it is governed by our [Code of Conduct](CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code.
88

9-
## How Can I Contribute?
9+
## 🐛 Bug Reports
1010

11-
### Reporting Bugs
11+
**Before Submitting A Bug Report**
12+
* Check the [debugging guide](docs/debugging.md)
13+
* Check if the issue has already been reported
14+
* Collect information about the bug:
15+
* Stack trace
16+
* OS and version
17+
* Python version
18+
* Steps to reproduce
1219

13-
This section guides you through submitting a bug report for wellcode-cli. Following these guidelines helps maintainers and the community understand your report, reproduce the behavior, and find related reports.
20+
**How Do I Submit A (Good) Bug Report?**
21+
Create an issue using the bug report template.
1422

15-
- Use a clear and descriptive title for the issue to identify the problem.
16-
- Describe the exact steps which reproduce the problem in as many details as possible.
17-
- Provide specific examples to demonstrate the steps.
23+
## 🚀 Feature Requests
1824

19-
### Suggesting Enhancements
25+
**Before Submitting An Enhancement**
26+
* Check if there's already a similar feature request
27+
* Determine which repository the enhancement should be suggested in
28+
* Perform a cursory search to see if the enhancement has already been suggested
2029

21-
This section guides you through submitting an enhancement suggestion for wellcode-cli, including completely new features and minor improvements to existing functionality.
30+
## 🔄 Pull Request Process
2231

23-
- Use a clear and descriptive title for the issue to identify the suggestion.
24-
- Provide a step-by-step description of the suggested enhancement in as many details as possible.
25-
- Provide specific examples to demonstrate the steps.
32+
1. Follow all instructions in [the template](.github/PULL_REQUEST_TEMPLATE.md)
33+
2. Follow the [styleguides](#styleguides)
34+
3. After you submit your pull request, verify that all status checks are passing
2635

27-
### Pull Requests
28-
29-
- Fill in the required template
30-
- Do not include issue numbers in the PR title
31-
- Include screenshots and animated GIFs in your pull request whenever possible.
32-
- Follow the Python style guide.
33-
- Include thoughtfully-worded, well-structured tests.
34-
- Document new code based on the Documentation Styleguide
35-
- End all files with a newline
36-
37-
## Styleguides
36+
## 📝 Styleguides
3837

3938
### Git Commit Messages
4039

41-
- Use the present tense ("Add feature" not "Added feature")
42-
- Use the imperative mood ("Move cursor to..." not "Moves cursor to...")
43-
- Limit the first line to 72 characters or less
44-
- Reference issues and pull requests liberally after the first line
40+
* Use the present tense ("Add feature" not "Added feature")
41+
* Use the imperative mood ("Move cursor to..." not "Moves cursor to...")
42+
* Limit the first line to 72 characters
43+
* Reference issues and pull requests liberally after the first line
44+
* Consider starting the commit message with an applicable emoji:
45+
* 🎨 `:art:` when improving the format/structure of the code
46+
* 🐎 `:racehorse:` when improving performance
47+
* 📝 `:memo:` when writing docs
48+
* 🐛 `:bug:` when fixing a bug
49+
* 🔥 `:fire:` when removing code or files
4550

4651
### Python Styleguide
4752

48-
All Python code must adhere to the [PEP 8 style guide](https://www.python.org/dev/peps/pep-0008/).
53+
* Follow [PEP 8](https://www.python.org/dev/peps/pep-0008/)
54+
* Use type hints
55+
* Write docstrings for all public methods
56+
* Use meaningful variable names
4957

5058
### Documentation Styleguide
5159

52-
- Use [Markdown](https://daringfireball.net/projects/markdown/).
53-
54-
## Additional Notes
60+
* Use [Markdown](https://daringfireball.net/projects/markdown/)
61+
* Reference functions and classes in backticks: \`func()\`
62+
* Document all functions and classes
5563

56-
### Issue and Pull Request Labels
64+
## 🏷️ Issue and Pull Request Labels
5765

58-
This section lists the labels we use to help us track and manage issues and pull requests.
66+
| Label name | Description |
67+
| --- | --- |
68+
| `bug` | Confirmed bugs or reports that are very likely to be bugs |
69+
| `enhancement` | Feature requests |
70+
| `documentation` | Documentation improvements |
71+
| `good first issue` | Good for newcomers |
72+
| `help wanted` | Extra attention is needed |
5973

60-
* `bug` - Issues that are bugs.
61-
* `enhancement` - Issues that are feature requests.
62-
* `documentation` - Issues or pull requests related to documentation.
63-
* `good first issue` - Good for newcomers.
74+
## ⭐ Getting Help
6475

65-
Thank you for contributing to wellcode-cli!
76+
* Join our [Discord community](https://discord.gg/wellcode)
77+
* Check out the [documentation](https://docs.wellcode.ai)
78+
* Email us at support@wellcode.ai

README.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
<a href="https://pypi.org/project/wellcode-cli/"><img src="https://img.shields.io/pypi/v/wellcode-cli.svg" alt="PyPI version"></a>
1313
<a href="https://pypi.org/project/wellcode-cli/"><img src="https://img.shields.io/pypi/pyversions/wellcode-cli.svg" alt="Python versions"></a>
1414
<a href="https://github.com/wellcode-ai/wellcode-cli/blob/main/LICENSE"><img src="https://img.shields.io/github/license/wellcode-ai/wellcode-cli.svg" alt="License"></a>
15+
<a href="https://github.com/wellcode-ai/wellcode-cli/actions"><img src="https://github.com/wellcode-ai/wellcode-cli/workflows/tests/badge.svg" alt="Tests"></a>
16+
<a href="https://codecov.io/gh/wellcode-ai/wellcode-cli"><img src="https://codecov.io/gh/wellcode-ai/wellcode-cli/branch/main/graph/badge.svg" alt="Coverage"></a>
1517
</p>
1618

1719
## 🚀 Installation
@@ -100,6 +102,22 @@ wellcode-cli
100102
- Issues: https://github.com/wellcode-ai/wellcode-cli/issues
101103
- Email: support@wellcode.ai
102104

105+
## 📄 Contributing
106+
107+
We welcome contributions! Please see our [Contributing Guide](CONTRIBUTING.md) for details.
108+
109+
## 💖 Contributors
110+
111+
Thanks goes to these wonderful people:
112+
113+
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
114+
<!-- prettier-ignore-start -->
115+
<!-- markdownlint-disable -->
116+
<!-- Add contributors here -->
117+
<!-- markdownlint-restore -->
118+
<!-- prettier-ignore-end -->
119+
<!-- ALL-CONTRIBUTORS-LIST:END -->
120+
103121
## 📄 License
104122

105-
MIT License - see LICENSE file for details
123+
MIT License - see [LICENSE](LICENSE) file for details

docs/debugging.md

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
# Debugging Guide
2+
3+
## Common Issues and Solutions
4+
5+
### Installation Issues
6+
7+
#### Package Not Found
8+
```bash
9+
pip install wellcode-cli fails with "Package not found"
10+
```
11+
**Solution:**
12+
- Verify you're using Python 3.8 or higher
13+
- Check your pip version: `pip --version`
14+
- Try upgrading pip: `python -m pip install --upgrade pip`
15+
16+
#### Permission Errors
17+
```bash
18+
Permission denied when installing package
19+
```
20+
**Solution:**
21+
- Use a virtual environment
22+
- Or install with user flag: `pip install --user wellcode-cli`
23+
24+
### Configuration Issues
25+
26+
#### GitHub Authentication
27+
```
28+
Error: Could not authenticate with GitHub
29+
```
30+
**Solution:**
31+
1. Verify your GitHub App installation
32+
2. Run `wellcode-cli config` again
33+
3. Check organization permissions
34+
35+
#### API Key Issues
36+
```
37+
Error: Invalid API key
38+
```
39+
**Solution:**
40+
1. Verify API keys in `~/.wellcode/config.json`
41+
2. Regenerate API keys if necessary
42+
3. Run `wellcode-cli config` to reconfigure
43+
44+
### Runtime Issues
45+
46+
#### High Memory Usage
47+
If the CLI is using too much memory:
48+
1. Reduce date range in analysis
49+
2. Use `--limit` option if available
50+
3. Check for memory leaks in custom scripts
51+
52+
#### Slow Performance
53+
If commands are running slowly:
54+
1. Enable debug logging: `export WELLCODE_DEBUG=1`
55+
2. Check network connectivity
56+
3. Verify API rate limits
57+
58+
## Debug Mode
59+
60+
Enable debug logging:
61+
```bash
62+
export WELLCODE_DEBUG=1
63+
wellcode-cli review
64+
```
65+
66+
Debug log location:
67+
- Unix: `~/.wellcode/debug.log`
68+
- Windows: `%USERPROFILE%\.wellcode\debug.log`
69+
70+
## Getting Support
71+
72+
If you can't resolve an issue:
73+
74+
1. Enable debug mode
75+
2. Reproduce the issue
76+
3. Collect logs
77+
4. Create a GitHub issue with:
78+
- Steps to reproduce
79+
- Debug logs
80+
- Environment info
81+
- Expected vs actual behavior
82+
83+
## Environment Information
84+
85+
Collect system information:
86+
```bash
87+
wellcode-cli debug
88+
```
89+
90+
This provides:
91+
- Python version
92+
- OS details
93+
- Package versions
94+
- Configuration status
95+
96+
## Contributing Debug Improvements
97+
98+
Found a common issue? Help others:
99+
1. Document the solution
100+
2. Add to this guide
101+
3. Submit a PR

0 commit comments

Comments
 (0)