You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for considering contributing to recode hive! We welcome contributions from everyone. Whether you're a seasoned developer or just starting out, there are many ways to get involved and help improve recode hive. This document outlines the guidelines for contributing to this project.
8
+
## Table of Contents
9
9
10
-
## Getting Started
10
+
-[Local Setup Guide](#local-setup-guide)
11
+
-[Environment Setup (for GitHub API access)](#environment-setup-for-github-api-access)
12
+
-[Contributing to recode hive](#contributing-to-recode-hive)
This allows you to fetch changes from the main repository to keep your fork up to date.
94
+
95
+
```bash
96
+
git remote add upstream <repo-url>
97
+
```
98
+
99
+
Verify the remotes:
100
+
101
+
```bash
102
+
git remote -v
103
+
```
104
+
105
+
You should see both origin (your fork) and upstream (main repository).
106
+
107
+
4.**Keep Your Fork Updated**
108
+
109
+
Before starting a new feature or bug fix, update your local main branch:
110
+
111
+
```bash
112
+
git checkout main
113
+
git fetch upstream
114
+
git merge upstream/main
115
+
```
65
116
66
-
### Formatting
117
+
This ensures your branch starts from the latest version of the main repository.
67
118
68
-
- Follow the existing code style for spacing, indentation, and Markdown formatting.
69
-
- Use Prettier or ESLint to auto-format files before committing.
119
+
5.**Create a New Branch**
120
+
121
+
Create a branch for your feature or bug fix:
122
+
123
+
```bash
124
+
git checkout -b feature-name
125
+
```
126
+
127
+
6.**Commit Your Changes**
128
+
129
+
```bash
130
+
git add .
131
+
git commit -m "Brief description of your changes"
132
+
```
133
+
134
+
7.**Push Your Branch to Your Fork**
135
+
136
+
```bash
137
+
git push origin feature-name
138
+
```
139
+
140
+
8.**Open a Pull Request**
141
+
1. Go to your fork on GitHub.
142
+
143
+
2. Click Compare & pull request for your branch.
144
+
145
+
3. Fill out the PR template with a clear description of your changes.
146
+
147
+
4. Submit the PR.
148
+
149
+
> Tip: If your branch falls behind main, you can fetch and merge updates from upstream again before pushing.
150
+
151
+
## Formatting
152
+
153
+
To ensure consistent code style and catch errors before committing, please follow these steps:
154
+
155
+
2.**Automatically fix linting issues where possible**:
156
+
157
+
```bash
158
+
npm run lint:fix
159
+
```
160
+
161
+
3.**Format code according to project conventions**:
162
+
163
+
```bash
164
+
npm run format
165
+
```
166
+
167
+
4.**Build the project to verify everything compiles correctly**:
168
+
169
+
```bash
170
+
npm run build
171
+
```
172
+
173
+
It’s recommended to run these commands before committing to maintain code quality and consistency.
174
+
175
+
## Branding & Naming Conventions
176
+
177
+
- Use **`recode hive`** in lowercase for all mentions of the project name.
178
+
- Update any headers, titles, or utility constants accordingly.
70
179
71
-
## Exceptions to Lowercase Branding
180
+
###Exceptions to Lowercase Branding
72
181
73
182
While we use lowercase **`recode hive`** throughout the project for consistency, there are some places where the exact repository name with capitalization must be used:
74
183
@@ -78,4 +187,4 @@ While we use lowercase **`recode hive`** throughout the project for consistency,
78
187
79
188
## License
80
189
81
-
This project is licensed under the [MIT License](/License).
190
+
This project is open source and available under the [MIT License](LICENSE).
0 commit comments