diff --git a/content/README.md b/content/README.md index 4bd3470af79d..c775ef8ed9fe 100644 --- a/content/README.md +++ b/content/README.md @@ -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` @@ -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 diff --git a/content/actions/reference/workflows-and-actions/events-that-trigger-workflows.md b/content/actions/reference/workflows-and-actions/events-that-trigger-workflows.md index 36c7ec49393c..08dd514c3518 100644 --- a/content/actions/reference/workflows-and-actions/events-that-trigger-workflows.md +++ b/content/actions/reference/workflows-and-actions/events-that-trigger-workflows.md @@ -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. @@ -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 diff --git a/content/copilot/concepts/agent-capabilities/agent-powered-workflows-and-operations/about-automations.md b/content/copilot/concepts/agent-capabilities/agent-powered-workflows-and-operations/about-automations.md index dcbb30a20a42..c457082c09f9 100644 --- a/content/copilot/concepts/agent-capabilities/agent-powered-workflows-and-operations/about-automations.md +++ b/content/copilot/concepts/agent-capabilities/agent-powered-workflows-and-operations/about-automations.md @@ -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). diff --git a/content/copilot/reference/copilot-cli-reference/cli-command-reference.md b/content/copilot/reference/copilot-cli-reference/cli-command-reference.md index e0986504c2c8..3b641a5cf4a7 100644 --- a/content/copilot/reference/copilot-cli-reference/cli-command-reference.md +++ b/content/copilot/reference/copilot-cli-reference/cli-command-reference.md @@ -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 "": ` 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 "": ` 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 @@ -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). diff --git a/content/copilot/reference/copilot-cli-reference/cli-config-dir-reference.md b/content/copilot/reference/copilot-cli-reference/cli-config-dir-reference.md index b65fd700733a..8d90c4a2edd4 100644 --- a/content/copilot/reference/copilot-cli-reference/cli-config-dir-reference.md +++ b/content/copilot/reference/copilot-cli-reference/cli-config-dir-reference.md @@ -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 diff --git a/content/issues/planning-and-tracking-with-projects/automating-your-project/using-the-built-in-automations.md b/content/issues/planning-and-tracking-with-projects/automating-your-project/using-the-built-in-automations.md index 6916d4efdb00..4b959e461d08 100644 --- a/content/issues/planning-and-tracking-with-projects/automating-your-project/using-the-built-in-automations.md +++ b/content/issues/planning-and-tracking-with-projects/automating-your-project/using-the-built-in-automations.md @@ -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 @@ -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 %} diff --git a/content/issues/tracking-your-work-with-issues/administering-issues/closing-an-issue.md b/content/issues/tracking-your-work-with-issues/administering-issues/closing-an-issue.md index acbf3b4470bc..0a5ed54a43b8 100644 --- a/content/issues/tracking-your-work-with-issues/administering-issues/closing-an-issue.md +++ b/content/issues/tracking-your-work-with-issues/administering-issues/closing-an-issue.md @@ -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. diff --git a/content/issues/tracking-your-work-with-issues/administering-issues/marking-issues-or-pull-requests-as-a-duplicate.md b/content/issues/tracking-your-work-with-issues/administering-issues/marking-issues-or-pull-requests-as-a-duplicate.md index 111d1b286525..af2290c529fc 100644 --- a/content/issues/tracking-your-work-with-issues/administering-issues/marking-issues-or-pull-requests-as-a-duplicate.md +++ b/content/issues/tracking-your-work-with-issues/administering-issues/marking-issues-or-pull-requests-as-a-duplicate.md @@ -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. diff --git a/content/issues/tracking-your-work-with-issues/learning-about-issues/about-issue-statuses.md b/content/issues/tracking-your-work-with-issues/learning-about-issues/about-issue-statuses.md new file mode 100644 index 000000000000..f2228c0662b1 --- /dev/null +++ b/content/issues/tracking-your-work-with-issues/learning-about-issues/about-issue-statuses.md @@ -0,0 +1,101 @@ +--- +title: About issue statuses +shortTitle: Issue statuses +intro: 'Issue statuses show where each issue is in your work, from Backlog to Done, and {% data variables.product.github %} updates them as people assign issues and link pull requests.' +versions: + feature: issue-statuses +contentType: concepts +category: + - Triage and organize issues +--- + +> [!NOTE] +> {% data reusables.issues.issue-statuses-preview %} + +## Statuses and categories + +Issues can have a status, such as Todo or In progress. Each status belongs to a category. + +{% rowheaders %} + +| Status | Category | Issue state | +| --- | --- | --- | +| Backlog | `backlog` | Open | +| Todo | `planned` | Open | +| In progress | `started` | Open | +| In review | `started` | Open | +| Done | `completed` | Closed as completed | +| Not planned | `not_planned` | Closed as not planned | +| Duplicate | `duplicate` | Closed as a duplicate | + +{% endrowheaders %} + +Choosing a status for closed issues closes an open issue. Choosing a status for open issues reopens a closed issue. To choose Duplicate, you also choose the issue it duplicates. + +Closing an issue sets the status that matches its closing reason. New and reopened issues get the Backlog status unless you choose another one. Issues created before their repository used issue statuses don't have a status until someone or {% data variables.product.github %} sets one. + +In search, use `not-planned` for the `not_planned` category. + +## Setting a status + +You can set an issue's status in any of these ways: + +* **When creating an issue**: Next to the title field, select the status dropdown, then choose a status. +* **On an existing issue**: Below the issue's title, select the status dropdown, then choose a status. +* **In a project**: Move the issue's item to a different **Status** option. For example, in a board view grouped by **Status**, drag the item to the column for the status you want. The option's name must match an issue status, and status sync must be enabled for the project. For more information, see [Syncing statuses with projects](#syncing-statuses-with-projects), later in this article. + +You can change the status of an issue, but you can't remove it. + +## Who can set a status + +People with triage access or higher to a repository can choose the status of its issues. Additional permission rules apply to custom roles, apps, workflows, and some repositories: + +* **Custom repository roles**: In repositories owned by an organization, people with a custom role that inherits the Triage, Write, or Maintain role can choose statuses. People with a custom role that inherits the Read role can't choose statuses, even if the role can set issue types. +* **Apps and workflows**: {% data variables.product.prodname_github_apps %} with write access for the "Issues" repository permission can also choose statuses, including workflows that use `GITHUB_TOKEN` with the `issues: write` permission. +* **Archived and locked repositories**: Nobody can choose a status for issues in an archived repository, or in a repository that's locked, for example during a migration. + +Choosing a status that closes or reopens an issue also requires permission to close or reopen the issue. Changing why a closed issue is closed, for example from Done to Not planned, requires permission to both close and reopen it. + +People who can't choose a status directly can still close or reopen an issue if they have permission. This changes the issue's state and sets the default status for that state. For example, an issue's author can close or reopen it with read access to the repository. + +## Automatic status changes + +{% data variables.product.github %} also changes the status of open issues automatically. These changes only move an issue forward from an earlier status, and never close or reopen it. The one exception is an issue in In review, which moves back to In progress when its last ready pull request leaves review. + +{% rowheaders %} + +| Trigger | From | To | +| --- | --- | --- | +| Linking an open draft pull request, or reopening a linked draft pull request | No status, Backlog, or Todo | In progress | +| Linking an open pull request that's ready for review, reopening a linked one, or marking a linked draft pull request ready for review | No status, Backlog, Todo, or In progress | In review | +| The last linked pull request that's ready for review is converted to a draft, closed without being merged, or unlinked | In review | In progress | +| Assigning a person | No status or Backlog | Todo | +| Assigning an agent, such as {% data variables.product.prodname_copilot_short %} | No status, Backlog, or Todo | In progress | +| Assigning a person or an agent while a linked pull request is ready for review | No status, Backlog, Todo, or In progress | In review | + +{% endrowheaders %} + +A pull request is linked when it uses a closing keyword for the issue or is linked from the **Development** section. For more information, see [AUTOTITLE](/issues/tracking-your-work-with-issues/using-issues/linking-a-pull-request-to-an-issue). + +Only pull requests in the same repository as the issue, or in a public repository, change the status of an issue. If the person or app whose action would change the status can't choose a status for the issue, the status doesn't change. + +## Syncing statuses with projects + +{% data variables.product.github %} keeps an issue's status and the **Status** field of its project items in sync when the project is owned by the same organization or personal account as the issue's repository. Projects owned by other accounts aren't affected. + +* **Issue to project**: When an issue's status changes, its item moves to the project's **Status** option with the same name. Names match regardless of case, extra spaces, and emoji, so a new project's **In Progress** option matches In progress. If no option matches, the item's **Status** doesn't change. +* **Project to issue**: Moving an issue's item to a **Status** option with the same name as a status sets the issue's status, which can close or reopen the issue. Adding an issue to a project with a **Status**, for example in a board column, counts as a move. Options that don't match a status don't change the issue's status. A project's **Duplicate** option also doesn't change the status because closing an issue as a duplicate requires identifying the issue it duplicates. If you can't set the issue's status, the item moves back to the option that matches it. +* **Built-in workflows**: Workflows that set **Status** (**Item added to project**, **Item reopened**, **Item closed**, and **Pull request linked to issue**) set the option that matches the issue's status instead of their configured option. For example, **Item closed** sets a **Not planned** option for an issue closed as not planned. If no option matches, and for pull requests, the workflow sets its configured option. + +If a project's **Item added to project** workflow is turned off, issues added to the project without a **Status** don't get one. Their item gets a **Status** the next time the issue's status changes or someone moves the item. + +To keep a project's **Status** field separate from issue statuses, you can turn off the sync for that project. For more information, see [AUTOTITLE](/issues/planning-and-tracking-with-projects/automating-your-project/using-the-built-in-automations#turning-off-the-issue-status-sync). + +## Using statuses with other tools + +* **Search**: To find issues by status, see [AUTOTITLE](/search-github/searching-on-github/searching-issues-and-pull-requests#search-by-issue-status). +* **REST API**: Use the `status` parameter to set a status when you create or update an issue. For more information, see [AUTOTITLE](/rest/issues/issues). To list the statuses that issues in a repository can have, see [AUTOTITLE](/rest/repos/planning-statuses). +* **GraphQL API**: Use the `status` field of an issue and the `setIssueStatus` mutation. For more information, see [AUTOTITLE](/graphql/reference/issues) in the GraphQL API documentation. +* **{% data variables.product.github %} MCP server**: Agents and developer tools can read issue statuses and search by status using the built-in {% data variables.product.github %} MCP server. For more information, see [AUTOTITLE](/copilot/concepts/customizations/mcp#about-the-github-mcp-server). +* **Webhooks and workflows**: To respond when the status of an issue changes, see [AUTOTITLE](/issues/tracking-your-work-with-issues/using-issues/issue-status-webhooks-and-workflows). +* **{% data variables.copilot.copilot_automations_cap %}**: To run {% data variables.copilot.copilot_cloud_agent %} when the status of an issue changes, see [AUTOTITLE](/copilot/concepts/agent-capabilities/agent-powered-workflows-and-operations/about-automations#triggers). diff --git a/content/issues/tracking-your-work-with-issues/learning-about-issues/index.md b/content/issues/tracking-your-work-with-issues/learning-about-issues/index.md index 2d54d71b8ab1..dce240d55497 100644 --- a/content/issues/tracking-your-work-with-issues/learning-about-issues/index.md +++ b/content/issues/tracking-your-work-with-issues/learning-about-issues/index.md @@ -7,6 +7,7 @@ versions: ghec: '*' children: - /about-issues + - /about-issue-statuses - /quickstart - /planning-and-tracking-work-for-your-team-or-project --- diff --git a/content/issues/tracking-your-work-with-issues/using-issues/assigning-issues-and-pull-requests-to-other-github-users.md b/content/issues/tracking-your-work-with-issues/using-issues/assigning-issues-and-pull-requests-to-other-github-users.md index 3d4673f0a92a..6ebe42835b69 100644 --- a/content/issues/tracking-your-work-with-issues/using-issues/assigning-issues-and-pull-requests-to-other-github-users.md +++ b/content/issues/tracking-your-work-with-issues/using-issues/assigning-issues-and-pull-requests-to-other-github-users.md @@ -29,6 +29,12 @@ You may also be able to assign {% data variables.product.prodname_copilot_short Both issues and pull requests support up to 10 assignees. +{% ifversion issue-statuses %} + +Assigning someone to an issue can also change its status, for example from Backlog to Todo. For more information, see [AUTOTITLE](/issues/tracking-your-work-with-issues/learning-about-issues/about-issue-statuses#automatic-status-changes). + +{% endif %} + ## Assigning an individual issue or pull request {% data reusables.repositories.navigate-to-repo %} diff --git a/content/issues/tracking-your-work-with-issues/using-issues/filtering-and-searching-issues-and-pull-requests.md b/content/issues/tracking-your-work-with-issues/using-issues/filtering-and-searching-issues-and-pull-requests.md index b1ec9e82cf63..106722c3a151 100644 --- a/content/issues/tracking-your-work-with-issues/using-issues/filtering-and-searching-issues-and-pull-requests.md +++ b/content/issues/tracking-your-work-with-issues/using-issues/filtering-and-searching-issues-and-pull-requests.md @@ -154,6 +154,19 @@ For more information about managing issue fields, see [AUTOTITLE](/issues/tracki {% endif %} +{% ifversion issue-statuses %} + +## Filtering by issue status + +> [!NOTE] +> {% data reusables.issues.issue-statuses-preview %} + +To show active issues, above the list of issues, next to **Open** and **Closed**, select **Active**. Active issues have the Todo, In progress, or In review status. Issues with the Backlog status, open issues without a status, and closed issues aren't active. + +The Active filter adds `(category:planned OR category:started)` to your filter. You can also type `status:` or `category:` in your filter to choose a status or category. For more information, see [AUTOTITLE](/issues/tracking-your-work-with-issues/learning-about-issues/about-issue-statuses). + +{% endif %} + ## Filtering pull requests by review status You can use filters to list pull requests by review status and to find pull requests that you've reviewed or other people have asked you to review. @@ -233,7 +246,8 @@ For issues, you can also use search to: * Filter for issues that are linked to a pull request by a closing reference: `linked:pr` * Filter issues by the reason they were closed: `is:closed reason:completed` or `is:closed reason:"not planned"` * Filter for issues with a particular type: `is:open type:"Bug"`{% ifversion issue-fields %} -* Filter for issues by field value: `is:open field.priority:high`{% endif %} +* Filter for issues by field value: `is:open field.priority:high`{% endif %}{% ifversion issue-status-search %} +* Filter for issues by status ({% data variables.release-phases.public_preview %}): `status:"In progress"` or `category:started`{% endif %} * Filter for issues that have metadata: `has:label` * Filter for issues that are missing metadata: `no:project` * Filter for issues from repositories [**owned**](/search-github/searching-on-github/searching-issues-and-pull-requests#search-within-a-users-or-organizations-repositories) by a certain user or organization, limited to up to 16 `user` and `org` qualifiers with no limit on `repo` qualifiers: `state:open is:issue org:github OR user:octocat` diff --git a/content/issues/tracking-your-work-with-issues/using-issues/issue-status-webhooks-and-workflows.md b/content/issues/tracking-your-work-with-issues/using-issues/issue-status-webhooks-and-workflows.md index a65c5f559909..80916bbed0f6 100644 --- a/content/issues/tracking-your-work-with-issues/using-issues/issue-status-webhooks-and-workflows.md +++ b/content/issues/tracking-your-work-with-issues/using-issues/issue-status-webhooks-and-workflows.md @@ -10,14 +10,12 @@ category: --- > [!NOTE] -> {% data reusables.issues.issue-statuses-preview %} +> {% data reusables.issues.issue-status-webhooks-preview %} ## About status change events When the status of an issue changes, {% data variables.product.github %} sends an `issues` webhook event with the `status_changed` action. Payloads for every `issues` action also include the current status of the issue in `issue.status`. You can use these events to keep other tools in sync with your issues, or to run a {% data variables.product.prodname_actions %} workflow when an issue reaches a particular status. -Statuses are only included for issues in repositories that use issue statuses. For other issues, payloads don't include `issue.status`, and {% data variables.product.github %} doesn't send `status_changed`. - For the full payload schema, see [AUTOTITLE](/webhooks/webhook-events-and-payloads?actionType=status_changed#issues). ## Status objects @@ -32,7 +30,7 @@ Webhook payloads describe each status with an object that has three properties. More than one status can belong to the same category. For example, In progress and In review both belong to the `started` category. To match one status in your code or workflow, use its `id`. To match every status in a category, use its `category`. Don't match on `name`. -`issue.status` is `null` when the issue doesn't have a status. For example, an issue that was created before statuses were available in its repository has no status until someone sets one, or until the issue is closed or reopened. +`issue.status` is `null` when the issue doesn't have a status. For example, an issue that was created before statuses were available in its repository has no status until someone sets one, until the issue is closed or reopened, or until {% data variables.product.github %} changes its status automatically, for example when someone is assigned. ## The `status_changed` payload @@ -53,13 +51,16 @@ To find out what a particular change did, use `status` and `changes`. A delayed, ## When `status_changed` is sent -{% data variables.product.github %} sends `status_changed` every time the status of an issue changes, including changes that {% data variables.product.github %} makes when an issue is created, closed, or reopened. +{% data variables.product.github %} sends `status_changed` every time the status of an issue changes. This includes status changes that {% data variables.product.github %} makes automatically, for example when an issue is created, closed, reopened, or assigned, or when a linked pull request changes. For more information about automatic changes and who can choose a status, see [AUTOTITLE](/issues/tracking-your-work-with-issues/learning-about-issues/about-issue-statuses). * **Setting a status**: Someone chooses a different status for an issue. * **Creating an issue**: A new issue gets the Backlog status, unless the person creating it chooses another status. `changes.status.from` is `null`. {% data variables.product.github %} sends `opened` as well as `status_changed`. * **Setting a first status**: An existing issue without a status gets one. `changes.status.from` is `null`. * **Closing or reopening an issue**: Closing an issue as completed sets the Done status, closing it as not planned sets Not planned, and closing it as a duplicate sets Duplicate. Reopening an issue without choosing a status sets Backlog. {% data variables.product.github %} sends `closed` or `reopened` as well as `status_changed`. -* **Linking a pull request**: Linking an open pull request to an open issue that has no status, or that has the Backlog or Todo status, moves the issue to In progress. `sender` is the person or app that linked the pull request. If they can't choose a status for the issue, the status doesn't change. +* **Assigning an issue**: If assigning a person or an agent changes the issue's status to Todo, In progress, or In review, {% data variables.product.github %} sends `assigned` as well as `status_changed`. +* **Changing a linked pull request**: Linking, unlinking, reopening, or closing a pull request, marking it ready for review, or converting it to a draft can move the issue to In progress or In review. + +`sender` is the person or app whose action changed the status, for example by closing the issue, linking a pull request, or assigning someone. People who can't choose a status can still change it by closing or reopening an issue. {% data variables.product.github %} doesn't send `status_changed` in these cases: @@ -84,19 +85,7 @@ If your integration handles `status_changed` as well as `closed` or `reopened`, * **Repeated deliveries**: You can receive the same delivery more than once, for example when it's redelivered. A redelivery has the same `X-GitHub-Delivery` header as the original delivery, so you can use the header to skip deliveries that you've already processed. * **Order**: Deliveries can arrive out of order, and delayed, retried, or redelivered payloads can be stale, including `issue.status`. Don't use the order in which deliveries arrive to determine the latest status of an issue. -To get the latest status of an issue, fetch the issue with the REST API. For more information, see [AUTOTITLE](/rest/issues/issues#get-an-issue). In repositories owned by an organization, the response includes `status` for any authenticated request, including requests authenticated as a {% data variables.product.prodname_github_app %} installation and requests that use `GITHUB_TOKEN` in a workflow. During the {% data variables.release-phases.preview %}, in repositories owned by a personal account, the response includes `status` only when the request is made on behalf of a user who has access to the preview. If the response doesn't include `status`, use the status from deliveries with care, because a delivery that arrives later can carry an older status. - -## Who can change a status - -People with triage access or higher to a repository can choose the status of its issues. Additional permission rules apply to custom roles, apps, workflows, and personal accounts: - -* **Custom repository roles**: In repositories owned by an organization, people with a custom role that inherits the Triage, Write, or Maintain role can choose statuses. People with a custom role that inherits the Read role can't choose statuses, even if the role can set issue types. -* **Apps and workflows**: In repositories owned by an organization, {% data variables.product.prodname_github_apps %} with write access for the "Issues" repository permission can also choose statuses, including workflows that use `GITHUB_TOKEN` with the `issues: write` permission. -* **Personal accounts**: During the {% data variables.release-phases.preview %}, in repositories owned by a personal account, only people who have access to the preview can choose statuses. - -Choosing a status that closes or reopens an issue also requires permission to close or reopen the issue. Changing why a closed issue is closed, for example from Done to Not planned, requires permission to both close and reopen it. - -People who can't choose a status can still change it by closing or reopening an issue. For example, the author of an issue can close and reopen it with read access to the repository, which sets the default status for the new state. These changes also send `status_changed`, and `sender` is the person who closed or reopened the issue. +To get the latest status of an issue, fetch the issue with the REST API. For more information, see [AUTOTITLE](/rest/issues/issues#get-an-issue). The response includes `status` for any request that can read the issue. This includes unauthenticated requests to public repositories, requests authenticated as a {% data variables.product.prodname_github_app %} installation, and requests that use `GITHUB_TOKEN` in a workflow. If the response doesn't include `status`, use the status from deliveries with care, because a delivery that arrives later can carry an older status. ## Running a workflow when a status changes @@ -109,8 +98,6 @@ To run a {% data variables.product.prodname_actions %} workflow when the status > [!IMPORTANT] > {% data reusables.issues.status-changed-workflows-without-types %} -{% data reusables.issues.status-changed-editor-validation %} - For example workflows that match a status by its ID and every status in a category, see [AUTOTITLE](/actions/reference/workflows-and-actions/events-that-trigger-workflows#issues). ## Example payloads diff --git a/content/issues/tracking-your-work-with-issues/using-issues/linking-a-pull-request-to-an-issue.md b/content/issues/tracking-your-work-with-issues/using-issues/linking-a-pull-request-to-an-issue.md index d22913fe8e9d..170e4eb6e781 100644 --- a/content/issues/tracking-your-work-with-issues/using-issues/linking-a-pull-request-to-an-issue.md +++ b/content/issues/tracking-your-work-with-issues/using-issues/linking-a-pull-request-to-an-issue.md @@ -25,6 +25,12 @@ You can link up to 10 issues to a pull request and up to 10 pull requests to an When you link a pull request to the issue the pull request addresses, collaborators can see that someone is working on the issue. +{% ifversion issue-statuses %} + +Linking a pull request can also move the issue's status to In progress or In review. For more information, see [AUTOTITLE](/issues/tracking-your-work-with-issues/learning-about-issues/about-issue-statuses#automatic-status-changes). + +{% endif %} + When you merge a linked pull request into the **default branch** of a repository, its linked issue is automatically closed. For more information about the default branch, see [AUTOTITLE](/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/changing-the-default-branch). > [!NOTE] diff --git a/content/rest/repos/planning-statuses.md b/content/rest/repos/planning-statuses.md index 5e119c9f3c56..0f70a28b773f 100644 --- a/content/rest/repos/planning-statuses.md +++ b/content/rest/repos/planning-statuses.md @@ -1,7 +1,7 @@ --- title: REST API endpoints for planning statuses shortTitle: Planning statuses -intro: 'Use the REST API to list the planning statuses that issues in a repository can have. Issue statuses are in {% data variables.release-phases.preview %} and only available to accounts enrolled in the preview.' +intro: 'Use the REST API to list the planning statuses that issues in a repository can have. {% data reusables.issues.issue-statuses-preview %}' versions: # DO NOT MANUALLY EDIT. CHANGES WILL BE OVERWRITTEN BY A 🤖 fpt: '*' ghec: '*' diff --git a/content/search-github/searching-on-github/searching-issues-and-pull-requests.md b/content/search-github/searching-on-github/searching-issues-and-pull-requests.md index 1be1dad02f68..f164639174d4 100644 --- a/content/search-github/searching-on-github/searching-issues-and-pull-requests.md +++ b/content/search-github/searching-on-github/searching-issues-and-pull-requests.md @@ -97,6 +97,63 @@ You can filter issues based on the reason given when the issue was closed, using | `reason:completed` | [**libraries is:closed reason:completed**](https://github.com/search?q=libraries+is%3Aclosed+reason%3Acompleted&type=Issues&ref_product=github&ref_type=engagement&ref_style=text) matches issues with the word "libraries" that were closed as "completed." | `reason:"not planned"` | [**libraries is:closed reason:"not planned"**](https://github.com/search?q=libraries+is%3Aclosed+reason%3A%22not+planned%22&type=Issues&ref_product=github&ref_type=engagement&ref_style=text) matches issues with the word "libraries" that were closed as "not planned." +{% ifversion issue-status-search %} + +## Search by issue status + +> [!NOTE] +> {% data reusables.issues.issue-statuses-preview %} + +You can filter issues by their status with the `status` qualifier, or by the category of their status with the `category` qualifier. Searches for issue statuses only match issues, not pull requests. + +If you aren't signed in, you can only search by issue status in public repositories owned by an organization. Limit your search to those repositories, for example with `repo:` or `org:`, or search from the repository's **Issues** tab. + +| Qualifier | Example | +| ------------- | ------------- | +| status:STATUS | **repo:octo-org/octo-repo is:issue status:"In progress"** matches issues in the `octo-org/octo-repo` repository with the In progress status. | +| category:CATEGORY | **org:octo-org is:issue category:started** matches issues in repositories owned by the `octo-org` organization with a status in the `started` category, such as In progress or In review. | +| -status:STATUS | **org:octo-org is:issue is:open -status:Backlog** matches open issues in repositories owned by `octo-org` that don't have the Backlog status, including issues without a status. | +| `has:status` | **repo:octo-org/octo-repo is:issue has:status** matches issues in the `octo-org/octo-repo` repository that have a status. | +| `no:status` | **repo:octo-org/octo-repo is:issue no:status** matches open issues in the `octo-org/octo-repo` repository that don't have a status. | + +Each status belongs to a category. The category keys are `backlog` for Backlog, `planned` for Todo, `started` for In progress and In review, `completed` for Done, `not-planned` for Not planned, and `duplicate` for Duplicate. + +### Writing status values + +Status names and category keys aren't case sensitive, but they must otherwise match exactly. + +* Put quotation marks around status names that contain a space, for example `status:"In progress"` or `status:"Not planned"`. +* Use a category key, not a status name, with the `category` qualifier. For example, use `category:not-planned`, not `category:"Not planned"`. The `category` qualifier also accepts `not_planned`, the spelling that the API and webhook payloads use. + +If a `status` or `category` value isn't recognized, your search returns an error instead of results. For example, `status:InProgress`, `status:In progress` without quotation marks, and comma-separated lists such as `status:Todo,Backlog` all return an error. For pull requests, values such as `status:success` remain valid. See [Issue statuses and commit statuses](#issue-statuses-and-commit-statuses). + +### Combining status qualifiers + +In advanced search, you can combine status qualifiers with other qualifiers using `AND`, `OR`, and parentheses. You can use advanced search on a repository's **Issues** tab and on the issues dashboard. In the REST API, set the `advanced_search` parameter to `true`. In the GraphQL API, use the `ISSUE_ADVANCED` search type. + +In advanced search, repeating `status:` matches only issues that have every value. To match any of several statuses, use `OR` in parentheses: `(status:Todo OR status:"In progress")`. + +The following query finds issues in two repositories that have a status in the `started` category and don't have the `blocked` label. Replace `octo-org/api` and `octo-org/web` with the repositories you want to search. + +```text +(repo:octo-org/api OR repo:octo-org/web) is:issue category:started -label:blocked +``` + +### Issues without a status + +Issues that were created before their repository used issue statuses might not have a status. Search handles these issues differently depending on whether they're open or closed. + +* **Open issues** without a status match `no:status`. They don't match `status:Backlog` or `category:backlog`. +* **Closed issues** always match the status for the reason they were closed: Done for issues closed as completed, Not planned for issues closed as not planned, and Duplicate for issues closed as a duplicate. Closed issues never match `no:status`. + +### Issue statuses and commit statuses + +The `status` qualifier also filters pull requests by the status of their commits, as described in [Search by commit status](#search-by-commit-status). Values such as `success`, `failure`, and `pending` keep that meaning. + +`status:in_progress` is the pull request checks status, not the In progress issue status. To find issues with the In progress status, put the name in quotation marks: `status:"In progress"`. + +{% endif %} + ## Filter by repository visibility You can filter by the visibility of the repository containing the issues and pull requests using the `is` qualifier. For more information, see [AUTOTITLE](/repositories/creating-and-managing-repositories/about-repositories#about-repository-visibility). diff --git a/data/features/issue-status-search.yml b/data/features/issue-status-search.yml new file mode 100644 index 000000000000..5abb310d87da --- /dev/null +++ b/data/features/issue-status-search.yml @@ -0,0 +1,5 @@ +# Reference: github/issues#25084 +# Searching issues by status with the `status`, `category`, `has:status`, and `no:status` qualifiers, in preview. +versions: + fpt: '*' + ghec: '*' diff --git a/data/features/issue-statuses.yml b/data/features/issue-statuses.yml new file mode 100644 index 000000000000..9e1d179d4b9e --- /dev/null +++ b/data/features/issue-statuses.yml @@ -0,0 +1,5 @@ +# Reference: github/issues#25084 +# The About issue statuses article and links to it from other issue articles, in public preview. +versions: + fpt: '*' + ghec: '*' diff --git a/data/reusables/issues/issue-status-webhooks-preview.md b/data/reusables/issues/issue-status-webhooks-preview.md new file mode 100644 index 000000000000..af3b9e058335 --- /dev/null +++ b/data/reusables/issues/issue-status-webhooks-preview.md @@ -0,0 +1 @@ +{% data reusables.issues.issue-statuses-preview %} Webhook payloads and the `status_changed` activity type might also change. diff --git a/data/reusables/issues/issue-statuses-preview.md b/data/reusables/issues/issue-statuses-preview.md index 0e03ed5695f4..f2e0a6341340 100644 --- a/data/reusables/issues/issue-statuses-preview.md +++ b/data/reusables/issues/issue-statuses-preview.md @@ -1 +1 @@ -Issue statuses are in {% data variables.release-phases.preview %} and only available to accounts enrolled in the preview. Webhook payloads and the `status_changed` activity type are subject to change. +Issue statuses are in {% data variables.release-phases.public_preview %} and subject to change. diff --git a/data/reusables/issues/status-changed-editor-validation.md b/data/reusables/issues/status-changed-editor-validation.md deleted file mode 100644 index 3ba5092dda9f..000000000000 --- a/data/reusables/issues/status-changed-editor-validation.md +++ /dev/null @@ -1 +0,0 @@ -During the {% data variables.release-phases.preview %}, editors that validate workflow files, such as the workflow editor on {% data variables.product.github %}, may report `status_changed` as an invalid activity type. You can ignore this error. diff --git a/data/reusables/issues/status-changed-workflows-without-types.md b/data/reusables/issues/status-changed-workflows-without-types.md index 5efa7bb5b487..f35ce0ce6937 100644 --- a/data/reusables/issues/status-changed-workflows-without-types.md +++ b/data/reusables/issues/status-changed-workflows-without-types.md @@ -1 +1 @@ -Workflows that use the `issues` event without `types` also run for `status_changed`. These workflows run whenever someone changes the status of an issue, and run an extra time when an issue is created, closed, or reopened, because {% data variables.product.github %} sends `status_changed` as well as `opened`, `closed`, or `reopened`. To avoid unexpected runs, list the activity types that your workflow needs. +Workflows that use the `issues` event without `types` also run for `status_changed`. These workflows run whenever the status of an issue changes, including automatic changes. They also run an extra time when an issue is created, closed, or reopened, and when assigning an issue changes its status, because {% data variables.product.github %} sends `status_changed` as well as `opened`, `closed`, `reopened`, or `assigned`. To avoid unexpected runs, list the activity types that your workflow needs. diff --git a/src/content-pipelines/state/copilot-cli.sha b/src/content-pipelines/state/copilot-cli.sha index efd5ad1b34b1..246f549c7573 100644 --- a/src/content-pipelines/state/copilot-cli.sha +++ b/src/content-pipelines/state/copilot-cli.sha @@ -1 +1 @@ -fee58927f8ac90ba53f0a2d59fa70f50202b2d5c +395ec6187e8a5983cedea88287eb2461153eb2b4 diff --git a/src/graphql/data/fpt/changelog.json b/src/graphql/data/fpt/changelog.json index c2e044b9cbb7..d0e644259051 100644 --- a/src/graphql/data/fpt/changelog.json +++ b/src/graphql/data/fpt/changelog.json @@ -1,4 +1,17 @@ [ + { + "schemaChanges": [ + { + "title": "The GraphQL schema includes these changes:", + "changes": [ + "

Enum value UNKNOWN was added to enum RepositoryRuleType

" + ] + } + ], + "previewChanges": [], + "upcomingChanges": [], + "date": "2026-11-25" + }, { "schemaChanges": [ { diff --git a/src/graphql/data/fpt/schema-repos.json b/src/graphql/data/fpt/schema-repos.json index ab7beab4b950..8d03c61d6b01 100644 --- a/src/graphql/data/fpt/schema-repos.json +++ b/src/graphql/data/fpt/schema-repos.json @@ -9645,6 +9645,10 @@ "name": "TAG_NAME_PATTERN", "description": "

Tag name pattern.

" }, + { + "name": "UNKNOWN", + "description": "

The rule type is unavailable in the current schema. This value cannot be used to create or update a rule.

" + }, { "name": "UPDATE", "description": "

Only allow users with bypass permission to update matching refs.

" diff --git a/src/graphql/data/fpt/schema.docs.graphql b/src/graphql/data/fpt/schema.docs.graphql index 24a46a4bf70b..371bf2bffd67 100644 --- a/src/graphql/data/fpt/schema.docs.graphql +++ b/src/graphql/data/fpt/schema.docs.graphql @@ -59242,6 +59242,11 @@ enum RepositoryRuleType { """ TAG_NAME_PATTERN + """ + The rule type is unavailable in the current schema. This value cannot be used to create or update a rule. + """ + UNKNOWN + """ Only allow users with bypass permission to update matching refs. """ diff --git a/src/graphql/data/ghec/schema-repos.json b/src/graphql/data/ghec/schema-repos.json index f56da936762a..ce0628061138 100644 --- a/src/graphql/data/ghec/schema-repos.json +++ b/src/graphql/data/ghec/schema-repos.json @@ -9645,6 +9645,10 @@ "name": "TAG_NAME_PATTERN", "description": "

Tag name pattern.

" }, + { + "name": "UNKNOWN", + "description": "

The rule type is unavailable in the current schema. This value cannot be used to create or update a rule.

" + }, { "name": "UPDATE", "description": "

Only allow users with bypass permission to update matching refs.

" diff --git a/src/graphql/data/ghec/schema.docs.graphql b/src/graphql/data/ghec/schema.docs.graphql index 24a46a4bf70b..371bf2bffd67 100644 --- a/src/graphql/data/ghec/schema.docs.graphql +++ b/src/graphql/data/ghec/schema.docs.graphql @@ -59242,6 +59242,11 @@ enum RepositoryRuleType { """ TAG_NAME_PATTERN + """ + The rule type is unavailable in the current schema. This value cannot be used to create or update a rule. + """ + UNKNOWN + """ Only allow users with bypass permission to update matching refs. """