Skip to content

Add PR Description Using LinearB's AI

Use the AI_DescribePR filter to automatically generate and append a concise, AI-generated description to a pull request. This ensures that all PRs include meaningful and helpful descriptions, improving review efficiency.

Premium Feature

This automation uses LinearB’s AI service and is available exclusively for paid accounts.

If you’re interested in unlocking this feature, contact our sales team.

summarized-pr

Configuration Description

Conditions (all must be true):

  • A PR is created or new code has been committed to the PR.

Automation Actions:

  • Append the AI-generated description to the PR description.

Configuration Example

manifest:
  version: 1.0

automations:
  add_pr_description:
    on:
      - pr_created
      - commit
    if:
      - {{ pr.author | match(list=['github-actions', 'dependabot', '[bot]']) | nope }}
    run:
      - action: update-description@v1
        args:
          concat_mode: append
          description: {{ source | AI_DescribePR }}

Additional Resources

gitStream is a workflow automation tool that enables you to use YAML configuration files to optimize your code review process. Add context to PRs, find code experts for reviews, and automate the merge process to maximize developer productivity.

Learn More about how gitStream Works.

Related Automations:

More Automations can be found on the Automation Library and Integrations pages.