Skip to content

Handle 401, 403 and 404 when setting up webhooks #5589

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 1, 2019

Conversation

saadmk11
Copy link
Member

@saadmk11 saadmk11 commented Apr 13, 2019

Instead of doing it Like this I propose having a method (create_webhook) to handle webhook creation for Github, Gitlab and Bitbucket. The method might contain something like this:

https://github.com/rtfd/readthedocs.org/blob/b356689f26f380c38dcec828fd256d17b86ec849/readthedocs/oauth/services/bitbucket.py#L233-L249

closes #5092

Copy link
Member

@stsewd stsewd left a comment

Choose a reason for hiding this comment

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

I think this is good enough, just linking to a comment to the related issue (private repo) https://github.com/rtfd/readthedocs-corporate/issues/372#issuecomment-477410680

@stsewd stsewd requested a review from a team April 23, 2019 01:09
@stsewd stsewd merged commit 77ef333 into readthedocs:master May 1, 2019
@saadmk11 saadmk11 deleted the handle-webhook-errors branch May 3, 2019 12:21
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.

Handle more errors when setting up webhooks
2 participants