Skip to content

Commit d9d2975

Browse files
authored
Merge pull request #42737 from github/repo-sync
Repo sync
2 parents a0fbdb1 + b45ae13 commit d9d2975

File tree

4 files changed

+109
-16
lines changed

4 files changed

+109
-16
lines changed

content/code-security/how-tos/manage-security-alerts/manage-secret-scanning-alerts/monitoring-alerts.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Monitoring alerts from secret scanning
3-
intro: Learn how and when {% data variables.product.github %} will notify you about a secret scanning alert.
3+
intro: You can configure how {% data variables.product.prodname_secret_scanning %} notifies you about {% data variables.product.prodname_secret_scanning %} alerts, and audit how your team responds to these alerts.
44
permissions: '{% data reusables.permissions.secret-scanning-alerts %}'
55
versions:
66
fpt: '*'
@@ -18,6 +18,10 @@ redirect_from:
1818
- /code-security/secret-scanning/managing-alerts-from-secret-scanning/monitoring-alerts
1919
---
2020

21+
When {% data variables.product.prodname_secret_scanning %} detects a potential secret leak in your repository, staying informed about these alerts is crucial for maintaining your code's security. {% data variables.product.github %} provides multiple notification channels to ensure you and your team are promptly alerted when secrets are found. You can customize how and when you receive these notifications based on your role and preferences.
22+
23+
You can also audit responses to {% data variables.product.prodname_secret_scanning %} alerts to track how your team manages security issues and maintain compliance with your organization's security policies.
24+
2125
## Configuring notifications for {% data variables.secret-scanning.alerts %}
2226

2327
In addition to displaying an alert in the **Security** tab of the repository, {% data variables.product.github %} can also send email notifications for alerts. These notifications are different for incremental scans and historical scans.

content/copilot/how-tos/copilot-cli/cli-best-practices.md

Lines changed: 54 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ For best results on complex tasks:
199199

200200
**Session storage location:**
201201

202-
```copilot
202+
```text
203203
~/.copilot/session-state/{session-id}/
204204
├── events.jsonl # Full session history
205205
├── workspace.yaml # Metadata
@@ -213,17 +213,38 @@ For best results on complex tasks:
213213
214214
### Session management commands
215215

216-
```bash
217-
# View session info
216+
To view information about the current CLI session, enter:
217+
218+
```copilot
218219
/session
220+
```
221+
222+
To view a list of any session checkpoints, enter:
219223

220-
# View checkpoint history
224+
```copilot
221225
/session checkpoints
226+
```
227+
228+
> [!NOTE]
229+
> A checkpoint is created when session context is compacted, and allows you to view the summary context that {% data variables.product.prodname_copilot_short %} created.
230+
231+
To view the details of a specific checkpoint, enter:
222232

223-
# View files in session
233+
```copilot
234+
/session checkpoints NUMBER
235+
```
236+
237+
where NUMBER specifies the checkpoint you want to display.
238+
239+
To view any temporary files that have been created during the current session—for example, artifacts created by {% data variables.product.prodname_copilot_short %} that shouldn't be saved to the repository—enter:
240+
241+
```copilot
224242
/session files
243+
```
244+
245+
To view the current plan (if {% data variables.product.prodname_copilot_short %} has generated one), enter:
225246

226-
# View current plan
247+
```copilot
227248
/session plan
228249
```
229250

@@ -317,7 +338,6 @@ Pair with {% data variables.copilot.copilot_cli_short %} to develop tests.
317338
* `/plan Migrate all class components to functional components with hooks`
318339

319340
Then answer the questions {% data variables.product.prodname_copilot_short %} asks. Review the plan it creates, and ask {% data variables.product.prodname_copilot_short %} to make changes if necessary. When you are happy with the plan you can prompt:
320-
321341
`Implement this plan`
322342

323343
## 6. Advanced patterns
@@ -352,13 +372,13 @@ copilot
352372

353373
**View and manage allowed directories:**
354374

355-
```bash
375+
```copilot
356376
/list-dirs
357377
```
358378

359379
**Example workflow: coordinated API changes**
360380

361-
```bash
381+
```copilot
362382
I need to update the user authentication API. The changes span:
363383
364384
- @/Users/me/projects/api-gateway (routing changes)
@@ -379,7 +399,7 @@ This multi-repository capability enables:
379399

380400
{% data variables.product.prodname_copilot_short %} can work with visual references. Simply **drag and drop** images directly into the CLI input, or reference image files:
381401

382-
```bash
402+
```copilot
383403
Implement this design: @mockup.png
384404
Match the layout and spacing exactly
385405
```
@@ -388,7 +408,7 @@ Match the layout and spacing exactly
388408

389409
For large-scale changes:
390410

391-
```bash
411+
```copilot
392412
Run the linter and write all errors to `migration-checklist.md` as a checklist.
393413
Then fix each issue one by one, checking them off as you go.
394414
```
@@ -424,16 +444,35 @@ Track metrics like:
424444
* Code review feedback cycles
425445
* Test coverage improvements
426446

