1
0
mirror of synced 2026-01-05 12:07:35 -05:00

Move docs engineering reviewer to Action workflow (#36882)

Co-authored-by: Peter Bengtsson <peterbe@github.com>
This commit is contained in:
Kevin Heis
2023-05-10 11:49:59 -07:00
committed by GitHub
parent 236b36ed8f
commit a02ae16a7c
5 changed files with 50 additions and 55 deletions

View File

@@ -0,0 +1,21 @@
name: Codeowners - Content Strategy
# **What it does**: Automatically add reviewers based on paths, but only for the docs-internal repo.
# **Why we have it**: So we can have reviewers automatically without getting open source notifications.
# **Who does it impact**: Docs team.
on:
pull_request:
paths:
- '/contributing/content-*.md'
jobs:
codeowners-content-strategy:
if: ${{ github.repository == 'github/docs-internal' }}
runs-on: ubuntu-latest
steps:
- name: Add Content Strategy as a reviewer
env:
GH_TOKEN: ${{ secrets.DOCS_BOT_FR }}
PR: ${{ github.event.pull_request.html_url }}
run: gh pr edit $PR --add-reviewer github/docs-content-strategy