Skip to content

Commit

Permalink
Merge pull request github#36357 from github/repo-sync
Browse files Browse the repository at this point in the history
Repo sync
  • Loading branch information
docs-bot authored Feb 18, 2025
2 parents b11f857 + 3c99990 commit 744d479
Show file tree
Hide file tree
Showing 22 changed files with 173 additions and 29 deletions.
6 changes: 4 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,15 @@
}
},

// Use 'onCreateCommand' to run commands after the container is created.
// Lifecycle commands
"onCreateCommand": "npm ci",
"postStartCommand": "nohup bash -c 'npm start &'",

// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "node",

"hostRequirements": {
"memory": "16gb"
"memory": "16gb",
"cpus": "4"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,18 @@ This utility returns webhook delivery logs for administrators to review and iden
ghe-webhook-logs
```

{% ifversion ghes > 3.10 %}
To show all hook deliveries filtered by a given event:

```shell
ghe-webhook-logs --event issues
```

To show all hook deliveries filtered by a given event and action:

```shell
ghe-webhook-logs --event issues.opened
{% endif %}
To show all failed hook deliveries in the past day:

```shell
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ During a trial of {% data variables.product.prodname_ghe_cloud %}, you can creat

Enterprise owners can invite existing organizations to join their enterprise account.

During a trial of {% data variables.product.prodname_ghe_cloud %}, you can invite organizations to join your trial enterprise. You can invite organizations that are not currently owned by another enterprise. If an organization you want to invite is already owned by another enterprise, you must be an owner of both enterprise accounts and initiate an organization transfer. See [Transferring an existing organization](#transferring-an-existing-organization).
During a trial of {% data variables.product.prodname_ghe_cloud %}, you can invite organizations to join your trial enterprise. You can invite organizations that are not currently owned by another enterprise. If an organization you want to invite is already owned by another enterprise, you cannot invite it to your trial enterprise.

After you invite the organization, and before an owner approves the invitation, you can cancel or resend the invitation at any time.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,15 @@ You can add custom properties to your enterprise to make those properties availa
1. Optionally, select **Allow repository actors to set this property**. When enabled, repository users and apps with the repository-level `custom properties` fine-grained permission will be able to set and update the property value for their repository. Additionally, any actor creating a repository can set the property on the repository.
1. Optionally, select **Require this property for all repositories** and add a default value. This means that you require that all repositories in your enterprise have a value for this property. Repositories that don’t have an explicit value for this property will inherit the default value.
1. Click **Save property**.

## Promoting organization properties to enterprise properties

You can promote a property from an organization to your enterprise account, to ensure that property name and values are available for use across all organizations in the enterprise.

{% data reusables.enterprise-accounts.access-enterprise %}
1. In the left sidebar, under "Policies", click **Custom properties**.
1. To see all properties managed by organizations, select **Filter** and choose the qualifier **Managed by** and **organization** as the value, or enter `managed-by:organization` in the filter bar.
1. Optionally, to see properties managed by a specific organization, select **Filter** and choose the qualifier **Organization** and an organization name as the value, or enter `org:<ORGANIZATION-NAME>` in the filter bar.
1. From the list of properties, select the property name that you want to promote. This takes you to the property details page.
1. To promote the selected property, click **Promote to enterprise**. The property name must be unique across all organizations in the enterprise otherwise the promotion will not be permitted.
1. Click **Promote**.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ After you set up your trial, you can explore {% data variables.product.prodname_
You can create up to **three new organizations** in the trial enterprise, or transfer any number of existing organizations.

* You cannot transfer organizations that have free or paid {% data variables.product.prodname_marketplace %} apps. Free apps are supported for new organizations in the trial.
* You cannot transfer organizations that are already owned by another enterprise.
* Billing for transferred organizations is paused during the trial and any coupons are removed. To reapply a coupon, contact {% data variables.contact.contact_support_page %}.
* Organizations created during the trial cannot be removed from the enterprise account until you purchase {% data variables.product.prodname_enterprise %}.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ You can choose to enable or disable inline suggestions for {% data variables.pro

You can enable {% data variables.copilot.next_edit_suggestions %} via the {% data variables.product.prodname_vscode_shortname %} setting `github.copilot.nextEditSuggestions.enabled`. For more detailed instructions, see [Enabling edit suggestions](https://code.visualstudio.com/docs/copilot/ai-powered-suggestions#_enabling-edit-suggestions) in the {% data variables.product.prodname_vscode_shortname %} documentation.

If you have a {% data variables.product.prodname_copilot_business_short %} {% ifversion ghec %}or {% data variables.product.prodname_copilot_enterprise_short %}{% endif %} subscription, then the organization {% ifversion ghec %}or enterprise{% endif %} from which you receive your subscription must enable the **Editor Preview Features** setting. See [AUTOTITLE](/enterprise-cloud@latest/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-policies-for-copilot-in-your-organization#enabling-copilot-features-in-your-organization){% ifversion ghec %} or [AUTOTITLE](/enterprise-cloud@latest/copilot/managing-copilot/managing-copilot-for-your-enterprise/managing-policies-and-features-for-copilot-in-your-enterprise#configuring-policies-for-github-copilot){% endif %}.
{% data reusables.copilot.editor-preview-settings %}

## Enabling or disabling {% data variables.product.prodname_copilot %} for specific languages

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Changing the AI model for Copilot Chat
shortTitle: 'Change the AI model'
shortTitle: 'Change the chat model'
intro: 'Learn how to change the default LLM for {% data variables.product.prodname_copilot_chat_short %} to a different model.'
versions:
feature: copilot
Expand All @@ -14,6 +14,8 @@ However, you are not limited to using this model. You can choose from a selectio

{% data variables.product.prodname_copilot_short %} allows you to change the model during a chat and have the alternative model used to generate responses to your prompts.

Changing the model that's used by {% data variables.product.prodname_copilot_chat_short %} does not affect the model that's used for {% data variables.product.prodname_copilot_short %} code completion. See [AUTOTITLE](/copilot/using-github-copilot/ai-models/changing-the-ai-model-for-copilot-code-completion).

{% webui %}

> [!NOTE]
Expand Down Expand Up @@ -74,7 +76,7 @@ These instructions are for {% data variables.product.prodname_vscode_shortname %

{% data reusables.copilot.copilot-chat-models-list-visual-studio %}

## Changing your AI model
## Changing the AI model for {% data variables.product.prodname_copilot_chat_short %}

These instructions are for {% data variables.product.prodname_vs %}. For {% data variables.product.prodname_vscode_shortname %} or for {% data variables.product.prodname_copilot_short %} on the {% data variables.product.github %} website, click the appropriate tab at the top of this page.

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
---
title: Changing the AI model for Copilot code completion
shortTitle: 'Change the completion model'
intro: 'Learn how to change the default LLM for {% data variables.product.prodname_copilot_chat_short %} to a different model.'
versions:
feature: copilot
topics:
- Copilot
---

## Overview

By default, {% data variables.product.prodname_copilot_short %} code completion uses the GPT 3.5 Turbo large language model (LLM). As an alternative, if you use {% data variables.product.prodname_vscode_shortname %}, you can choose to use a model based on GPT 4o-mini. This model has been trained on a wide range of high quality public {% data variables.product.github %} repositories, providing coverage of over 30 programming languages. Its knowledge base is more current than the default model and you may find that it generates completion suggestions more quickly.

> [!NOTE]
> * Multiple model support for {% data variables.product.prodname_copilot_short %} code completion is in {% data variables.release-phases.public_preview %} and is subject to change.
> * Currently the ability to switch AI model is available in the latest releases of {% data variables.product.prodname_vscode_shortname %} and JetBrains IDEs, with the latest version of the {% data variables.product.prodname_copilot %} extension.
## Effects of switching the AI model

Changing the model that's used for {% data variables.product.prodname_copilot_short %} code completion does not affect the model that's used by {% data variables.product.prodname_copilot_chat_short %}. See [AUTOTITLE](/copilot/using-github-copilot/ai-models/changing-the-ai-model-for-copilot-chat).

There are no changes to the data collection and usage policy if you change the AI model.

If you are on a {% data variables.product.prodname_copilot_free_short %} subscription, all completions count against your completions quota regardless of the model used. See [AUTOTITLE](/copilot/about-github-copilot/subscription-plans-for-github-copilot#comparing-copilot-subscriptions).

The setting to enable or disable suggestions that match public code are applied irrespective of which model you choose. See [AUTOTITLE](/enterprise-cloud@latest/copilot/using-github-copilot/finding-public-code-that-matches-github-copilot-suggestions).

## Enabling the model switcher

{% ifversion fpt %}

If you have a {% data variables.product.prodname_copilot_free_short %} or {% data variables.product.prodname_copilot_pro_short %} subscription, the model switcher for {% data variables.product.prodname_copilot_short %} code completion is automatically enabled.

{% endif %}

{% data reusables.copilot.editor-preview-settings %}

{% vscode %}

## Changing the AI model for code completion

The following instructions are for {% data variables.product.prodname_vscode_shortname %}. If you are using a JetBrains IDE, click the appropriate tab at the start of this article.

1. Open the command palette by pressing <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd> (Windows/Linux) / <kbd>Command</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd> (Mac).
1. Type `change completions model` and select the "{% data variables.product.prodname_copilot %}: Change Completions Model" command.
1. In the dropdown menu, select the model you want to use.

Alternatively, if Command Center is enabled, you can click the down arrow beside the **{% octicon "copilot" aria-hidden="true" %}** icon at the top of the {% data variables.product.prodname_vscode_shortname %} window, then click **Configure Code Completions** in the dropdown menu. Then choose **Change Completions Model** in the dropdown menu and select the model you want to use.

## Checking which model is being used

1. Open the Settings editor by pressing <kbd>Ctrl</kbd>+<kbd>,</kbd> (Linux/Windows) / <kbd>Command</kbd>+<kbd>,</kbd> (Mac).
1. Type `copilot completion` and look for the "{% data variables.product.github %} > {% data variables.product.prodname_copilot_short %}: Selected Completion Model" section.

The field in this section displays the currently selected model. If the field is empty, the default model is being used.

{% endvscode %}

{% jetbrains %}

## Changing the AI model for code completion

The following instructions are for JetBrains IDEs. If you are using {% data variables.product.prodname_vscode_shortname %}, click the appropriate tab at the start of this article.

1. Click the **{% octicon "copilot" aria-hidden="true" %}** icon in the status bar.
1. In the popup menu, click **Edit Model for Completion**.
1. In the settings dialog box for "Languages & Frameworks > {% data variables.product.prodname_copilot %}," click the dropdown menu for **Model for completions** and select the model you want to use.
1. Click **OK**.

{% endjetbrains %}
5 changes: 3 additions & 2 deletions content/copilot/using-github-copilot/ai-models/index.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
---
title: AI models for Copilot Chat
title: AI models for Copilot
shortTitle: AI models
intro: "Learn how to use alternative large language models for {% data variables.product.prodname_copilot_chat %}."
intro: "Learn how to use alternative large language models for {% data variables.product.prodname_copilot %}."
versions:
feature: copilot
topics:
- Copilot
children:
- /changing-the-ai-model-for-copilot-chat
- /changing-the-ai-model-for-copilot-code-completion
- /using-claude-sonnet-in-github-copilot
- /using-gemini-flash-in-github-copilot
---
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
title: Using Claude 3.5 Sonnet in GitHub Copilot
title: Using Claude 3.5 Sonnet in Copilot Chat
allowTitleToDifferFromFilename: true
shortTitle: 'Use {% data variables.copilot.copilot_claude_sonnet %}'
intro: 'Learn how to enable {% data variables.copilot.copilot_claude_sonnet %} for {% ifversion fpt %}yourself or{% endif %} your organization{% ifversion ghec %} or enterprise{% endif %}.'
intro: 'Learn how to enable {% data variables.copilot.copilot_claude_sonnet %} in {% data variables.product.prodname_copilot_chat %}, for {% ifversion fpt %}yourself or{% endif %} your organization{% ifversion ghec %} or enterprise{% endif %}.'
versions:
feature: copilot
topics:
Expand All @@ -13,7 +13,7 @@ redirect_from:

> [!NOTE] {% data variables.copilot.copilot_claude_sonnet %} is in {% data variables.release-phases.public_preview %} and subject to change. The [AUTOTITLE](/free-pro-team@latest/site-policy/github-terms/github-pre-release-license-terms) apply to your use of this product.
## About {% data variables.copilot.copilot_claude_sonnet %} in {% data variables.product.prodname_copilot %}
## About {% data variables.copilot.copilot_claude_sonnet %} in {% data variables.product.prodname_copilot_chat %}

{% data variables.copilot.copilot_claude_sonnet %} is a large language model that you can use as an alternative to the default model used by {% data variables.product.prodname_copilot_chat_short %}. {% data variables.copilot.copilot_claude_sonnet %} excels at coding tasks across the entire software development lifecycle, from initial design to bug fixes, maintenance to optimizations. Learn more about the [model's capabilities](https://www.anthropic.com/claude/sonnet) or read the [model card](https://assets.anthropic.com/m/61e7d27f8c8f5919/original/Claude-3-Model-Card.pdf).

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
title: Using Gemini 2.0 Flash in GitHub Copilot
title: Using Gemini 2.0 Flash in Copilot Chat
allowTitleToDifferFromFilename: true
shortTitle: 'Use {% data variables.copilot.copilot_gemini_flash %}'
intro: 'Learn how to enable {% data variables.copilot.copilot_gemini_flash %} for {% ifversion fpt %}yourself or{% endif %} your organization{% ifversion ghec %} or enterprise{% endif %}.'
intro: 'Learn how to enable {% data variables.copilot.copilot_gemini_flash %} in {% data variables.product.prodname_copilot_chat %}, for {% ifversion fpt %}yourself or{% endif %} your organization{% ifversion ghec %} or enterprise{% endif %}.'
versions:
feature: copilot
topics:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ References to matching code are currently only available in {% data variables.pr

## Prerequisites

References to matching code are only generated if {% data variables.product.prodname_copilot_short %} is configured to allow suggestions that match publicly available code. For more information, see [AUTOTITLE](/copilot/configuring-github-copilot/configuring-your-personal-github-copilot-settings-on-githubcom#enabling-or-disabling-suggestions-matching-public-code).
References to matching code are only generated if {% data variables.product.prodname_copilot_short %} is configured to allow suggestions that match publicly available code. This is configured in either your personal{% ifversion ghec %},{% else %} or {% endif %} organization{% ifversion ghec %} or enterprise{% endif %} settings. For more information, see [AUTOTITLE](/copilot/configuring-github-copilot/configuring-your-personal-github-copilot-settings-on-githubcom#enabling-or-disabling-suggestions-matching-public-code){% ifversion ghec %},{% else %} or {% endif %} [AUTOTITLE](/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-policies-for-copilot-in-your-organization#policies-for-suggestion-matching){% ifversion ghec %} or [AUTOTITLE](/copilot/managing-copilot/managing-copilot-for-your-enterprise/managing-policies-and-features-for-copilot-in-your-enterprise){% endif %}.

## About code referencing in {% data variables.product.prodname_copilot %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,10 @@ An arrow in the gutter indicates an available edit suggestion. Hover over the ar

For more details and examples, see [Code completions with {% data variables.product.prodname_copilot %} in {% data variables.product.prodname_vscode_shortname %}](https://aka.ms/gh-copilot-nes-docs) in the {% data variables.product.prodname_vscode %} documentation.

## Changing the AI model

You can change the large language model that's used to generate code completion suggestions. For more information, see [AUTOTITLE](/copilot/using-github-copilot/ai-models/changing-the-ai-model-for-copilot-code-completion).
{% endvscode %}
{% vimneovim %}
Expand Down
5 changes: 5 additions & 0 deletions data/features/enterprise-ruleset-workflow-rule.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Issue #17051
# enterprise workflow rule
versions:
ghec: '*'
ghes: '>= 3.18'
1 change: 1 addition & 0 deletions data/reusables/copilot/editor-preview-settings.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
If you have a {% data variables.product.prodname_copilot_business_short %} {% ifversion ghec %}or {% data variables.product.prodname_copilot_enterprise_short %}{% endif %} subscription, then the organization {% ifversion ghec %}or enterprise{% endif %} from which you receive your subscription must enable the **Editor preview features** setting. See [AUTOTITLE](/enterprise-cloud@latest/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-policies-for-copilot-in-your-organization#enabling-copilot-features-in-your-organization){% ifversion ghec %} or [AUTOTITLE](/enterprise-cloud@latest/copilot/managing-copilot/managing-copilot-for-your-enterprise/managing-policies-and-features-for-copilot-in-your-enterprise#configuring-policies-for-github-copilot){% endif %}.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Ruleset workflows can be configured at the organization level to require workflows to pass before merging pull requests. For more information, see [AUTOTITLE](/organizations/managing-organization-settings/creating-rulesets-for-repositories-in-your-organization).
Ruleset workflows can be configured at the organization {% ifversion enterprise-ruleset-workflow-rule %}or enterprise {% endif %}level to require workflows to pass before merging pull requests. For more information, see [AUTOTITLE](/organizations/managing-organization-settings/creating-rulesets-for-repositories-in-your-organization).
Loading

0 comments on commit 744d479

Please sign in to comment.