mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	integrations: Use consistent code boundaries in GitHub notifications.
In other templates we have used "~~~" to start and end a code block.
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							a4d1211ec6
						
					
				
				
					commit
					22fa5a7ee3
				
			@@ -435,9 +435,9 @@ Check [randscape](http://github.com/github/hello-world/runs/4) completed (succes
 | 
			
		||||
        expected_topic = "team Testing"
 | 
			
		||||
        expected_message = """\
 | 
			
		||||
**Hypro999** changed the team description to:
 | 
			
		||||
```quote
 | 
			
		||||
\n~~~ quote
 | 
			
		||||
A temporary team so that I can get some webhook fixtures!
 | 
			
		||||
```"""
 | 
			
		||||
~~~"""
 | 
			
		||||
        self.check_webhook("team__edited_description", expected_topic, expected_message)
 | 
			
		||||
 | 
			
		||||
    def test_team_edited_name(self) -> None:
 | 
			
		||||
@@ -575,9 +575,9 @@ A temporary team so that I can get some webhook fixtures!
 | 
			
		||||
        self.assertTrue(stack_info)
 | 
			
		||||
 | 
			
		||||
    def test_discussion_msg(self) -> None:
 | 
			
		||||
        expected_message = "Codertocat created [discussion #90](https://github.com/baxterthehacker/public-repo/discussions/90) in General:\n```quote\n### Welcome to discussions!\nWe're glad to have you here!\n```"
 | 
			
		||||
        expected_message = "Codertocat created [discussion #90](https://github.com/baxterthehacker/public-repo/discussions/90) in General:\n\n~~~ quote\n### Welcome to discussions!\nWe're glad to have you here!\n~~~"
 | 
			
		||||
        self.check_webhook("discussion", TOPIC_DISCUSSION, expected_message)
 | 
			
		||||
 | 
			
		||||
    def test_discussion_comment_msg(self) -> None:
 | 
			
		||||
        expected_message = "Codertocat [commented](https://github.com/baxterthehacker/public-repo/discussions/90#discussioncomment-544078) on [discussion #90](https://github.com/baxterthehacker/public-repo/discussions/90):\n```quote\nI have so many questions to ask you!\n```"
 | 
			
		||||
        expected_message = "Codertocat [commented](https://github.com/baxterthehacker/public-repo/discussions/90#discussioncomment-544078) on [discussion #90](https://github.com/baxterthehacker/public-repo/discussions/90):\n\n~~~ quote\nI have so many questions to ask you!\n~~~"
 | 
			
		||||
        self.check_webhook("discussion_comment", TOPIC_DISCUSSION, expected_message)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user