|
| 1 | +--- |
| 2 | +title: Automation - Generate PR Description from Commit Messages |
| 3 | +description: Automatically generate Pull Request descriptions based on commit messages. |
| 4 | +category: [quality, productivity] |
| 5 | +--- |
| 6 | +# Automatically Generate PR Description from Commit Messages |
| 7 | + |
| 8 | +Automatically generate Pull Request descriptions based on commit messages. This automation helps ensure PR descriptions are consistent and informative. |
| 9 | + |
| 10 | +!!! warning "Required gitStream Plugins" |
| 11 | + This example requires you to install the [`generateDescription`](/filter-function-plugins/#generatedescription) plugin. |
| 12 | + |
| 13 | + [Learn more about gitStream plugins](/plugins/). |
| 14 | + |
| 15 | +<div class="automationImage" style="align:right" markdown="1"> |
| 16 | + |
| 17 | +</div> |
| 18 | +<div class="automationDescription" markdown="1"> |
| 19 | +!!! info "Configuration Description" |
| 20 | + Conditions (all must be true): |
| 21 | + |
| 22 | + * A PR is created or has commits added to it. |
| 23 | + |
| 24 | + Automation Actions: |
| 25 | + |
| 26 | + * Update the PR description with auto-generated content based on commit messages. |
| 27 | +</div> |
| 28 | +<div class="automationExample" markdown="1"> |
| 29 | +!!! example "Generate PR Description" |
| 30 | + ```yaml+jinja |
| 31 | + --8<-- "docs/downloads/automation-library/generate_pr_description.cm.cm" |
| 32 | + ``` |
| 33 | + <div class="result" markdown> |
| 34 | + <span> |
| 35 | + [:octicons-download-24: Download this example as a CM file.](/downloads/automation-library/generate_pr_description.cm.cm"){ .md-button } |
| 36 | + </span> |
| 37 | + </div> |
| 38 | +</div> |
| 39 | + |
| 40 | +## Additional Resources |
| 41 | + |
| 42 | +--8<-- "docs/snippets/general.md" |
| 43 | + |
| 44 | +**Related Automations**: |
| 45 | + |
| 46 | +--8<-- "docs/snippets/context-automation.md::2" |
| 47 | +--8<-- "docs/snippets/context-automation.md:4:" |
| 48 | + |
| 49 | +--8<-- "docs/snippets/automation-footer.md" |
0 commit comments