Skip to content

Commit 3e4ab77

Browse files
committed
πŸ› Skip empty PR description.
1 parent 70836de commit 3e4ab77

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

β€ŽGithub_Reply_Comments/Github_Reply_Comments.user.jsβ€Ž

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,15 @@
8383
.querySelector(".comment-body")
8484
.cloneNode(true);
8585

86+
// Skip empty PR description.
87+
if (
88+
commentBody
89+
.querySelector("em")
90+
?.innerText.includes("No description provided.")
91+
) {
92+
return "";
93+
}
94+
8695
// Remove 'Toggle code wrap' buttons from https://greasyfork.org/en/scripts/18789-github-toggle-code-wrap
8796
Array.prototype.forEach.call(
8897
commentBody.querySelectorAll(".ghd-wrap-toggle"),

β€ŽGithub_Reply_Comments/README.mdβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ reply button on an comment.
2323
- version **next**
2424

2525
- πŸ› Ignore "Reference new issue" modals when quoting.
26+
- πŸ› Skip empty PR description.
2627

2728
- version **1.0.6**
2829

0 commit comments

Comments
Β (0)