Skip to content
This repository was archived by the owner on Mar 14, 2023. It is now read-only.

Commit fb5696a

Browse files
authored
Merge pull request #155 from davidalber/warning-emoji
Use warning emoji instead of external image
2 parents c38140d + da38b1f commit fb5696a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

highfive/newpr.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def welcome_msg(reviewer, config):
4646
link = "https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md"
4747
return raw_welcome % (text, link)
4848

49-
warning_summary = '<img src="http://www.joshmatthews.net/warning.svg" alt="warning" height=20> **Warning** <img src="http://www.joshmatthews.net/warning.svg" alt="warning" height=20>\n\n%s'
49+
warning_summary = ':warning: **Warning** :warning:\n\n%s'
5050
unsafe_warning_msg = 'These commits modify **unsafe code**. Please review it carefully!'
5151
submodule_warning_msg = 'These commits modify **submodules**.'
5252
surprise_branch_warning = "Pull requests are usually filed against the %s branch for this repo, but this one is against %s. Please double check that you specified the right target!"

highfive/tests/test_newpr.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ def test_unexpected_branch(self):
674674
)
675675
self.mocks['modifies_submodule'].assert_called_with(self.diff)
676676

677-
expected_warning = """<img src="http://www.joshmatthews.net/warning.svg" alt="warning" height=20> **Warning** <img src="http://www.joshmatthews.net/warning.svg" alt="warning" height=20>
677+
expected_warning = """:warning: **Warning** :warning:
678678
679679
* Pull requests are usually filed against the master branch for this repo, but this one is against something-else. Please double check that you specified the right target!"""
680680
self.mocks['post_comment'].assert_called_with(
@@ -692,7 +692,7 @@ def test_modifies_submodule(self):
692692
)
693693
self.mocks['modifies_submodule'].assert_called_with(self.diff)
694694

695-
expected_warning = """<img src="http://www.joshmatthews.net/warning.svg" alt="warning" height=20> **Warning** <img src="http://www.joshmatthews.net/warning.svg" alt="warning" height=20>
695+
expected_warning = """:warning: **Warning** :warning:
696696
697697
* These commits modify **submodules**."""
698698
self.mocks['post_comment'].assert_called_with(
@@ -712,7 +712,7 @@ def test_unexpected_branch_modifies_submodule(self):
712712
)
713713
self.mocks['modifies_submodule'].assert_called_with(self.diff)
714714

715-
expected_warning = """<img src="http://www.joshmatthews.net/warning.svg" alt="warning" height=20> **Warning** <img src="http://www.joshmatthews.net/warning.svg" alt="warning" height=20>
715+
expected_warning = """:warning: **Warning** :warning:
716716
717717
* Pull requests are usually filed against the master branch for this repo, but this one is against something-else. Please double check that you specified the right target!
718718
* These commits modify **submodules**."""

0 commit comments

Comments
 (0)