Conventions β
To maintain a consistent and organized codebase, we have established the following conventions for contributing to our project. Please adhere to these guidelines when making contributions.
Commit messages β
We use the GitMoji convention for commit messages. This helps us maintain clarity and consistency in our commit history.
A commit message should follow the format:
<intention> [scope?][:?] <message>
<intention>
: The intention you want to express with the commit, using an emoji from the GitMoji list. Either in the:shortcode:
or Unicode format.[scope?][:?]
: An optional string that adds contextual information for the scope of the change. If present, it should be followed by a colon.<message>
: A brief explanation of the change.
Examples for possible commit messages:
π Fix error while user image is loading
β¨ Add user registration dialog
π Update README with new installation instructions
Branch naming β
When creating branches for your contributions, please use one of the following prefixes to indicate the type of work being done. This helps in categorizing and understanding the purpose of each branch at a glance.
Prefix | Gitmoji | Description | Example | Labels |
---|---|---|---|---|
feature/ | β¨ | Implementing a new feature or major functionality | feature/user-authentication | β¨ Enhancement |
fix/ | π | Fixing a bug, issue, or regression | fix/crash-on-startup | π Bug, ποΈ Hotfix |
docs/ | π | Documentation updates or improvements | docs/api-usage-guide | π Documentation |
refactor/ | β»οΈ | Code refactoring without changing existing behavior | refactor/database-layer | β»οΈ Refactor |
ui/ | π | User interface or experience improvements | ui/button-alignment | π UI/UX |
security/ | ποΈ | Fixing or improving security-related functionality | security/fix-token-leak | ποΈ Security |
chore/ | π οΈ | General maintenance, dependency updates, tooling, etc. | chore/improve-logging | π οΈ Maintenance |
Labels β
When creating pull requests and issues, please use the appropriate labels to categorize your changes. This helps maintainers quickly understand the nature of your contribution. The labels should match the prefixes used in branch naming.
Label | Description | Color |
---|---|---|
β¨ Enhancement | New feature or request | #eeff00 |
π Bug | Something isn't working as intended | #ff4545 |
ποΈ Hotfix | Critical or emergency fix | #b60205 |
ποΈ Security | Address security vulnerabilities | #b60205 |
π Dependencies | External library or package updates | #4da0ff |
π Documentation | Improvements or additions to documentation | #005999 |
β»οΈ Refactor | Code improvements without changing function | #009600 |
π UI/UX | Changes related to the user interface and experience | #ff2590 |
π οΈ Maintenance | General maintenance and updates | #545454 |
ποΈ Backend | Changes related to Backend | #ff7f00 |
ποΈ Frontend | Changes related to Frontend | #ff7f00 |
ποΈ CIT-EAI | Changes related to CIT-EAI | #ff7f00 |