mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +00:00
webhooks/github: Add support for pull request ready for review.
GitHub supports opening a draft/WIP pull request and then marking it as ready for review later on. This PR supports the ready_for_review action for pull_request events. Signed-off-by: Hemanth V. Alluri <hdrive1999@gmail.com>
This commit is contained in:
committed by
Tim Abbott
parent
a9b434b354
commit
4dd957faa2
@@ -263,6 +263,10 @@ class GithubWebhookTest(WebhookTestCase):
|
||||
expected_message = "eeshangarg unassigned [PR #1](https://github.com/zulip-test-org/helloworld/pull/1)."
|
||||
self.send_and_test_stream_message('pull_request__unassigned', 'helloworld / PR #1 Mention that Zulip rocks!', expected_message)
|
||||
|
||||
def test_pull_request_ready_for_review_msg(self) -> None:
|
||||
expected_message = "**Hypro999** has marked [PR #2](https://github.com/Hypro999/temp-test-github-webhook/pull/2) as ready for review."
|
||||
self.send_and_test_stream_message('pull_request__ready_for_review', 'temp-test-github-webhook / PR #2 Test', expected_message)
|
||||
|
||||
def test_pull_request_review_requested_msg(self) -> None:
|
||||
expected_message = "**eeshangarg** requested [showell](https://github.com/showell) for a review on [PR #1](https://github.com/eeshangarg/Scheduler/pull/1)."
|
||||
self.send_and_test_stream_message('pull_request__review_requested', 'Scheduler / PR #1 This is just a test commit', expected_message)
|
||||
|
||||
Reference in New Issue
Block a user