Skip to content

Commit

Permalink
Merge pull request github#35557 from github/repo-sync
Browse files Browse the repository at this point in the history
Repo sync
  • Loading branch information
docs-bot authored Dec 5, 2024
2 parents bab26f4 + 471701d commit ed1a3f7
Show file tree
Hide file tree
Showing 12 changed files with 157 additions and 236 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/codeowners-legal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
# Picking this number is a "best guess". If we make it too large,
# the checkout will take potentially unnecessariily long.
# the checkout will take potentially unnecessarily long.
# This reduces the chance that tj-actions/changed-files has to
# fetch deeper history. But if it needs to, it will.
fetch-depth: 10
Expand All @@ -58,19 +58,14 @@ jobs:
CHANGED_FILE_PATHS: ${{ steps.changed-files.outputs.all_changed_files }}
CONTENT_TYPE: 'rai'

- name: Add Legal team as a reviewer
- name: Check for reviewers-legal label, add if missing and request review
if: steps.checkContentType.outputs.containsContentType == 'true'
env:
# The GH CLI uses a slightly different env name for
# the token than the GITHUB_TOKEN used by actions
GH_TOKEN: ${{ secrets.DOCS_BOT_PAT_WRITEORG_PROJECT }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR: ${{ github.event.pull_request.html_url }}
run: |
has_reviewer=$(
gh pr view $PR --json reviews |
jq 'any(.reviews[]; select(length > 0))'
)
if ! $has_reviewer
then
labels=$(gh pr view ${{ github.event.pull_request.number }} --json labels --jq '.labels[].name')
if ! echo "$labels" | grep -q 'reviewers-legal'; then
gh pr edit $PR --add-reviewer github/legal-product
gh pr edit $PR --add-label reviewers-legal
fi
2 changes: 1 addition & 1 deletion src/github-apps/lib/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,5 @@
"2022-11-28"
]
},
"sha": "7fad85efbb1da5a0f026a9d53e4e10d862de30fd"
"sha": "aa8c601f351897d68d87241f85a53f4a287e3eb3"
}
47 changes: 29 additions & 18 deletions src/rest/data/fpt-2022-11-28/schema.json

Large diffs are not rendered by default.

47 changes: 29 additions & 18 deletions src/rest/data/ghec-2022-11-28/schema.json

Large diffs are not rendered by default.

46 changes: 15 additions & 31 deletions src/rest/data/ghes-3.10-2022-11-28/schema.json

Large diffs are not rendered by default.

Loading

0 comments on commit ed1a3f7

Please sign in to comment.