Skip to content

Commit ab8e9b4

Browse files
authored
Add procedure for asking copilot why a PR failed (#51784)
Co-authored-by: Jules Porter <[email protected]>
1 parent 3249d8f commit ab8e9b4

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

content/copilot/managing-copilot/managing-copilot-for-your-enterprise/managing-policies-and-features-for-copilot-in-your-enterprise.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ If you enable "{% data variables.product.prodname_copilot_short %} in {% data va
4646
* **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:
4747

4848
* {% data variables.product.prodname_copilot_autocomplete_pr %}. For more information, see "[Using Copilot text completion](/copilot/using-github-copilot/using-copilot-text-completion)."
49+
* 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)."
4950

5051
### {% data variables.product.prodname_copilot_cli %}
5152

content/copilot/using-github-copilot/asking-github-copilot-questions-in-githubcom.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,27 @@ You can ask {% data variables.product.prodname_copilot_short %} to summarize a p
299299

300300
{% data reusables.copilot.stop-response-generation %}
301301

302+
### Ask why a workflow has failed
303+
304+
> [!NOTE]This feature is currently in beta and subject to change.
305+
306+
1. On {% data variables.product.prodname_dotcom_the_website %}, navigate to a pull request in a repository.
307+
1. Scroll to the bottom of the page, then, next to one of the failing checks, click **Details**.
308+
309+
{% data reusables.copilot.open-copilot %}
310+
311+
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>.
312+
313+
For example, you could ask:
314+
315+
* Tell me why this job failed
316+
* Suggest a fix for this error
317+
318+
{% 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.
319+
320+
1. If {% data variables.product.prodname_copilot_short %} has provided steps to fix the issue, you can follow the steps to resolve the problem.
321+
{% data reusables.copilot.stop-response-generation %}
322+
302323
## Asking a question about a specific issue or discussion
303324

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

0 commit comments

Comments
 (0)