mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	integrations: Send GitHub pull request comment alerts to correct topic.
Pull request comment alerts were previously sent to a topic for an issue, which resulted in two different topics for the same PR. Fixes: #26086. Co-authored-by: Lauryn Menard <lauryn@zulip.com>
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							7ebf572b8e
						
					
				
				
					commit
					d2589a5bd1
				
			@@ -146,9 +146,8 @@ class GitHubWebhookTest(WebhookTestCase):
 | 
			
		||||
        self.check_webhook("issue_comment", expected_topic, expected_message)
 | 
			
		||||
 | 
			
		||||
    def test_issue_comment_pull_request_comment_msg(self) -> None:
 | 
			
		||||
        expected_topic = "public-repo / issue #1 Update the README with new informa..."
 | 
			
		||||
        expected_message = "sbansal1999 [commented](https://github.com/sbansal1999/public-repo/pull/1#issuecomment-1631445420) on [issue #1](https://github.com/sbansal1999/public-repo/pull/1):\n\n~~~ quote\nSome comment\n~~~"
 | 
			
		||||
        self.check_webhook("issue_comment__pull_request_comment", expected_topic, expected_message)
 | 
			
		||||
        self.check_webhook("issue_comment__pull_request_comment", TOPIC_PR, expected_message)
 | 
			
		||||
 | 
			
		||||
    def test_issue_msg(self) -> None:
 | 
			
		||||
        expected_message = "baxterthehacker opened [issue #2](https://github.com/baxterthehacker/public-repo/issues/2):\n\n~~~ quote\nIt looks like you accidentally spelled 'commit' with two 't's.\n~~~"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user