Skip to content

Commit 2eaf6d7

Browse files
authored
Onboarding documenation (#183)
1 parent 23adc24 commit 2eaf6d7

5 files changed

Lines changed: 682 additions & 40 deletions

File tree

β€Ž.agents/rules/git-commit-conventions.mdcβ€Ž

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Commit messages should:
1515
2. Use sentence case (capitalize first word)
1616
3. Describe the change in an imperative, present-tense style
1717
4. Not use semantic prefixes (like "fix:", "feat:", "chore:")
18+
5. Not use bracketed tags (like "[Docs]" or "[Fix]")
1819

1920
## Examples
2021

@@ -27,12 +28,14 @@ Fix PostgreSQL integration type reference issues
2728
Improve error handling in token validation
2829
```
2930

30-
### Avoid semantic prefixes:
31+
### Avoid semantic prefixes and tags:
3132

3233
```text
3334
// Don't use these formats
3435
fix: add feature flags to tests
3536
feat: implement new logging system
3637
chore: update dependencies
3738
docs: update README
39+
[Docs] Update README
40+
[Fix] Handle empty payload
3841
```

β€ŽAGENTS.mdβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,4 +114,4 @@ cargo check
114114
- Relies on Fastly KV stores for persistence.
115115
- Uses Handlebars templates for dynamic responses.
116116
- Emits detailed logs for edge debugging.
117-
- Follow conventional commit format (see `CONTRIBUTING.md`).
117+
- Follow the commit message format in `CONTRIBUTING.md`.

β€ŽCONTRIBUTING.mdβ€Ž

Lines changed: 35 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ We **love** pull requests! Before [forking the repo](https://help.github.com/en/
1414

1515
For most contributions, after your first pull request is accepted and merged, you will be [invited to the project](https://help.github.com/en/github/setting-up-and-managing-your-github-user-account/inviting-collaborators-to-a-personal-repository) and given **push access**. :tada:
1616

17-
*Note: All contributions will be licensed under the project's license.*
17+
_Note: All contributions will be licensed under the project's license._
1818

19-
- **Smaller is better.** Submit **one** pull request per bug fix or feature. A pull request should contain isolated changes pertaining to a single bug fix or feature implementation. **Do not** refactor or reformat code that is unrelated to your change. It is better to **submit many small pull requests** rather than a single large one. Enormous pull requests will take enormous amounts of time to review, or may be rejected altogether.
19+
- **Smaller is better.** Submit **one** pull request per bug fix or feature. A pull request should contain isolated changes pertaining to a single bug fix or feature implementation. **Do not** refactor or reformat code that is unrelated to your change. It is better to **submit many small pull requests** rather than a single large one. Enormous pull requests will take enormous amounts of time to review, or may be rejected altogether.
2020

2121
- **Coordinate bigger changes.** For large and non-trivial changes, open an issue to discuss a strategy with the maintainers. Otherwise, you risk doing a lot of work for nothing!
2222

@@ -30,9 +30,9 @@ For most contributions, after your first pull request is accepted and merged, yo
3030

3131
- **[Resolve any merge conflicts](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/resolving-a-merge-conflict-on-github)** that occur.
3232

33-
- **Keep PR in Draft** until ready for review. When PR ready for review assign PR to ourself and assing at least one reviewer
33+
- **Keep PR in Draft** until ready for review. When it is ready, assign the PR to yourself and request at least one reviewer.
3434

35-
- **Promptly address any CI failures**. If your pull request fails to build or pass tests, please push another commit to fix it.
35+
- **Promptly address any CI failures**. If your pull request fails to build or pass tests, please push another commit to fix it.
3636

3737
- When writing comments, use properly constructed sentences, including punctuation.
3838

@@ -44,32 +44,32 @@ Please [write a great commit message](https://chris.beams.io/posts/git-commit/).
4444

4545
1. Separate subject from body with a blank line
4646
1. Limit the subject line to 50 characters
47-
1. Capitalize the subject line
48-
1. Add [Draft] prefix for PR not ready for review
47+
1. Use sentence case (capitalize the first word)
4948
1. Do not end the subject line with a period
5049
1. Use the imperative mood in the subject line (example: "Fix networking issue")
5150
1. Wrap the body at about 72 characters
52-
1. Use the body to explain **why**, *not what and how* (the code shows that!)
53-
1. If applicable, prefix the title with the relevant component name. (examples: "[Docs] Fix typo", "[Profile] Fix missing avatar")
51+
1. Use the body to explain **why**, _not what and how_ (the code shows that!)
52+
1. Do not use semantic prefixes or tags (examples: `fix:`, `feat:`, `[Docs]`)
53+
1. Keep PR state out of commit messages; use GitHub Draft PRs instead
5454

5555
```
56-
[TAG] Short summary of changes in 50 chars or less
56+
Short summary of changes in 50 chars or less
5757
58-
Add a more detailed explanation here, if necessary. Possibly give
59-
some background about the issue being fixed, etc. The body of the
60-
commit message can be several paragraphs. Further paragraphs come
58+
Add a more detailed explanation here, if necessary. Possibly give
59+
some background about the issue being fixed, etc. The body of the
60+
commit message can be several paragraphs. Further paragraphs come
6161
after blank lines and please do proper word-wrap.
6262
63-
Wrap it to about 72 characters or so. In some contexts,
64-
the first line is treated as the subject of the commit and the
65-
rest of the text as the body. The blank line separating the summary
66-
from the body is critical (unless you omit the body entirely);
67-
various tools like `log`, `shortlog` and `rebase` can get confused
63+
Wrap it to about 72 characters or so. In some contexts,
64+
the first line is treated as the subject of the commit and the
65+
rest of the text as the body. The blank line separating the summary
66+
from the body is critical (unless you omit the body entirely);
67+
various tools like `log`, `shortlog` and `rebase` can get confused
6868
if you run the two together.
6969
7070
Explain the problem that this commit is solving. Focus on why you
71-
are making this change as opposed to how or what. The code explains
72-
how or what. Reviewers and your future self can read the patch,
71+
are making this change as opposed to how or what. The code explains
72+
how or what. Reviewers and your future self can read the patch,
7373
but might not understand why a particular solution was implemented.
7474
Are there side effects or other unintuitive consequences of this
7575
change? Here's the place to explain them.
@@ -93,33 +93,32 @@ See also: #456, #789
9393

9494
- **Always do your best.** No one writes bugs on purpose. Do your best, and learn from your mistakes.
9595

96-
- Kindly note any violations to the guidelines specified in this document.
96+
- Kindly note any violations to the guidelines specified in this document.
9797

98-
- **Use CREG (Code Review Emoji Guide)** to give the reviewee added context and clarity to follow up on code review.
98+
- **Use CREG (Code Review Emoji Guide)** to give the reviewee added context and clarity to follow up on code review.
9999

100100
### Emoji Legend
101101

102-
| | `:code:` | Meaning |
103-
| :-: | :----------: | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
104-
| πŸ˜ƒπŸ‘πŸ’― | `:smiley:` `:+1:` `:100:` | I like this... <br /><br /> ...and I want the author to know it! This is a way to highlight positive parts of a code review. |
105-
| πŸ”§ | `:wrench:` | I think this needs to be changed. <br /><br />This is a concern or suggested change/refactor that I feel is worth addressing. |
106-
| ❓ | `:question:` | I have a question. <br /><br /> This should be a fully formed question with sufficient information and context that requires a response. |
107-
| πŸ€”πŸ’­ | `:thinking:` `:thought_balloon:` | Let me think out loud here for a minute. <br /><br /> I might express concern, suggest an alternative solution, or walk through the code in my own words to make sure I understand. |
108-
| 🌱 | `:seedling:` | Planting a seed for future. <br /><br /> An observation or suggestion that is not a change request, but may have larger implications. Generally something to keep in mind for the future. |
109-
| πŸ“ | `:memo:` | This is an explanatory note, fun fact, or relevant commentary that does not require any action. |
110-
| ⛏ | `:pick:` | This is a nitpick. <br /><br /> This does not require any changes and is often better left unsaid. This may include stylistic, formatting, or organization suggestions and should likely be prevented/enforced by linting if they really matter |
111-
| ♻️ | `:recycle:` | Suggestion for refactoring. <br /><br /> Should include enough context to be actionable and not be considered a nitpick. |
112-
| πŸ• | `:camping:` | Here is an opportunity, not directly related to your changes, for us to leave the campground [code] cleaner than we found it. |
113-
| πŸ“Œ | `:pushpin:` | This is a concern that is _out of scope_ and should be staged appropriately for follow up. |
114-
102+
| | `:code:` | Meaning |
103+
| :----: | :------------------------------: | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
104+
| πŸ˜ƒπŸ‘πŸ’― | `:smiley:` `:+1:` `:100:` | I like this... <br /><br /> ...and I want the author to know it! This is a way to highlight positive parts of a code review. |
105+
| πŸ”§ | `:wrench:` | I think this needs to be changed. <br /><br />This is a concern or suggested change/refactor that I feel is worth addressing. |
106+
| ❓ | `:question:` | I have a question. <br /><br /> This should be a fully formed question with sufficient information and context that requires a response. |
107+
| πŸ€”πŸ’­ | `:thinking:` `:thought_balloon:` | Let me think out loud here for a minute. <br /><br /> I might express concern, suggest an alternative solution, or walk through the code in my own words to make sure I understand. |
108+
| 🌱 | `:seedling:` | Planting a seed for future. <br /><br /> An observation or suggestion that is not a change request, but may have larger implications. Generally something to keep in mind for the future. |
109+
| πŸ“ | `:memo:` | This is an explanatory note, fun fact, or relevant commentary that does not require any action. |
110+
| ⛏ | `:pick:` | This is a nitpick. <br /><br /> This does not require any changes and is often better left unsaid. This may include stylistic, formatting, or organization suggestions and should likely be prevented/enforced by linting if they really matter |
111+
| ♻️ | `:recycle:` | Suggestion for refactoring. <br /><br /> Should include enough context to be actionable and not be considered a nitpick. |
112+
| πŸ• | `:camping:` | Here is an opportunity, not directly related to your changes, for us to leave the campground [code] cleaner than we found it. |
113+
| πŸ“Œ | `:pushpin:` | This is a concern that is _out of scope_ and should be staged appropriately for follow up. |
115114

116115
## :nail_care: Coding Style
117116

118117
Consistency is the most important. Following the existing Rust style, formatting, and naming conventions of the file you are modifying and of the overall project. Failure to do so will result in a prolonged review process that has to focus on updating the superficial aspects of your code, rather than improving its functionality and performance.
119118

120-
Style and format will be enforced with a linter when PR is crated.
119+
Style and format will be enforced with a linter when the PR is created.
121120

122121
## :pray: Credits
123122

124123
- https://github.com/jessesquires/.github/blob/main/CONTRIBUTING.md
125-
- https://github.com/erikthedeveloper/code-review-emoji-guide
124+
- https://github.com/erikthedeveloper/code-review-emoji-guide

0 commit comments

Comments
Β (0)