From 189d7dcd351cac53f16d91f5da9e87abd8179abc Mon Sep 17 00:00:00 2001 From: Matthew Chenette Date: Tue, 18 Mar 2025 03:00:09 -0500 Subject: [PATCH 1/6] Copilot Vision updates and additions (#54824) --- ...ging-policies-for-copilot-in-your-organization.md | 2 +- .../asking-github-copilot-questions-in-your-ide.md | 12 +++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/content/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-policies-for-copilot-in-your-organization.md b/content/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-policies-for-copilot-in-your-organization.md index af0fc7c86c1d..c786cb5725c3 100644 --- a/content/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-policies-for-copilot-in-your-organization.md +++ b/content/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-policies-for-copilot-in-your-organization.md @@ -29,7 +29,7 @@ Organization owners can set policies to govern how {% data variables.product.pro * {% data variables.product.prodname_copilot_short %} in {% data variables.product.prodname_dotcom_the_website %} * {% data variables.product.prodname_copilot_chat_short %} in the IDE * Editor preview features, such as: - * Vision (available to {% data variables.product.prodname_vscode_shortname %} Insiders) + * Vision (available in {% data variables.product.prodname_vscode_shortname %} and {% data variables.product.prodname_vs %}) * {% data variables.copilot.next_edit_suggestions_caps %} (available in {% data variables.product.prodname_vscode_shortname %}) * GPT-4o {% data variables.product.prodname_copilot_short %} code completion (available in {% data variables.product.prodname_vscode_shortname %} and JetBrains IDEs) * {% data variables.product.prodname_copilot_short %} Edits agent mode (available in {% data variables.product.prodname_vscode_shortname %}) diff --git a/content/copilot/using-github-copilot/copilot-chat/asking-github-copilot-questions-in-your-ide.md b/content/copilot/using-github-copilot/copilot-chat/asking-github-copilot-questions-in-your-ide.md index 1022ec8e33e1..67518b8e6193 100644 --- a/content/copilot/using-github-copilot/copilot-chat/asking-github-copilot-questions-in-your-ide.md +++ b/content/copilot/using-github-copilot/copilot-chat/asking-github-copilot-questions-in-your-ide.md @@ -140,7 +140,7 @@ For more information, see [{% data variables.product.prodname_copilot_edits_vsco ## Vision -> [!NOTE] Vision is currently available to [{% data variables.product.prodname_vscode_shortname %} Insiders](https://code.visualstudio.com/insiders) as a {% data variables.release-phases.public_preview %} and is subject to change. +> [!NOTE] Vision is currently in {% data variables.release-phases.public_preview %} and is subject to change. Vision requires that you use the GPT-4o model and upload one of the following file types: JPEG (`.jpg`, `.jpeg`), PNG (`.png`), GIF (`.gif`), or WEBP (`.webp`). @@ -249,6 +249,16 @@ In addition to submitting prompts through the chat window, you can submit prompt See [Ask questions in the inline chat view](https://learn.microsoft.com/visualstudio/ide/visual-studio-github-copilot-chat#ask-questions-in-the-inline-chat-view) in the {% data variables.product.prodname_vs %} documentation for more details. +## Vision + +> [!NOTE] Vision is currently in {% data variables.release-phases.public_preview %} and is subject to change. + +Vision requires that you use the GPT-4o model and upload one of the following file types: JPEG (`.jpg`, `.jpeg`), PNG (`.png`), GIF (`.gif`), or WEBP (`.webp`). + +You can attach images to your chat prompts to help {% data variables.product.prodname_copilot_short %} understand your question. For example, you can attach a screenshot of a code snippet to ask {% data variables.product.prodname_copilot_short %} to explain the code, or share mockups of new designs to ask {% data variables.product.prodname_copilot_short %} to generate code. + +You can drag and drop images into the chat window, or attach them through the {% data variables.product.prodname_vs %} UI. + ## Sharing feedback To share feedback about {% data variables.product.prodname_copilot_chat_short %}, you can use the **Send feedback** button in {% data variables.product.prodname_vs %}. For more information on providing feedback for {% data variables.product.prodname_vs %}, see the [{% data variables.product.prodname_vs %} Feedback](https://learn.microsoft.com/en-us/visualstudio/ide/how-to-report-a-problem-with-visual-studio?view=vs-2022) documentation. From 5df0612429df6a6f7ac64029c8ea6ac038a5296a Mon Sep 17 00:00:00 2001 From: Ben Ahmady <32935794+subatoi@users.noreply.github.com> Date: Tue, 18 Mar 2025 08:23:45 +0000 Subject: [PATCH 2/6] Revert "Add conditions to close certain spammy PRs in OS repo (#54752)" (#54857) --- .github/workflows/check-for-spammy-prs.yml | 45 ------------------- .github/workflows/close-on-invalid-label.yaml | 2 +- src/workflows/tests/actions-workflows.ts | 2 +- 3 files changed, 2 insertions(+), 47 deletions(-) delete mode 100644 .github/workflows/check-for-spammy-prs.yml diff --git a/.github/workflows/check-for-spammy-prs.yml b/.github/workflows/check-for-spammy-prs.yml deleted file mode 100644 index 3185140a1e90..000000000000 --- a/.github/workflows/check-for-spammy-prs.yml +++ /dev/null @@ -1,45 +0,0 @@ -name: Close certain spammy PRs - -# **What it does**: This action closes spammy pull requests in the open-source repository that have the title 'Revert "Repo sync" or contain an empty commit. -# **Why we have it**: We get lots of spam in the open-source repository. -# **Who does it impact**: Open-source contributors. - -on: - # Needed in lieu of `pull_request` so that PRs from a fork can be - # closed when marked as invalid. - pull_request_target: - types: [opened] - -permissions: - contents: read - issues: write - pull-requests: write - -jobs: - close_empty_pr: - if: github.repository == 'github/docs' - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - - name: Get PR details - id: pr_details - uses: octokit/request-action@v2 - with: - route: GET /repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }} - mediaType: '{"accept":"application/vnd.github.v3+json"}' - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Save output to a file and then to environment - run: | - echo "${{ steps.pr_details.outputs.data }}" > pr_details.json - echo "files_count=$(jq --arg pr_details.json)" >> $GITHUB_ENV - - - name: Add invalid label to PR if no files are changed - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - if: github.event.pull_request.title == 'Revert "Repo sync"' || env.files_count.changed_files == '0' - run: gh issue edit "${{ github.event.pull_request.number }}" --add-label "invalid" diff --git a/.github/workflows/close-on-invalid-label.yaml b/.github/workflows/close-on-invalid-label.yaml index ff098ceec941..59e98468a833 100644 --- a/.github/workflows/close-on-invalid-label.yaml +++ b/.github/workflows/close-on-invalid-label.yaml @@ -18,7 +18,7 @@ permissions: pull-requests: write jobs: - close-if-invalid: + close-on-adding-invalid-label: if: github.repository == 'github/docs' && github.event.label.name == 'invalid' runs-on: ubuntu-latest diff --git a/src/workflows/tests/actions-workflows.ts b/src/workflows/tests/actions-workflows.ts index 047fee561b31..c4ee30d4d94a 100644 --- a/src/workflows/tests/actions-workflows.ts +++ b/src/workflows/tests/actions-workflows.ts @@ -8,7 +8,7 @@ import { flatten } from 'flat' import { chain, get } from 'lodash-es' const githubOwnedActionsRegex = - /^(actions\/(cache|checkout|download-artifact|upload-artifact)@v\d+(\.\d+)*)|(octokit\/(request-action)@v\d+(\.\d+)*)$/ + /^(actions\/(cache|checkout|download-artifact|upload-artifact)@v\d+(\.\d+)*)$/ const actionHashRegexp = /^[A-Za-z0-9-/]+@[0-9a-f]{40}$/ const checkoutRegexp = /^[actions/checkout]+@(v\d+(\.\d+)*|[0-9a-f]{40})$/ const permissionsRegexp = /(read|write)/ From d7f04b6b9e361664992b69f49ce6023e9078f742 Mon Sep 17 00:00:00 2001 From: Larissa Fortuna <56982181+lkfortuna@users.noreply.github.com> Date: Tue, 18 Mar 2025 01:24:01 -0700 Subject: [PATCH 3/6] remove extra windows gpu reference (#54851) Co-authored-by: Ben Ahmady <32935794+subatoi@users.noreply.github.com> --- .../about-billing-for-github-actions.md | 1 - 1 file changed, 1 deletion(-) diff --git a/content/billing/managing-billing-for-your-products/managing-billing-for-github-actions/about-billing-for-github-actions.md b/content/billing/managing-billing-for-your-products/managing-billing-for-github-actions/about-billing-for-github-actions.md index efcf84ed037b..4ea8f6a9d27d 100644 --- a/content/billing/managing-billing-for-your-products/managing-billing-for-github-actions/about-billing-for-github-actions.md +++ b/content/billing/managing-billing-for-your-products/managing-billing-for-github-actions/about-billing-for-github-actions.md @@ -90,7 +90,6 @@ Jobs that run on Windows and macOS runners that {% data variables.product.prodna | Windows 16-core | $0.128 | | Windows 32-core | $0.256 | | Windows 64-core | $0.512 | -| Windows 4-core GPU | $0.14 | | macOS 12-core | $0.12 | #### Per-minute rates for arm64-powered {% data variables.actions.hosted_runners %} From 4b66d6c854138583a45959c62f109c8e106675d3 Mon Sep 17 00:00:00 2001 From: Joy <105074214+ArcticEagL@users.noreply.github.com> Date: Tue, 18 Mar 2025 01:31:05 -0700 Subject: [PATCH 4/6] Update available-rules-for-rulesets.md (#54761) Co-authored-by: Sophie <29382425+sophietheking@users.noreply.github.com> --- .../managing-rulesets/available-rules-for-rulesets.md | 4 ++-- data/features/available-rules-limit.yml | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 data/features/available-rules-limit.yml diff --git a/content/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/available-rules-for-rulesets.md b/content/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/available-rules-for-rulesets.md index bb7212a66d8d..796bc86dd9ed 100644 --- a/content/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/available-rules-for-rulesets.md +++ b/content/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/available-rules-for-rulesets.md @@ -255,7 +255,7 @@ When you add metadata restrictions to an existing branch or tag, the rules are e ## Restrict file paths -Prevent commits that include changes in specified file paths from being pushed to the repository. +Prevent commits that include changes in specified file paths from being pushed to the repository. {% ifversion available-rules-limit %}Limit is 200 entries and up to 200 characters in each entry.{% endif %} {% data reusables.repositories.rulesets-push-rules-path-example %} @@ -265,7 +265,7 @@ Prevent commits that include file paths that exceed a specified character limit ## Restrict file extensions -Prevent commits that include files with specified file extensions from being pushed to the repository. +Prevent commits that include files with specified file extensions from being pushed to the repository. {% ifversion available-rules-limit %}Limit is 200 entries and up to 200 characters in each entry.{% endif %} ## Restrict file size diff --git a/data/features/available-rules-limit.yml b/data/features/available-rules-limit.yml new file mode 100644 index 000000000000..2f710b80475f --- /dev/null +++ b/data/features/available-rules-limit.yml @@ -0,0 +1,6 @@ +# Reasonable limits are placed on the entries of file paths and file extensions + +versions: + fpt: '*' + ghec: '*' + ghes: '>3.17' From e0730257a0b985a87cd47e6a00ea441537778c67 Mon Sep 17 00:00:00 2001 From: Sophie <29382425+sophietheking@users.noreply.github.com> Date: Tue, 18 Mar 2025 09:49:40 +0100 Subject: [PATCH 5/6] Removes incorrect note about CF availability (#54860) --- .../setting-up-github-copilot-for-yourself.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/content/copilot/setting-up-github-copilot/setting-up-github-copilot-for-yourself.md b/content/copilot/setting-up-github-copilot/setting-up-github-copilot-for-yourself.md index 3cd6c2e2acd1..fa316df40bc2 100644 --- a/content/copilot/setting-up-github-copilot/setting-up-github-copilot-for-yourself.md +++ b/content/copilot/setting-up-github-copilot/setting-up-github-copilot-for-yourself.md @@ -25,8 +25,6 @@ If you want to use {% data variables.product.prodname_copilot_short %} in your I ## 3. Install the {% data variables.product.prodname_copilot_short %} extension for the command line ->[!NOTE] {% data reusables.gated-features.copilot-free-availability %} - If you want to use {% data variables.product.prodname_copilot_short %} in the command line, install the {% data variables.product.prodname_copilot_short %} extension for the {% data variables.product.prodname_cli %}. See [AUTOTITLE](/copilot/managing-copilot/configure-personal-settings/installing-github-copilot-in-the-cli). ## 4. Use {% data variables.product.prodname_copilot_short %} in {% data variables.product.prodname_windows_terminal %} From fa3bcb5ca929554c6c78ee38fccc4ec52144df2d Mon Sep 17 00:00:00 2001 From: Sophie <29382425+sophietheking@users.noreply.github.com> Date: Tue, 18 Mar 2025 10:07:33 +0100 Subject: [PATCH 6/6] [Improvement]: Make it clear to users that signing up to a paid Copilot plan doesn't give unlimited access to the preview models (#54551) --- .../subscription-plans-for-github-copilot.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/copilot/about-github-copilot/subscription-plans-for-github-copilot.md b/content/copilot/about-github-copilot/subscription-plans-for-github-copilot.md index 2f9cb12ab350..ba362ccd0e0f 100644 --- a/content/copilot/about-github-copilot/subscription-plans-for-github-copilot.md +++ b/content/copilot/about-github-copilot/subscription-plans-for-github-copilot.md @@ -11,7 +11,7 @@ shortTitle: Subscriptions {% data variables.product.company_short %} offers multiple subscription options for {% data variables.product.prodname_copilot %}: * **{% data variables.product.prodname_copilot_free %}** is available to individual {% data variables.product.company_short %} customers who don't have access to {% data variables.product.prodname_copilot_short %} through an organization or enterprise. This free tier provides limited access to select features of {% data variables.product.prodname_copilot_short %}, allowing you to experience AI-powered coding assistance without a subscription. -* **{% data variables.product.prodname_copilot_pro %}** is available to individual {% data variables.product.company_short %} customers who don't have access to {% data variables.product.prodname_copilot_short %} through an organization or enterprise. This paid tier offers full access to all {% data variables.product.prodname_copilot_short %} features, including advanced capabilities and unlimited usage, for a comprehensive AI coding experience. +* **{% data variables.product.prodname_copilot_pro %}** is available to individual {% data variables.product.company_short %} customers who don't have access to {% data variables.product.prodname_copilot_short %} through an organization or enterprise. This paid tier offers full access to all {% data variables.product.prodname_copilot_short %} features, including advanced capabilities, for a comprehensive AI coding experience. While standard {% data variables.product.prodname_copilot_short %} usage is unlimited, models within {% data variables.product.prodname_copilot_short %} that are currently in public preview are subject to changes, rate limits, and evolving performance. For details, see [AUTOTITLE](/github-models/prototyping-with-ai-models#rate-limits). * **{% data variables.product.prodname_copilot_for_business %}** is available for organizations with a {% data variables.product.prodname_free_team %} or {% data variables.product.prodname_team %} plan, or enterprises on {% data variables.product.prodname_ghe_cloud %}. {% data variables.product.prodname_copilot_business_short %} gives organizations and enterprises control over {% data variables.product.prodname_copilot_short %} policies, including which members can use {% data variables.product.prodname_copilot_short %}. * **{% data variables.product.prodname_copilot_enterprise %}** is available for enterprises on {% data variables.product.prodname_ghe_cloud %}. In addition to all of the {% data variables.product.prodname_copilot_business_short %} features, {% data variables.product.prodname_copilot_enterprise_short %} provides additional AI features on {% data variables.product.company_short %}. With this subscription plan you can choose to assign either {% data variables.product.prodname_copilot_enterprise_short %} or {% data variables.product.prodname_copilot_business_short %} to each individual organization in the enterprise.