Skip to content

Commit bd5c9a4

Browse files
committed
Fake PR for testing - Add AwesomeFormer model (#17288)
* Black preview * Fixup too! * Fix check copies * Use the same version as the CI * Bump black
1 parent 21067e5 commit bd5c9a4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

utils/notification_service.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,6 +749,7 @@ def add_path(self, path: str, gpu: str = None):
749749
assert ci_url is not None
750750
ci_title = ci_title.strip().split("\n")[0].strip()
751751

752+
merged_by = None
752753
# Find the PR number (if any) and change the url to the actual PR page.
753754
numbers = pr_number_re.findall(ci_title)
754755
if len(numbers) > 0:
@@ -759,7 +760,12 @@ def add_path(self, path: str, gpu: str = None):
759760
ci_author = ci_details["user"]["login"]
760761
ci_url = f"https://github.com/huggingface/transformers/pull/{pr_number}"
761762

762-
ci_title = f"<{ci_url}|{ci_title} - by {ci_author}>"
763+
merged_by = ci_details["merged_by"]["login"]
764+
765+
if merged_by is None:
766+
ci_title = f"<{ci_url}|{ci_title} | Author: {ci_author}>"
767+
else:
768+
ci_title = f"<{ci_url}|{ci_title} | Author: {ci_author} | Merged by: {merged_by}>"
763769

764770
else:
765771
ci_title = ""

0 commit comments

Comments
 (0)