Thank you for your interest in contributing to Melodica! Your contributions help make this project better. Here’s a guide to help you get started.
If you encounter any bugs or have feature requests, please open an issue. Make sure to provide enough context and details for others to understand and potentially reproduce the issue.
To contribute code, start by forking the repository. This will create a copy of the repository under your GitHub account.
- Click the Fork button at the top of this repository.
- Clone the forked repository to your local machine:
git clone https://github.com/zombocoder/melodica.git cd melodica
Create a new branch for each feature or bug fix:
git checkout -b feature/your-feature-branch-name
Make your changes in the new branch. Ensure your code is clean and well-documented. Follow the project’s coding style, and keep changes focused on the scope of the feature or bug fix.
Make sure all tests pass by running:
make test
If you’re adding a new feature or fixing a bug, consider adding new tests to verify your changes.
Commit your changes with a clear and concise message:
git add .
git commit -m "Add feature: brief description of your feature"
Push your branch to your forked repository:
git push origin feature/your-feature-branch-name
Go to the original Melodica repository, and open a pull request from your branch. In your pull request, please provide:
- A clear title and description of the change
- Reference to any issues it addresses, if applicable (e.g.,
Closes #issue-number
) - Any additional information that could help reviewers understand your change
- Follow Go conventions for formatting and naming.
- Use comments to document complex or important sections of code.
- Write tests for new features and bug fixes where applicable.
- Build the Project: Use
make build
to compile the application. - Run the Application: Use
make run PLAYLIST=playlist.txt
to run the app with a specified playlist. - Run Tests: Use
make test
to ensure that tests pass before submitting a pull request. - Clean Up: Use
make clean
to remove generated files when needed.
- Be respectful: Please follow the Code of Conduct and treat all contributors with respect.
- Be patient: Reviewers may need time to review your changes.
Thank you for contributing to Melodica and helping make it better for everyone! We appreciate your support and look forward to collaborating with you.