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 -*-

manifest:
  version: 1.0

automations:
  approve_team_by_directory:
    # Triggered for PRs that only include changes to files inside the docs directory,
    # and that are authored by someone on the tech-writers team.
    if:
      - {{ files | match(regex=r/docs\//) | every }}
      - {{ pr.author_teams | match(term='tech-writers') }}
    run: 
      - action: approve@v1
      - action: add-comment@v1
        args:
          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.