diff --git a/.github/workflows/codeowners-legal.yml b/.github/workflows/codeowners-legal.yml index ca9edb14b8b0..e783f5ad4321 100644 --- a/.github/workflows/codeowners-legal.yml +++ b/.github/workflows/codeowners-legal.yml @@ -20,6 +20,7 @@ on: permissions: contents: read pull-requests: write + repository-projects: read jobs: codeowners-legal: @@ -33,7 +34,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 @@ -58,19 +59,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 diff --git a/content/copilot/using-github-copilot/using-claude-sonnet-in-github-copilot.md b/content/copilot/using-github-copilot/using-claude-sonnet-in-github-copilot.md index 231ca6bf6dd9..0ee52bf715db 100644 --- a/content/copilot/using-github-copilot/using-claude-sonnet-in-github-copilot.md +++ b/content/copilot/using-github-copilot/using-claude-sonnet-in-github-copilot.md @@ -53,3 +53,7 @@ For details of how to change the model for {% data variables.product.prodname_co * [AUTOTITLE](/copilot/using-github-copilot/asking-github-copilot-questions-in-githubcom#changing-your-ai-model) * [AUTOTITLE](/copilot/using-github-copilot/asking-github-copilot-questions-in-your-ide#changing-your-ai-model) + +## Leaving feedback + +To leave feedback about Claude 3.5 Sonnet in {% data variables.product.prodname_copilot %}, or to ask a question, see the {% data variables.product.prodname_github_community %} discussion "[Claude 3.5 Sonnet is now available to all {% data variables.product.prodname_copilot_short %} users in Public Preview](https://github.com/orgs/community/discussions/143337)."