Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions content/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ shortTitle: Contributing to projects

- Purpose: Renders children into groups on the homepage. See [Homepage](#homepage) for more info.
- Type: `Array`. Default is `false`.
- Require on the homepage `index.md`.
- Required on the homepage `index.md`.

### `featuredLinks`

Expand Down Expand Up @@ -319,7 +319,7 @@ A content file can have **two** types of versioning:
- Liquid statements in content (**optional**)
- Conditionally render content depending on the current version being viewed. See [Versioning documentation](https://docs.github.com/en/contributing/writing-for-github-docs/versioning-documentation#versioning-with-liquid-conditional-operators) for more info. Note Liquid conditionals can also appear in `data` and `include` files.

**Note**: As of early 2021, the `free-pro-team@latest` version is not included URLs. A helper function called `src/versions/lib/remove-fpt-from-path.ts` removes the version from URLs.
**Note**: As of early 2021, the `free-pro-team@latest` version is not included in URLs. A helper function called `src/versions/lib/remove-fpt-from-path.ts` removes the version from URLs.

## Filenames

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -352,9 +352,9 @@ on:
{% ifversion issue-status-webhooks %}

> [!NOTE]
> {% data reusables.issues.issue-statuses-preview %}
> {% data reusables.issues.issue-status-webhooks-preview %}

You can also run a workflow when the status of an issue changes. A workflow that uses the `status_changed` activity type runs whenever an issue's status changes, including when an issue is created, closed, or reopened. In the workflow, the following properties of the `github.event` context describe the change.
You can also run a workflow when the status of an issue changes. A workflow that uses the `status_changed` activity type runs whenever an issue's status changes. This includes status changes caused by creating, closing, reopening, or assigning an issue, or by changes to a linked pull request. In the workflow, the following properties of the `github.event` context describe the change.

* `github.event.status` contains the status the issue changed to.
* `github.event.changes.status.from` contains the previous status, or `null` if the issue didn't have one.
Expand All @@ -365,8 +365,6 @@ For more information, see [AUTOTITLE](/issues/tracking-your-work-with-issues/usi
> [!IMPORTANT]
> {% data reusables.issues.status-changed-workflows-without-types %}

{% data reusables.issues.status-changed-editor-validation %}

To match one status, use its ID. You can find the ID of a status in the `status` object of a `status_changed` payload. For example, if the ID of the In review status is `8`, the following workflow runs when an issue moves to In review.

```yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,14 @@ An {% data variables.copilot.copilot_automation %} runs when one of its triggers
* **On a schedule**: the {% data variables.copilot.copilot_automation %} runs at a recurring interval—hourly, daily, or weekly.
* **When an issue is created**: the {% data variables.copilot.copilot_automation %} runs each time an issue is opened in the repository.
* **When a pull request is opened**: the {% data variables.copilot.copilot_automation %} runs each time a pull request is opened in the repository.
* **When a pull request is synchronized**: the {% data variables.copilot.copilot_automation %} runs each time new commits are pushed to a pull request in the repository.
* **When a pull request is synchronized**: the {% data variables.copilot.copilot_automation %} runs each time new commits are pushed to a pull request in the repository.{% ifversion issue-statuses %}
* **When an issue's status changes**: the {% data variables.copilot.copilot_automation %} can run when an issue's status in the repository changes. Issue statuses are in {% data variables.release-phases.public_preview %}. For more information, see [AUTOTITLE](/issues/tracking-your-work-with-issues/learning-about-issues/about-issue-statuses).{% endif %}

You can optionally configure filters for event-based triggers, for example:

* For when **an issue is created**, add a search query filter.
* For when **a pull request is opened** and when **a pull request is synchronized**, add a search query filter and a filter for files changed in the pull request.
* For when **a pull request is opened** and when **a pull request is synchronized**, add a search query filter and a filter for files changed in the pull request.{% ifversion issue-statuses %}
* For when **an issue's status changes**, choose the statuses that the issue changes to, and add a search query filter.{% endif %}

To reduce the risk of prompt injection, {% data variables.copilot.copilot_automations %} ignore {% data variables.product.github %} events triggered by users who don't have write access to the repository by default. This helps prevent untrusted users from causing {% data variables.product.prodname_copilot_short %} to take action, for example, when an external contributor opens an issue. You can opt in to allowing these events if you need to. For more information, see [Security and safety](#security-and-safety).

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1297,7 +1297,9 @@ MCP servers from different sources are merged in priority order (highest first).
> [!NOTE]
> Workspace MCP servers (`.mcp.json` and `.github/mcp.json`) are loaded in both interactive and SDK server-mode sessions, provided the working directory is trusted. For more information about folder trust, see [AUTOTITLE](/copilot/how-tos/copilot-cli/use-copilot-cli/allowing-tools).

If a workspace configuration file contains an invalid server entry, the CLI skips only that entry and keeps loading its valid siblings, printing `Warning: workspace MCP config "<path>": <message>` for each skipped entry. A malformed or unreadable file (invalid JSON or an invalid top-level structure) is still skipped entirely.
Workspace `.mcp.json` and `.github/mcp.json` files support comments and trailing commas.

If a workspace configuration file contains an invalid server entry, the CLI skips only that entry and keeps loading its valid siblings, printing `Warning: workspace MCP config "<path>": <message>` for each skipped entry. The CLI ignores the current contents of a file it cannot read or that has invalid syntax or an invalid top-level structure.

### Enterprise MCP allowlist

Expand Down Expand Up @@ -1423,25 +1425,23 @@ Commands are an alternative to skills stored as individual `.md` files in `.clau

{% data reusables.copilot.copilot-cli.cli-extensions-experimental %}

In an interactive session, `/extensions mode` controls whether extensions run and whether {% data variables.product.prodname_copilot_short %} can manage them.
Extensions have an **Enabled** or **Disabled** control. Enabling extensions loads them and lets {% data variables.product.prodname_copilot_short %} manage them, subject to activation, trust, and permission requirements.

Each extension requires approval before it launches because extensions run arbitrary code. The permission prompt includes a disclosure and approval scope choices, such as session or location. Denying the launch prevents the extension from running, and the CLI does not use another copy of the extension as a fallback.

| Mode | Extensions run | Agent can manage extensions |
| --- | --- | --- |
| **Load & Augment** (default) | Yes | Yes |
| **Load Only** | Yes | No |
| **Enabled** | Yes | Yes |
| **Disabled** | No | No |

In **Load & Augment** mode, the agent has tools to list discovered extensions, inspect their status and logs, scaffold a starter extension, and reload extensions after code changes. This lets the agent create and load extension code as part of your request.

Choose **Load Only** to run an existing set of trusted extensions without giving the agent extension-management tools. The agent can still call tools supplied by running extensions.
When extensions are enabled, the agent has tools to list discovered extensions, inspect their status and logs, scaffold a starter extension, and reload extensions after code changes. This lets the agent create and load extension code as part of your request.

Mode changes take effect immediately in the current session:
Changes take effect immediately in the current session:

* Switching to **Disabled** stops running extension processes and removes their tools.
* Switching from **Disabled** to either loading mode starts extensions.
* Switching between **Load Only** and **Load & Augment** changes access to extension-management tools without stopping the extensions.
* Switching to **Enabled** starts extensions, subject to activation, trust, and permission requirements.

Disabling extensions persists for future sessions until you choose a loading mode. Other sessions that are already running are not affected.
Disabling extensions persists for future sessions until you enable them again. Other sessions that are already running are not affected. For the setting and migration behavior, see [AUTOTITLE](/copilot/reference/copilot-cli-reference/cli-config-dir-reference#extensions).

To inspect extensions and their status, use `/extensions manage`. For discovery locations and implementation examples, see [AUTOTITLE](/copilot/tutorials/create-an-extension).

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,8 @@ For more information, see [AUTOTITLE](/copilot/how-tos/copilot-cli/customize-cop

Store user-level extension files here. Extensions in this directory are available across sessions.

The `extensions.enabled` setting controls whether extensions are enabled or disabled. Enabling extensions loads them and lets the agent manage them, subject to activation, trust, and permission requirements. Previous **Load Only** settings migrate to disabled, and the CLI displays a one-time notice.

You can create files in this directory manually, or scaffold an extension and then edit the generated file.

## Automatically managed files
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ category:

When your project initializes, two workflows are enabled by default: When issues or pull requests in your project are closed, their status is set to **Done**, and when pull requests in your project are merged, their status is set to **Done**.

{% ifversion issue-statuses %}

If the project's **Status** field syncs with issue statuses, workflows that set **Status** use the option that matches each issue's status, and moving an issue's item can change the issue's status. For more information, see [AUTOTITLE](/issues/tracking-your-work-with-issues/learning-about-issues/about-issue-statuses#syncing-statuses-with-projects).

{% endif %}

You can also configure workflows to automatically archive items when they meet set criteria and to automatically add items from a repository when they match a filter. For more information, see [AUTOTITLE](/issues/planning-and-tracking-with-projects/automating-your-project/archiving-items-automatically) and [AUTOTITLE](/issues/planning-and-tracking-with-projects/automating-your-project/adding-items-automatically).

## Enabling a built-in workflow
Expand All @@ -36,3 +42,19 @@ You can enable or disable the built-in workflows for your project.

1. Depending on the workflow you have selected, make changes to the fields to configure the workflow's behavior.
1. To save your changes and enable the workflow, click **Save and turn on workflow**.

{% ifversion issue-statuses %}

## Turning off the issue status sync

By default, a project's **Status** field syncs with issue statuses. You can turn off the sync for one project. Built-in workflows still run with their configured options, so **Item closed** can still set **Status** when an issue closes, and **Auto-close issue** can still close an issue when its item's **Status** changes.

People with write access to the project can change the setting. Copies of the project, and projects created from it as a template, keep the setting.

{% data reusables.projects.access-workflows %}
1. In the list of workflows, click **Sync with issue status**.
1. Click the toggle to turn the sync off or on.

When you turn the sync back on, items don't change right away. For each issue and its project item, syncing resumes the next time the issue's status changes, someone moves the item, or a built-in workflow sets its **Status**. Depending on the change, the issue's status can update the item, or the item's **Status** can update the issue's status.

{% endif %}
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ category:
> [!NOTE]
> You can also close issues automatically with keywords in pull requests and commit messages. For more information, see [AUTOTITLE](/issues/tracking-your-work-with-issues/using-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword).

{% ifversion issue-statuses %}

Closing an issue also sets its status to Done, Not planned, or Duplicate, depending on the reason you choose. You can also close an issue by choosing one of these statuses. For more information, see [AUTOTITLE](/issues/tracking-your-work-with-issues/learning-about-issues/about-issue-statuses).

{% endif %}

{% data reusables.repositories.navigate-to-repo %}
{% data reusables.repositories.sidebar-issues %}
1. In the list of issues, click the issue you'd like to close.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ You can also use the {% data variables.product.company_short %}-provided saved r

![Screenshot of an issue timeline, with a comment by octocat, "Duplicate of #97", and a timeline event "octocat marked this as a duplicate of #97."](/assets/images/help/issues/duplicate-issue-syntax.png)

{% ifversion issue-statuses %}

You can also close an issue as a duplicate by choosing the Duplicate status and the issue it duplicates. For more information, see [AUTOTITLE](/issues/tracking-your-work-with-issues/learning-about-issues/about-issue-statuses).

{% endif %}

## Unmarking duplicates

You can unmark duplicate issues and pull requests by clicking **Undo** in the timeline. This will add a new timeline event, indicating that the issue or pull request was unmarked.
Expand Down
Loading
Loading