Thank you for your interest in contributing to SwiftGlass! We welcome contributions from everyone, regardless of experience level.
- Code of Conduct
- Getting Started
- Development Setup
- Pull Request Process
- Coding Standards
- Commit Guidelines
- Testing
- Documentation
- Issue Reporting
- Community
Please read and follow our Code of Conduct. By participating in this project, you agree to abide by its terms.
- Fork the repository on GitHub
- Clone your fork locally:
git clone https://github.com/YOUR-USERNAME/swiftglass.git cd swiftglass - Set up the remote upstream:
git remote add upstream https://github.com/1998code/swiftglass.git - Create a branch for your work:
git checkout -b your-feature-name
Follow these steps to set up your development environment:
-
Requirements:
- Xcode 15.0 or later
- Swift 5.9 or later
- macOS 14.0 or later
-
Open the Package:
open Package.swiftOr open the package directly in Xcode by double-clicking the Package.swift file
-
Build the Package:
- In Xcode, select Product > Build to build the package
- Alternatively, use the command line:
swift build
- Update your fork with the latest changes from the upstream repository:
git fetch upstream git merge upstream/main - Commit your changes with clear commit messages
- Push to your fork:
git push origin your-feature-name - Submit a Pull Request through the GitHub interface
- Respond to feedback and make requested changes if needed
- Once approved, your PR will be merged by a maintainer
Please follow these guidelines when writing code:
- Use consistent indentation
- Follow naming conventions for variables, functions, and classes
- Write clear comments for complex code sections
- Break large functions into smaller, more manageable ones
- Remove any debugging code or console logs before submitting
- Format your code using the project's linter configuration
We follow conventional commits for our commit messages:
Example: Add new examples
Before submitting your PR, ensure:
- All existing tests pass
- You've added tests for new functionality
- Your changes don't break existing functionality
Please update documentation when:
- Adding new features
- Changing existing functionality
- Fixing bugs that affect user experience
- Updating dependencies or configuration
When reporting issues, please include:
- A clear, descriptive title
- Steps to reproduce the issue
- Expected behavior
- Actual behavior
- Screenshots if applicable
- Environment information (OS, Xcode Version, etc.)
- Star our repository on GitHub
- Follow 1998code for updates
- Report issues and suggest features through GitHub Issues
Thank you for contributing to SwiftGlass! Your help makes this project better for everyone.