We’re excited you want to contribute to the Flare Developer Hub! 🎉
Please follow these guidelines to ensure a smooth and productive collaboration.
We welcome:
- Pull Requests (PRs) for bug fixes, features, and documentation updates
- Bug Reports for issues found
- Feature Requests and suggestions
-
Fork the Repository and create a new branch:
git checkout -b feature/your-feature-name
-
Commit Changes using the Conventional Commit format:
git commit -m "feat(api): add support for new endpoints"
-
Push the Branch to your fork:
git push origin feature/your-feature-name
-
Open a Pull Request (PR) on the main repository.
Follow the Conventional Commits format for clear and structured commit messages:
Format:
<type>(<scope>): <description>
Examples:
fix(api): correct response status for invalid input
feat(docs): add section for new API usage
Types:
Type | Description |
---|---|
feat |
New feature |
fix |
Bug fix |
docs |
Documentation updates |
chore |
Maintenance tasks |
test |
Adding or improving tests |
refactor |
Code improvements without feature changes |
ci |
CI pipeline changes |
Additional Notes:
- Scope: Indicates the area of the project affected (e.g.,
api
,docs
,frontend
). - Keep commit messages concise but descriptive.
Important: All contributions will be licensed under the project’s license.
-
Keep PRs Small and Focused:
- Submit one PR per feature or bug fix.
- Avoid combining unrelated changes.
-
Discuss Large Changes First:
- For significant features or major changes, open an issue to discuss it with maintainers before submitting a PR.
-
Follow the Code Style:
- Match the existing code style and structure.
- Use the configured linter and formatter when applicable.
-
Ensure Tests Pass:
- Run the test suite and address any CI/CD pipeline failures.
-
Handle Merge Conflicts Early:
- If a merge conflict occurs, resolve it promptly.
When contributing diagrams, follow the established visual style:
Element | Light Mode | Dark Mode |
---|---|---|
Arrow Width | 1px | 1px |
Arrow Color | #595959 |
#FFFFFF |
Border Width | 1px | 1px |
Border Color (Highlight) | #E7125E |
#EF4A82 |
Border Color (Normal) | #595959 |
#FFFFFF |
Onchain Border Style | Solid | Solid |
Offchain Border Style | Dashed | Dashed |
Tip: Use the dashed style only if both onchain and offchain elements are displayed.
By following these guidelines, you’ll help maintain a high-quality, collaborative development environment. Thank you for contributing!