Skip to content

Commit

Permalink
Add procedure for asking copilot why a PR failed (#51784)
Browse files Browse the repository at this point in the history
Co-authored-by: Jules Porter <[email protected]>
  • Loading branch information
jules-p and jules-p committed Aug 15, 2024
1 parent 3249d8f commit ab8e9b4
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:

* {% 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 %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,27 @@ You can ask {% data variables.product.prodname_copilot_short %} to summarize a p

{% 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

You can ask {% data variables.product.prodname_copilot_short %} to summarize or answer questions about a specific issue or discussion.
Expand Down

0 comments on commit ab8e9b4

Please sign in to comment.