|
1 | | -# Contributing to Opensox AI |
| 1 | +# contributing to opensox ai |
2 | 2 |
|
3 | | -Thank you for your interest in contributing to Opensox AI! 🎉 |
| 3 | +thank you for your interest in contributing to opensox ai! 🎉 |
4 | 4 |
|
5 | | -## Contribution Guidelines |
| 5 | +## getting started |
6 | 6 |
|
7 | | -1. **We love our contributors and love the contributions!** |
| 7 | +please refer to our [readme.md](./readme.md) for detailed setup instructions on how to get the project running locally. |
8 | 8 |
|
9 | | -2. **Please propose a plan before actually working on an issue so that you can save your time.** |
| 9 | +## contribution guidelines |
10 | 10 |
|
11 | | -3. **To avoid hurting feelings, please ask for an assignment before raising a PR.** |
| 11 | +1. **we love our contributors and love the contributions!** |
12 | 12 |
|
13 | | -4. **If you face any problem, feel free to ping maintainers.** |
| 13 | +2. **please propose a plan before actually working on an issue so that you can save your time.** |
14 | 14 |
|
15 | | -5. **Be nice to everyone and help others.** |
| 15 | +3. **to avoid hurting feelings, please ask for an assignment before raising a pr.** |
16 | 16 |
|
17 | | -6. **Don't spam.** |
| 17 | +4. **if you face any problem, feel free to ping maintainers.** |
18 | 18 |
|
19 | | -7. **Enjoy Open Source values.** |
| 19 | +5. **be nice to everyone and help others.** |
20 | 20 |
|
21 | | -## Getting Started |
| 21 | +6. **don't spam.** |
22 | 22 |
|
23 | | -Please refer to our [README.md](./README.md) for detailed setup instructions on how to get the project running locally. |
| 23 | +7. **enjoy open source values.** |
24 | 24 |
|
25 | | -## Need Help? |
| 25 | +## we can't be linus torvalds but we can follow these good practices: |
26 | 26 |
|
27 | | -If you have any questions or need assistance, feel free to: |
28 | | -- [Open an issue](https://github.com/apsinghdev/opensox/issues) |
29 | | -- Join our [Discord community](https://discord.gg/zbHzgMNBrm) |
30 | | -- Email us at hi@opensox.ai |
| 27 | +### 1. naming conventions |
31 | 28 |
|
32 | | -We're here to help! 💙 |
| 29 | +#### a). commits |
33 | 30 |
|
| 31 | +name your commits like this: |
| 32 | + |
| 33 | +``` |
| 34 | +<type>: <short summary> |
| 35 | +
|
| 36 | +# types: feat, fix, docs, style, refactor, perf, test, chore |
| 37 | +
|
| 38 | +# examples: |
| 39 | +feat: add user login api |
| 40 | +fix: correct null pointer in payment service |
| 41 | +docs: update installation guide |
| 42 | +``` |
| 43 | + |
| 44 | +#### b). branches |
| 45 | + |
| 46 | +name your branches like this: |
| 47 | + |
| 48 | +``` |
| 49 | +<branch-type>/<short-description> |
| 50 | +
|
| 51 | +# branch types: feature, fix, hotfix, release, chore |
| 52 | +# examples: |
| 53 | +feature/user-auth |
| 54 | +fix/cart-crash |
| 55 | +hotfix/payment-timeout |
| 56 | +release/v1.2.0 |
| 57 | +chore/update-deps |
| 58 | +``` |
| 59 | + |
| 60 | +#### c). issues |
| 61 | + |
| 62 | +name your issues like this: |
| 63 | + |
| 64 | +``` |
| 65 | +[category] short clear issue title |
| 66 | +
|
| 67 | +# categories: bug, feature, improvement, docs, task |
| 68 | +# examples: |
| 69 | +[bug] cart not updating on quantity change |
| 70 | +[feature] add otp login |
| 71 | +[improvement] speed up dashboard api |
| 72 | +[docs] add steps to run locally |
| 73 | +``` |
| 74 | + |
| 75 | +#### d). pull requests |
| 76 | + |
| 77 | +name your pull requests like this: |
| 78 | + |
| 79 | +``` |
| 80 | +<type>: <what this pr does> |
| 81 | +
|
| 82 | +# types: feat, fix, chore, docs, refactor, style, test |
| 83 | +# examples: |
| 84 | +feat: implement otp login flow |
| 85 | +fix: resolve cart sync issue |
| 86 | +docs: add api usage examples |
| 87 | +refactor: clean up order controller |
| 88 | +``` |
| 89 | + |
| 90 | +### 2. code review guidelines |
| 91 | + |
| 92 | +please don't mark the coderabit reviews as resolved without any reason. mark them resolved only when: |
| 93 | + |
| 94 | +- you have applied the solution/fix suggested by coderabit and tested it |
| 95 | +- you are very confident that this review fix isn't very much necessary or not an actual improvement (in this case, write down your reason first in the comment, only then mark it as resolved) |
| 96 | +- if something not clear in reviews, you can ping @apsinghdev for help. |
| 97 | + |
| 98 | +### 3. pull request guidelines |
| 99 | + |
| 100 | +#### a). ui/ux changes |
| 101 | + |
| 102 | +if it's a ui/ux related change, always attach screenshots/screen recording of the changes you've made. |
| 103 | + |
| 104 | +#### b). issue references |
| 105 | + |
| 106 | +if your pull request fully resolves a bug or completes a feature, include (in the description): |
| 107 | + |
| 108 | +``` |
| 109 | +fixes #<issue-number> |
| 110 | +``` |
| 111 | + |
| 112 | +if your pull request is related to an issue but does not completely fix it, use one of the following instead: |
| 113 | + |
| 114 | +- `refs #<issue-number>` - related, but not fixing |
| 115 | +- `addresses #<issue-number>` - partially solves or progresses the issue |
| 116 | + |
| 117 | +this keeps the issue-tracking clean and prevents issues from closing prematurely. |
| 118 | + |
| 119 | +### need help? |
| 120 | + |
| 121 | +if you have any questions or need assistance, feel free to: |
| 122 | + |
| 123 | +- [open an issue](https://github.com/apsinghdev/opensox/issues) |
| 124 | +- join our [discord community](https://discord.gg/zbHzgMNBrm) |
| 125 | +- email us at hi@opensox.ai |
| 126 | + |
| 127 | +we're here to help! ❤️ |
0 commit comments