Skip to content

netiquette - Suggest to open discussion if possible#9076

Open
SunsetTechuila wants to merge 3 commits intomainfrom
suggest-disc
Open

netiquette - Suggest to open discussion if possible#9076
SunsetTechuila wants to merge 3 commits intomainfrom
suggest-disc

Conversation

@SunsetTechuila
Copy link
Copy Markdown
Member

@SunsetTechuila SunsetTechuila commented Mar 11, 2026

+ addresses #9028 (comment)

Test URLs

eslint/eslint#20304

#6 (nothing changed)

Screenshot

image image

@SunsetTechuila SunsetTechuila changed the title netiquette - suggest to open discussion if possible netiquette - Suggest to open discussion if possible Mar 11, 2026
Copy link
Copy Markdown
Member

@fregante fregante left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eh, not a fan of discussions in general, but I guess some repo may prefer them.

To be honest I'd wait until someone complains before adding this. What if you add "open discussion" only when issues are disabled?

|| looseParseInt($optional('[aria-label*="other participants"]')?.ariaLabel) > 30
|| elementExists('[data-testid="issue-timeline-load-more-count-front"]')
// TODO: Drop in April 2025; old conversation style
// TODO: Drop in 2026; old conversation style
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Netiquette generally applies to open source products. I'm totally okay with dropping old-GHE support this week.

'.GlobalNav',
// Remove after June 2026
'.js-repo-nav',
].join(',')}`;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Parens missing. This is why I dislike template literals for short strings 🥹

I'd extract this to its own selector helper function, like is('div', 'span') === ':is(div,span)'

@SunsetTechuila
Copy link
Copy Markdown
Member Author

What if you add "open discussion" only when issues are disabled?

Do you know any such repos? I only know about the ones where issues are automatically closed if they were created without prior discussion, but that's not something we can check.

I think this PR should be merged as is or not merged at all.

Copy link
Copy Markdown
Member

@fregante fregante left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's also exclude the feature on GHE, in a separate PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants