Link Pull Requests to Error Tracking Issues

Cette page n'est pas encore disponible en français, sa traduction est en cours.
Si vous avez des questions ou des retours sur notre projet de traduction actuel, n'hésitez pas à nous contacter.

Overview

Link GitHub pull requests to Error Tracking issues and track the full life cycle of an error, from detection to resolution. This link enables Datadog to automatically resolve the Error Tracking issue when the associated PR is merged.

With linked pull requests, you can:

  • Track issue resolution: See which pull requests are addressing an Error Tracking issue directly from the issue panel.
  • Automatically resolve issues: When a linked pull request is merged, Datadog automatically moves the issue to Resolved status.

Prerequisites

To link a pull request to an Error Tracking issue:

  1. Navigate to Datadog Error Tracking.
  2. Select the issue you want to link to open its side panel.
  3. In the top right corner, click the Actions dropdown, then select Link a Pull Request to copy the issue URL.
  4. Open your GitHub pull request and paste the issue URL into the description.
Link a pull request to an Error Tracking issue

Datadog detects the issue URL and automatically creates the link.

Updating a pull request description to add or remove issue URLs automatically updates the link.

View linked pull requests

To view linked pull requests:

  1. Navigate to Datadog Error Tracking.
  2. Select the issue you want to link to open its side panel.
  3. In the top right corner, click the Actions dropdown to see the linked PR under PULL REQUESTS.
    View pull requests linked to an Error Tracking issue

To unlink a pull request from an issue, open the GitHub pull request and remove the Error Tracking issue URL from the description.

Automatic state changes

Linked pull requests trigger automatic issue state transitions:

Initial stateActionResulting state
Issue is For ReviewA PR is linked to the issueIssue moves to Reviewed
Issue is ReviewedA linked PR is mergedIssue moves to Resolved
Issue is ResolvedA linked PR is reopenedIssue moves to Reviewed
Issue is ResolvedA new open PR is linked to the issueIssue moves to Reviewed
If an issue is linked to multiple pull requests, the issue moves to Resolved only when the last open (non-closed, non-merged) PR is merged.

Closing a PR without merging does not resolve the issue.

Further reading