Configure Webhooks for Doc Drift Prevention
Note: The standalone Technical Drift Audit feature has been deprecated and superseded by the real-time Doc PR Inbox.
The Doc PR Inbox provides a proactive approach to preventing documentation drift. Instead of running periodic audits, the system now automatically analyzes engineering pull requests (PRs) and Jira tickets as they happen, suggesting documentation changes directly to the writing team.
To enable this feature, you must configure a webhook for each connected repository or Jira instance. This allows the external service (like GitHub) to securely notify our platform about new activity.
Configuring Webhooks for Automated Suggestions
After connecting a repository or Jira instance in the Admin Dashboard, you must set up the corresponding webhook to begin receiving automated suggestions.
Step 1: Retrieve Webhook Credentials
- Navigate to the Admin Dashboard page.
- Under the Settings tab, locate the Active Repositories & Services list.
- Find the repository or service you want to connect and click the Webhook button.
- A dialog will appear containing a unique Payload URL and a Secret for that specific integration. Keep this dialog open.
Step 2: Set up the Webhook in GitHub
For each connected code repository, follow these steps in GitHub:
- Navigate to your repository's main page.
- Click Settings > Webhooks > Add webhook.
- Paste the Payload URL from the SudoDocs dialog into the corresponding field.
- Change the Content type to
application/json. - Paste the Secret from the SudoDocs dialog into the corresponding field.
- Under "Which events would you like to trigger this webhook?", select Let me select individual events.
- Deselect Pushes and select Pull requests.
- Ensure Active is checked, and click Add webhook.
Once configured, the system will begin analyzing new and updated pull requests for that repository, and suggestions will appear in the Doc PR Inbox.
Step 3: Set up the Webhook in Jira
For connected Jira instances, follow these steps in your Jira account:
- Navigate to Jira Settings > System.
- Under Advanced, click Webhooks.
- Click Create a Webhook.
- Give the webhook a descriptive name (e.g., "SudoDocs Doc Suggestions").
- Paste the Payload URL from the SudoDocs dialog into the URL field. Note that the Jira URL already contains the secret as a query parameter.
- In the "Issue related events" section, find the Issue subsection and check the box for updated.
- Click Create.
This configuration will notify the system when Jira tickets are moved to a "Done" or "Closed" status, triggering a documentation suggestion.