Skip to content

Integrate gitStream with LinearB's AI

Add PR Description Using LinearB's AI

Use the describe-changes automation action 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.

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:
  pr_description:
    # trigger it only when PR is created or has new commits.
    on:
      - pr_created
      - commit
    # Skip description for Draft PRs and PRs from bots.
    if:
      - {{ not pr.draft }}
      - {{ pr.author | match(list=['github-actions', 'dependabot', '[bot]']) | nope }}
    run:
      - action: describe-changes@v1
        args:
          concat_mode: append

Use LinearB's AI for a comprehensive Code Review

Use LinearB's AI with the code-review action to automatically review the introduced changes to the code.

code-review

Configuration Description

Conditions (all must be true):

  • A PR is created or new code has been committed to the PR.
  • The PR is not on Draft staten and was not created by a bot.

Automation Actions:

  • Perform an AI-driven code review and append the review comments to the PR.

Configuration Example

manifest:
  version: 1.0

automations:
  linearb_ai_review:
    on:
      - pr_created
      - commit
    if:
      - {{ pr.draft == false }}
      - {{ pr.author | match(list=['github-actions', 'dependabot', '[bot]']) | nope }}
    run:
      - action: code-review@v1
        args:
          approve_on_LGTM: {{ APPROVE_PR_ON_LGTM }} # optional arg, you can remove it

APPROVE_PR_ON_LGTM: false # you can add conditions for PR approvals. For example - allowing approvals only for specific users

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.

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