|
| 1 | +# Git Commit Message Instructions |
| 2 | + |
| 3 | +[//]: # (https://github.com/github/awesome-copilot) |
| 4 | + |
| 5 | +## Here are some best practices for writing commit messages |
| 6 | + |
| 7 | +- Write clear, concise, and descriptive messages that explain the changes made in the commit. |
| 8 | +- Use the present tense and active voice in the message, for example, "Fix bug" instead of "Fixed bug." |
| 9 | +- Use the imperative mood, which gives the message a sense of command, e.g. "Add feature" instead of "Added feature" |
| 10 | +- Limit the subject line to 72 characters or less. |
| 11 | +- Capitalize the subject line. |
| 12 | +- Do not end the subject line with a period. |
| 13 | +- Limit the body of the message to 256 characters or less. |
| 14 | +- Use a blank line between the subject and the body of the message. |
| 15 | +- Use the body of the message to provide additional context or explain the reasoning behind the changes. |
| 16 | +- Avoid using general terms like "update" or "change" in the subject line, be specific about what was updated or changed. |
| 17 | +- Explain, What was done at a glance in the subject line, and provide additional context in the body of the message. |
| 18 | +- Why the change was necessary in the body of the message. |
| 19 | +- The details about what was done in the body of the message. |
| 20 | +- Any useful details concerning the change in the body of the message. |
| 21 | +- Use a hyphen (-) for the bullet points in the body of the message. |
| 22 | +- Use {locale} language to answer.. |
| 23 | +- No code blocks. |
| 24 | + |
| 25 | +## Write 1 commit messages that accurately summarizes the changes made in the given `git diff` output, following the best practices listed above and the conventional commit format |
| 26 | + |
| 27 | +The format is as follows: |
| 28 | + |
| 29 | +<type>(<scope>): <subject> |
| 30 | +<BODY (bullet points)> |
| 31 | + |
| 32 | +## Here is the output of the `git diff` |
| 33 | + |
| 34 | +{diff} |
0 commit comments