mirror of
https://github.com/Cyclenerd/offline-map-tile-downloader.git
synced 2026-05-24 00:14:54 +02:00
82 lines
2.3 KiB
Markdown
82 lines
2.3 KiB
Markdown
# Contributing to the Project
|
|
|
|
Thank you for considering contributing to our project! Your help and involvement are highly appreciated.
|
|
This guide will help you get started with the contribution process.
|
|
|
|
## Table of Contents
|
|
|
|
1. [Fork the Repository](#fork-the-repository-)
|
|
2. [Clone Your Fork](#clone-your-fork-)
|
|
3. [Create a New Branch](#create-a-new-branch-)
|
|
4. [Submitting Changes](#submitting-changes-)
|
|
5. [Create a Pull Request](#create-a-pull-request-)
|
|
6. [Coding Style](#coding-style-)
|
|
7. [Keep It Simple](#keep-it-simple-)
|
|
|
|
## Fork the Repository 🍴
|
|
|
|
Start by forking the repository. You can do this by clicking the "Fork" button in the
|
|
upper right corner of the repository page. This will create a copy of the repository
|
|
in your GitHub account.
|
|
|
|
## Clone Your Fork 📥
|
|
|
|
Clone your newly created fork of the repository to your local machine with the following command:
|
|
|
|
```bash
|
|
git clone https://github.com/your-username/offline-map-tile-downloader.git
|
|
```
|
|
|
|
## Create a New Branch 🌿
|
|
|
|
Create a new branch for the specific issue or feature you are working on.
|
|
Use a descriptive branch name:
|
|
|
|
```bash
|
|
git checkout -b "feature-or-issue-name"
|
|
```
|
|
|
|
## Submitting Changes 🚀
|
|
|
|
Make your desired changes to the codebase.
|
|
|
|
Stage your changes using the following command:
|
|
|
|
```bash
|
|
git add .
|
|
```
|
|
|
|
Commit your changes with a clear and concise commit message:
|
|
|
|
```bash
|
|
git commit -m "A brief summary of the commit."
|
|
```
|
|
|
|
## Create a Pull Request 🌟
|
|
|
|
Go to your forked repository on GitHub and click on the "New Pull Request" button.
|
|
This will open a new pull request to the original repository.
|
|
|
|
## Coding Style 📝
|
|
|
|
This project follows standard Go coding conventions. Before submitting your changes, please ensure that your code is formatted with `gofmt`.
|
|
|
|
Most editors for Go will format your code automatically on save. You can also run `gofmt` manually:
|
|
|
|
```bash
|
|
gofmt -w .
|
|
```
|
|
|
|
In addition to `gofmt`, please follow these guidelines:
|
|
|
|
- Write clear and concise comments where necessary.
|
|
- Follow the naming conventions established in the existing code.
|
|
- Keep functions and methods short and focused on a single task.
|
|
- Handle errors explicitly and avoid panicking.
|
|
|
|
## Keep It Simple 👍
|
|
|
|
Simplicity is key. When making changes, aim for clean, easy-to-understand code that benefits all users.
|
|
|
|
Thank you for your contribution! ❤️
|