Skip to content

Conversation

@stsewd
Copy link
Member

@stsewd stsewd commented Oct 30, 2025

Having a webhook on projects already linked to our GH App leads to duplicate builds.

@stsewd stsewd requested a review from a team as a code owner October 30, 2025 23:15
@stsewd stsewd requested a review from ericholscher October 30, 2025 23:15
@stsewd stsewd requested a review from Copilot October 30, 2025 23:22
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a deprecation warning mechanism for projects that are connected to the GitHub App but still have webhook integrations configured. The changes create a notification to alert users that they should remove the deprecated webhook integration.

Key changes:

  • Adds a new notification message type for deprecated webhooks
  • Implements logic to create notifications when webhook requests are received for GitHub App projects
  • Adds functionality to dismiss the notification when the deprecated webhook is deleted

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
readthedocs/projects/notifications.py Defines the new notification message constant and its content for the deprecated webhook warning
readthedocs/api/v2/views/integrations.py Implements early return logic in GitHub webhook handler to reject requests and create notifications for GitHub App projects
readthedocs/projects/views/private.py Adds logic to dismiss the deprecated webhook notification when an integration is deleted
readthedocs/rtd_tests/tests/test_api.py Adds test coverage for the new GitHub App project webhook skipping behavior

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants