Thank you for your interest in contributing to GitHub Commander! This document provides guidelines and instructions for contributing to the project.
Please read and follow our Code of Conduct.
Clone your fork:
bash
git clone https://github.com/your-username/github-commander.git
cd github-commander
Create a virtual environment:
bash
python3 -m venv venv
source venv/bin/activate
Install dependencies:
bash
pip install -r requirements.txt
pip install -r requirements-dev.txt # if available
Run the application:
bash
python main.py
Use descriptive branch names:
feature/add-new-featurebugfix/fix-specific-issuedocs/update-documentationrefactor/improve-code-structureCreate a new branch from main:
bash
git checkout -b feature/your-feature-name
Make your changes
Follow conventional commits format:
feat: - New featurefix: - Bug fixdocs: - Documentation changesstyle: - Code style changesrefactor: - Code refactoringtest: - Adding or updating testschore: - Maintenance tasksExample:
feat: add support for custom keyboard shortcuts
- Add keyboard shortcut configuration in settings
- Implement shortcut handling in main window
- Add documentation for default shortcuts
"""
Module description.
"""
from typing import Optional, List
class ExampleClass:
"""Class description."""
def __init__(self, param: str):
"""Initialize the class."""
self.param = param
def method_name(self) -> bool:
"""Method description."""
return True
# Run all tests
pytest
# Run specific test file
pytest tests/test_module.py
# Run with coverage
pytest --cov=github_commander
def test_feature_works():
"""Test that the feature works as expected."""
# Arrange
input_data = "test"
# Act
result = process_data(input_data)
# Assert
assert result == "expected"
/docs/ directoryPush to your fork:
bash
git push origin feature/your-feature-name
Create a pull request on GitHub
**Description**
A clear description of the bug.
**Steps to Reproduce**
1. Go to '...'
2. Click on '...'
3. Scroll down to '...'
4. See error
**Expected Behavior**
What you expected to happen.
**Actual Behavior**
What actually happened.
**Screenshots**
If applicable, add screenshots.
**Environment**
- OS: [e.g., Ubuntu 22.04]
- Python Version: [e.g., 3.11]
- GitHub Commander Version: [e.g., 1.0.0]
**Additional Context**
Add any other context about the problem.
**Is your feature request related to a problem?**
A clear description of the problem.
**Describe the Solution**
A clear description of what you want to happen.
**Describe Alternatives**
A clear description of any alternative solutions or features.
**Additional Context**
Add any other context or screenshots.
Contributors will be recognized in:
By contributing, you agree that your contributions will be licensed under the MIT License.
Thank you for contributing to GitHub Commander!