1
0
mirror of synced 2025-12-19 18:10:59 -05:00

Add procedure for asking copilot why a PR failed (#51784)

Co-authored-by: Jules Porter <jules-p@users.noreply.github.com>
This commit is contained in:
Jules
2024-08-15 17:38:00 +02:00
committed by GitHub
parent 3249d8fb67
commit ab8e9b46a0
2 changed files with 22 additions and 0 deletions

View File

@@ -46,6 +46,7 @@ If you enable "{% data variables.product.prodname_copilot_short %} in {% data va
* **Previews of {% data variables.product.prodname_copilot_short %} features** - If enabled, members of your enterprise can test new {% data variables.product.prodname_copilot_short %} features that are not yet generally available. Be aware that previews of features may have flaws, and the features may be changed or discontinued at any time. Current previews of {% data variables.product.prodname_copilot_short %} features: * **Previews of {% data variables.product.prodname_copilot_short %} features** - If enabled, members of your enterprise can test new {% data variables.product.prodname_copilot_short %} features that are not yet generally available. Be aware that previews of features may have flaws, and the features may be changed or discontinued at any time. Current previews of {% data variables.product.prodname_copilot_short %} features:
* {% data variables.product.prodname_copilot_autocomplete_pr %}. For more information, see "[Using Copilot text completion](/copilot/using-github-copilot/using-copilot-text-completion)." * {% data variables.product.prodname_copilot_autocomplete_pr %}. For more information, see "[Using Copilot text completion](/copilot/using-github-copilot/using-copilot-text-completion)."
* Asking {% data variables.product.prodname_copilot_short %} why a workflow has failed. For more information, see "[Ask why a workflow has failed](/copilot/using-github-copilot/asking-github-copilot-questions-in-githubcom#ask-why-a-workflow-has-failed)."
### {% data variables.product.prodname_copilot_cli %} ### {% data variables.product.prodname_copilot_cli %}

View File

@@ -299,6 +299,27 @@ You can ask {% data variables.product.prodname_copilot_short %} to summarize a p
{% data reusables.copilot.stop-response-generation %} {% data reusables.copilot.stop-response-generation %}
### Ask why a workflow has failed
> [!NOTE]This feature is currently in beta and subject to change.
1. On {% data variables.product.prodname_dotcom_the_website %}, navigate to a pull request in a repository.
1. Scroll to the bottom of the page, then, next to one of the failing checks, click **Details**.
{% data reusables.copilot.open-copilot %}
1. At the bottom of the {% data variables.product.prodname_copilot_chat_short %} panel, in the "Ask {% data variables.product.prodname_copilot_short %}" box, ask {% data variables.product.prodname_copilot_short %} why the pull request has failed and press <kbd>Enter</kbd>.
For example, you could ask:
* Tell me why this job failed
* Suggest a fix for this error
{% data variables.product.prodname_copilot_short %} will respond with information about why the pull request failed. {% data variables.product.prodname_copilot_short %} may also provide suggestions for how to fix the issue.
1. If {% data variables.product.prodname_copilot_short %} has provided steps to fix the issue, you can follow the steps to resolve the problem.
{% data reusables.copilot.stop-response-generation %}
## Asking a question about a specific issue or discussion ## Asking a question about a specific issue or discussion
You can ask {% data variables.product.prodname_copilot_short %} to summarize or answer questions about a specific issue or discussion. You can ask {% data variables.product.prodname_copilot_short %} to summarize or answer questions about a specific issue or discussion.