summaryrefslogtreecommitdiff
path: root/source/features/clean-conversation-headers.tsx
diff options
context:
space:
mode:
authorGravatar yakov116 <16872793+yakov116@users.noreply.github.com> 2020-08-19 21:52:22 -0400
committerGravatar GitHub <noreply@github.com> 2020-08-20 02:52:22 +0100
commit4248fcf8a430093077c5109e6e5f675c6a068045 (patch)
treee9009e6fd4fe7514e2a671262ba9d07dfbf07f95 /source/features/clean-conversation-headers.tsx
parent1fb0f872c8d8739f3e6108c633dce3d31b6e4dfd (diff)
downloadrefined-github-4b19860eaba416d8c20c979b4a5a06c0b597be2d.tar.gz
refined-github-4b19860eaba416d8c20c979b4a5a06c0b597be2d.tar.zst
refined-github-4b19860eaba416d8c20c979b4a5a06c0b597be2d.zip
Lint (#3478)20.8.20
Diffstat (limited to 'source/features/clean-conversation-headers.tsx')
-rw-r--r--source/features/clean-conversation-headers.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/features/clean-conversation-headers.tsx b/source/features/clean-conversation-headers.tsx
index 2c89ea5b..08189264 100644
--- a/source/features/clean-conversation-headers.tsx
+++ b/source/features/clean-conversation-headers.tsx
@@ -20,8 +20,9 @@ function initIssue(): void {
}
function initPR(): void {
- observe('.gh-header-meta .flex-auto', {
+ observe('.gh-header-meta .flex-auto:not(.rgh-clean-conversation-header)', {
add(byline) {
+ byline.classList.add('rgh-clean-conversation-header');
const isMerged = select.exists('#partial-discussion-header [title="Status: Merged"]');
const isSameAuthor = select('.js-discussion > .TimelineItem:first-child .author')?.textContent === select('.author', byline)!.textContent;
const baseBranch = select('.commit-ref:not(.head-ref)', byline)!;