-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-sync GitHub (RemoteRepository and RemoteOrganization) on webhook
Add `member` event when creating the Read the Docs' webhook on each repository imported under Read the Docs. This webhook will communicate back to us when a collaborator was added/removed/changed from that repository in particular. This allow us to trigger the re-sync method for the GitHub service on that user and create/delete/change `RemoteRepository` objects for that user. Examples, * user is removed from having access to a repository -> remove RemoteRepository * user is added access to a repository -> create RemoteRepository * user is removed admin access but keep read access -> `.admin=False`
- Loading branch information
Showing
2 changed files
with
15 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters