Skip to content

Approve Trusted Team

Automatically approve low-risk PRs from trusted teams.

Approve Expert Team

Configuration Description

Conditions (all must be true):

  • All changed files are inside the docs directory
  • The PR author is on the tech-writers team.

Automation Actions:

  • Approve the PR
  • Post a comment that explains the approval.

Approve Expert Team

# -*- mode: yaml -*-

  version: 1.0

    # Triggered for PRs that only include changes to files inside the docs directory,
    # and that are authored by someone on the tech-writers team.
      - {{ files | match(regex=r/docs\//) | every }}
      - {{ pr.author_teams | match(term='tech-writers') }}
      - action: approve@v1
      - action: add-comment@v1
          comment: |
            Docs changes from the tech-writers team are automatically approved.

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.