427-
### Getting help
447+
## Getting help
448+
449+
From the command line, you can display help by using the command: `copilot -h`.
450+
451+
For help on various topics enter:
428452

429453
```bash
430-
# In-CLI help
454+
copilot help TOPIC
455+
```
456+
457+
where `TOPIC` can be one of: `config`, `commands`, `environment`, `logging`, or `permissions`.
458+
459+
### Within the CLI
460+
461+
For help within the CLI, enter:
462+
463+
```copilot
431464
/help
465+
```
432466

433-
# View usage statistics
467+
To view usage statistics, enter:
468+
469+
```copilot
434470
/usage
471+
```
435472

436-
# Submit feedback
473+
To submit private feedback to {% data variables.product.github %} about {% data variables.copilot.copilot_cli_short %}, raise a bug report, or submit a feature request, enter:
474+
475+
```copilot
437476
/feedback
438477
```
439478

content/copilot/how-tos/use-copilot-agents/coding-agent/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ topics:
99
children:
1010
- /create-a-pr
1111
- /make-changes-to-an-existing-pr
12+
- /provide-visual-inputs
1213
- /track-copilot-sessions
1314
- /review-copilot-prs
1415
- /create-custom-agents
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
title: Provide visual inputs to GitHub Copilot
3+
shortTitle: Provide visual inputs
4+
intro: 'You can attach images to issues or {% data variables.copilot.copilot_chat_short %} prompts to help {% data variables.product.prodname_copilot_short %} understand your task.'
5+
product: '{% data reusables.gated-features.copilot-coding-agent %}<br><a href="https://github.com/features/copilot/plans?ref_product=copilot&ref_type=engagement&ref_style=button" target="_blank" class="btn btn-primary mt-3 mr-3 no-underline"><span>Sign up for {% data variables.product.prodname_copilot_short %}</span> {% octicon "link-external" height:16 %}</a>'
6+
versions:
7+
feature: copilot
8+
topics:
9+
- Copilot
10+
contentType: how-tos
11+
category:
12+
- Author and optimize with Copilot
13+
---
14+
15+
> [!NOTE]
16+
> For an overview of {% data variables.copilot.copilot_coding_agent %}, see [AUTOTITLE](/copilot/concepts/about-copilot-coding-agent).
17+
18+
## Introduction
19+
20+
{% data variables.copilot.copilot_coding_agent_short_cap_c %} can process images, such as a photo or screenshot of a sketch or design, as part of your task description. This is useful when you want to show {% data variables.product.prodname_copilot_short %} what you're trying to achieve visually, for example, when updating a UI or implementing a design.
21+
22+
You can provide images to {% data variables.product.prodname_copilot_short %} in two ways:
23+
24+
* **In an issue**: Add an image to the issue body, with a description of the task you want {% data variables.product.prodname_copilot_short %} to complete, then assign the issue to {% data variables.product.prodname_copilot_short %}.
25+
* **In {% data variables.copilot.copilot_chat_short %}**: Attach images to your prompt when you ask {% data variables.product.prodname_copilot_short %} to create a pull request.
26+
27+
## Attaching images to an issue
28+
29+
1. Navigate to the repository where you want to create the issue.
30+
1. Create a new issue or open an existing issue.
31+
1. In the issue body, drag and drop your image.
32+
1. Add a clear description of what you want {% data variables.product.prodname_copilot_short %} to do with the image. For example, "Let's update the login form to match this mockup".
33+
1. Assign the issue to {% data variables.product.prodname_copilot_short %}. For detailed instructions, see [Assign an issue to {% data variables.product.prodname_copilot_short %} on {% data variables.product.prodname_dotcom_the_website %}](/copilot/how-tos/use-copilot-agents/coding-agent/create-a-pr#assigning-an-issue-to-copilot-on-githubcom).
34+
35+
{% data variables.product.prodname_copilot_short %} will analyze the image along with your description when working on the task.
36+
37+
## Attaching images in {% data variables.copilot.copilot_chat_short %}
38+
39+
1. Open {% data variables.copilot.copilot_chat_short %}.
40+
1. Attach your image to the chat prompt, and use `/task` to describe what you want {% data variables.product.prodname_copilot_short %} to do. For example, "Update the notification badge to match this mockup".
41+
42+
For detailed instructions, see [Asking {% data variables.product.prodname_copilot_short %} to create a pull request from {% data variables.copilot.copilot_chat_short %} in {% data variables.product.prodname_dotcom_the_website %}](/copilot/how-tos/use-copilot-agents/coding-agent/create-a-pr#asking-copilot-to-create-a-pull-request-from-copilot-chat-in-githubcom).
43+
1. {% data variables.product.prodname_copilot_short %} will create a pull request using the image as context for the task.
44+
45+
## Further reading
46+
47+
* [AUTOTITLE](/copilot/how-tos/use-copilot-agents/coding-agent/create-a-pr)
48+
* [AUTOTITLE](/copilot/tutorials/coding-agent/best-practices)
49+
* [AUTOTITLE](/copilot/how-tos/use-copilot-agents/coding-agent/review-copilot-prs)

0 commit comments

Comments
 (0)