# Git Commit Message Generation
## INSTRUCTIONS:
Generate concise and meaningful git commit messages from diffs, adhering to the following guidelines:
- **Language**: English
- **Summary Length**: Up to 72 characters.
- **Structure**: Start with a clear, present-tense summary.
- **Content**: Highlight the changes and their rationale, omitting irrelevant details.
- **Consistency**: Ensure uniformity in tense, punctuation, and capitalization.
- **Accuracy**: The message should accurately reflect the changes and their purpose.
## EXAMPLE PROMPTS:
Given the diff content, generate a commit message that follows the specified format and guidelines:
**Format**: `{"<Commit Message>": "<Diff Content>"}`
```jsonl
{"Fix grammar in active_record_validations.md guide": "diff --git a/guides/source/active_record_validations.md b/guides/source/active_record_validations.md\nindex 38bb351..62c6acb 100644\n--- a/guides/source/active_record_validations.md\n+++ b/guides/source/active_record_validations.md\n@@ -659 +659 @@ end\nNOTE: If you want to ensure that the association it is both present and valid,\nNOTE: If you want to ensure that the association is both present and valid,\n@@ -716 +716 @@ end\nNOTE: If you want to ensure that the association it is both present and valid,\nNOTE: If you want to ensure that the association is both present and valid,"}
{"Update PR template for clarity and grammar": "diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md\nindex 6ed5cb6..fd53fc4 100644\n--- a/.github/pull_request_template.md\n+++ b/.github/pull_request_template.md\n@@ -17 +17 @@ The following template aims to help contributors write a good description for th\nWe'd like you to provide a description of the changes in your pull request (i.e. bugs fixed or features added), motivation behind the changes, and complete the checklist below before opening a pull request.\nWe'd like you to provide a description of the changes in your pull request (i.e. bugs fixed or features added), the motivation behind the changes, and complete the checklist below before opening a pull request.\n@@ -36 +36 @@ This Pull Request changes [REPLACE ME]\n<!-- Provide additional information such as benchmarks, reference to other repositories or alternative solutions. -->\n<!-- Provide additional information such as benchmarks, references to other repositories, or alternative solutions. -->\n@@ -42 +42 @@ Before submitting the PR make sure the following are checked:\n* [ ] This Pull Request is related to one change. Changes that are unrelated should be opened in separate PRs.\n* [ ] This Pull Request is related to one change. Unrelated changes should be opened in separate PRs."}
{"Correct header formatting in configuring.md": "diff --git a/guides/source/configuring.md b/guides/source/configuring.md\nindex b7a0642..129db8b 100644\n--- a/guides/source/configuring.md\n+++ b/guides/source/configuring.md\n@@ -3457 +3457 @@ Load Hooks\n----------------------------\n----------"}
{"Clarify documentation in delegated_type.rb": "diff --git a/activerecord/lib/active_record/delegated_type.rb b/activerecord/lib/active_record/delegated_type.rb\nindex eedb250..2281837 100644\n--- a/activerecord/lib/active_record/delegated_type.rb\n+++ b/activerecord/lib/active_record/delegated_type.rb\n@@ -39 +39 @@ module ActiveRecord\n # # Schema: entries[ id, account_id, creator_id, created_at, updated_at, entryable_type, entryable_id ]\n # # Schema: entries[ id, account_id, creator_id, entryable_type, entryable_id, created_at, updated_at ]\n@@ -54 +54 @@ module ActiveRecord\n # # Schema: messages[ id, subject, body ]\n # # Schema: messages[ id, subject, body, created_at, updated_at ]\n@@ -59 +59 @@ module ActiveRecord\n # # Schema: comments[ id, content ]\n # # Schema: comments[ id, content, created_at, updated_at ]"}
{"Add API doc links in AR Callbacks/Validations guide": "diff --git a/guides/source/active_record_callbacks.md b/guides/source/active_record_callbacks.md\nindex ce98c3d..24c230d 100644\n--- a/guides/source/active_record_callbacks.md\n+++ b/guides/source/active_record_callbacks.md\n@@ -313,18 +313,18 @@ Just as with validations, it is also possible to skip callbacks by using the fol\n* `decrement!`\n* `decrement_counter`\n* `delete`\n* `delete_all`\n* `delete_by`\n* `increment!`\n* `increment_counter`\n* `insert`\n* `insert!`\n* `insert_all`\n* `insert_all!`\n* `touch_all`\n* `update_column`\n* `update_columns`\n* `update_all`\n* `update_counters`\n* `upsert`\n* `upsert_all`\n* [`decrement!`][]\n* [`decrement_counter`][]\n* [`delete`][]\n* [`delete_all`][]\n* [`delete_by`][]\n* [`increment!`][]\n* [`increment_counter`][]\n* [`insert`][]\n* [`insert!`][]\n* [`insert_all`][]\n* [`insert_all!`][]\n* [`touch_all`][]\n* [`update_column`][]\n* [`update_columns`][]\n* [`update_all`][]\n* [`update_counters`][]\n* [`upsert`][]\n* [`upsert_all`][]\n@@ -333,0 +334,19 @@ These methods should be used with caution, however, because important business r\n[`decrement!`]: https://api.rubyonrails.org/classes/ActiveRecord/Persistence.html#method-i-decrement-21\n[`decrement_counter`]: https://api.rubyonrails.org/classes/ActiveRecord/CounterCache/ClassMethods.html#method-i-decrement_counter\n[`delete`]: https://api.rubyonrails.org/classes/ActiveRecord/Persistence.html#method-i-delete\n[`delete_all`]: https://api.rubyonrails.org/classes/ActiveRecord/Relation.html#method-i-delete_all\n[`delete_by`]: https://api.rubyonrails.org/classes/ActiveRecord/Relation.html#method-i-delete_by\n[`increment!`]: https://api.rubyonrails.org/classes/ActiveRecord/Persistence.html#method-i-increment-21\n[`increment_counter`]: https://api.rubyonrails.org/classes/ActiveRecord/CounterCache/ClassMethods.html#method-i-increment_counter\n[`insert`]: https://api.rubyonrails.org/classes/ActiveRecord/Persistence/ClassMethods.html#method-i-insert\n[`insert!`]: https://api.rubyonrails.org/classes/ActiveRecord/Persistence/ClassMethods.html#method-i-insert-21\n[`insert_all`]: https://api.rubyonrails.org/classes/ActiveRecord/Persistence/ClassMethods.html#method-i-insert_all\n[`insert_all!`]: https://api.rubyonrails.org/classes/ActiveRecord/Persistence/ClassMethods.html#method-i-insert_all-21\n[`touch_all`]: https://api.rubyonrails.org/classes/ActiveRecord/Relation.html#method-i-touch_all\n[`update_column`]: https://api.rubyonrails.org/classes/ActiveRecord/Persistence.html#method-i-update_column\n[`update_columns`]: https://api.rubyonrails.org/classes/ActiveRecord/Persistence.html#method-i-update_columns\n[`update_all`]: https://api.rubyonrails.org/classes/ActiveRecord/Relation.html#method-i-update_all\n[`update_counters`]: https://api.rubyonrails.org/classes/ActiveRecord/Relation.html#method-i-update_counters\n[`upsert`]: https://api.rubyonrails.org/classes/ActiveRecord/Persistence/ClassMethods.html#method-i-upsert\n[`upsert_all`]: https://api.rubyonrails.org/classes/ActiveRecord/Persistence/ClassMethods.html#method-i-upsert_all"}
```