Adding rb-gateway webhook and template for registering webhooks
Review Request #9700 — Created Feb. 24, 2018 and updated
Task 3 for Rb-Gateway Webhooks feature: Adding webhook receivers in Review Board to close review requests when commits are posted.
Added html template for adding webhooks. Pretty much a copy-pate of
github.py
with some tweaks for rb-gateway-specific headers.
Along with r/9585, the webhook successfully returns and closes the review request.
Description | From | Last Updated |
---|---|---|
E231 missing whitespace after ',' |
![]() |
|
E501 line too long (88 > 79 characters) |
![]() |
|
W293 blank line contains whitespace |
![]() |
|
W293 blank line contains whitespace |
![]() |
|
W291 trailing whitespace |
![]() |
|
E501 line too long (83 > 79 characters) |
![]() |
|
W293 blank line contains whitespace |
![]() |
|
F841 local variable 'plan' is assigned to but never used |
![]() |
|
E501 line too long (82 > 79 characters) |
![]() |
|
W293 blank line contains whitespace |
![]() |
|
W391 blank line at end of file |
![]() |
|
F401 'reviewboard.hostingsvcs.hook_utils.get_git_branch_name' imported but unused |
![]() |
|
E501 line too long (81 > 79 characters) |
![]() |
|
E501 line too long (81 > 79 characters) |
![]() |
|
E225 missing whitespace around operator |
![]() |
|
E501 line too long (83 > 79 characters) |
![]() |
|
E303 too many blank lines (2) |
![]() |
|
F401 'reviewboard.hostingsvcs.hook_utils.get_git_branch_name' imported but unused |
![]() |
|
E501 line too long (81 > 79 characters) |
![]() |
|
E501 line too long (83 > 79 characters) |
![]() |
|
W293 blank line contains whitespace |
![]() |
|
W293 blank line contains whitespace |
![]() |
|
These should be grouped with the other django imports |
|
|
This should come after the hostingsvcs.forms imports (alphabetical order) |
|
|
Add a period at the end of the docstring. |
|
|
There's an extra space between the """ and the start of the docstring. This also needs a period at the … |
|
|
This blank line can be removed. |
|
|
You can make a bystring with b'ABC123'. But what is ABC123? |
|
|
This blank line can go away. |
|
|
Docstrings should be in the imperative mood instead of passive ("Return" instead of "Returns"). This also needs Args and Returns … |
|
|
There's an extra space character an the end of this line. |
|
|
Can you indent the HTML 1 space instead of 8? |
|
|
Please wrap to 80 columns and add a period at the end. |
|
|
Perhaps this value could be stored in a constant somewhere? |
![]() |
- Change Summary:
-
Working version of get_hook_instructions, and have webhook close review request
- Commit:
-
305167c5c50b3c429167e35b6f2963fbe86ba662e54087e8b727cf83c3a12621cf3dd1ae96f6a785
Checks run (1 failed, 1 succeeded)
flake8
- Commit:
-
120488d5af2e65affcd23c699ef1a6a8cd9b6e621eccb2f0ca98f3251521a72d90d05ec9b60f9dea