Approve Trusted Team
Automatically approve low-risk PRs from trusted teams.
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:
- Automatically approve changes to docs, tests, and other safe assets.
- Approve Python or JavaScript formatting changes.
- Approve Tiny Changes
- Approve JSDoc or Javadoc changes.
- Approve and Merge Dependabot PRs
More Automations can be found on the Automation Library and Integrations pages.