# Monitoring Git

Where to see what happened in your repositories, from webhook deliveries and mirrors to security alerts, the merge queue and the audit log.

| What                | Where                                                                                                                                                                                                   |
| ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Repository events   | [Webhooks](receive-webhooks.md): pushes, tags, pull requests, reviews, issues, comments, releases and merge queue results, delivered to your endpoint.                                                  |
| Webhook deliveries  | **Settings → Webhooks → Recent deliveries**, 30 days. See [View webhook deliveries](view-webhook-deliveries.md).                                                                                        |
| Imports and mirrors | `importState` on the repository (`dcloud git repositories get-import`); a mirror's status under **Settings → Mirroring**.                                                                                  |
| Push mirror         | `pushMirror.lastStatus`, `rejectedRefs` and `lastError` on the repository; **Last push** under **Settings → Mirroring**.                                                                                |
| Security alerts     | **Security** in each repository, and **Security overview** in the Git navigation across all of them.                                                                                                    |
| Merge queue         | The **Merge queue** page of a branch; a `merge_queue` webhook for every pull request merged or removed, and a mail to the author when it was removed by anyone but the author.                          |
| Checks on a commit  | Commit statuses (`dcloud git commit-statuses list`) and the workflow runs of the repository's CI.                                                                                                          |
| Who did what        | The [audit log](/docs/audit-log): every write, and refused requests.                                                                                                                                    |
| Workflows on events | Workflows run `on: push`, `pull_request`, `merge_group`, `release`, `workflow_dispatch`, `schedule` and `workflow_run`; a workflow reads a pull request's labels as `github.event.pull_request.labels`. |

## Related

- [Receive webhooks](receive-webhooks.md)
- [Troubleshooting](troubleshooting.md)
