1
0
mirror of synced 2026-01-04 09:06:46 -05:00

Update the docs-content review workflow to handle github/github PRs (#48135)

This commit is contained in:
Sarah Edwards
2024-01-02 08:36:47 -08:00
committed by GitHub
parent 0a29c7c11a
commit 3306c123eb
4 changed files with 123 additions and 57 deletions

View File

@@ -1,7 +1,7 @@
name: Add docs-reviewers request to the docs-content review board
# **What it does**: Adds PRs in github/github and github/audit-log-allowlists that requested a review from docs-reviewers to the docs-content review board
# **Why we have it**: To catch docs-reviewers requests in github/github and github/audit-log-allowlists
# **Why we have it**: To catch docs-reviewers requests in github/audit-log-allowlists
# **Who does it impact**: docs-content maintainers
on:
@@ -31,17 +31,6 @@ jobs:
- name: Install dependencies
run: npm install @octokit/graphql
- name: Run script for github
run: |
node src/workflows/fr-add-docs-reviewers-requests.js
env:
TOKEN: ${{ secrets.DOCS_BOT_PAT_WRITEORG_PROJECT }}
PROJECT_NUMBER: 2936
ORGANIZATION: 'github'
REPO: 'github'
REVIEWER: 'docs-reviewers'
FEATURE: 'OpenAPI schema update'
- name: Run script for audit-log-allowlists
run: |
node src/workflows/fr-add-docs-reviewers-requests.js

View File

@@ -1,8 +1,8 @@
name: Ready for docs-content review
# **What it does**: Adds pull requests in the docs-internal repository to the docs-content review board when the "ready-for-doc-review" label is added or when a review by docs-content is requested
# **What it does**: Adds pull requests in the docs-internal repository to the docs-content review board when the "ready-for-doc-review" label is added or when a review by docs-content or docs-reviewers is requested. This workflow is also called as a reusable workflow from other repos including docs-content, docs-strategy, docs-early-access, and github.
# **Why we have it**: So that other GitHub teams can easily request reviews from the docs-content team, and so that writers can see when a PR is ready for review
# **Who does it impact**: Writers working in the docs-internal repository
# **Who does it impact**: Writers who need to review docs-related PRs
on:
pull_request:
@@ -16,8 +16,8 @@ jobs:
request_doc_review:
name: Request a review from the docs-content team
if: >-
github.repository_owner == 'github' && github.repository != 'github/docs' &&
(github.event.label.name == 'ready-for-doc-review' || github.event.requested_team.name == 'docs-content')
github.repository_owner == 'github' && github.repository != 'github/docs' &&
(github.event.label.name == 'ready-for-doc-review' || github.event.requested_team.name == 'docs-content' || github.event.requested_team.name == 'docs-reviewers')
runs-on: ubuntu-latest
steps:
- name: Check out repo content