Skip to content

quick-comment-edit - Fix misplacement in PRs #9773

Open
NvanWeeghel wants to merge 1 commit into
refined-github:mainfrom
NvanWeeghel:quick-comment-edit-scope-to-comments
Open

quick-comment-edit - Fix misplacement in PRs #9773
NvanWeeghel wants to merge 1 commit into
refined-github:mainfrom
NvanWeeghel:quick-comment-edit-scope-to-comments

Conversation

@NvanWeeghel

@NvanWeeghel NvanWeeghel commented Jul 2, 2026

Copy link
Copy Markdown

Scope the quick-comment-edit feature to only comments and description

Closes #9771

Test URLs

For moderators of this repo would the page you're currently on work just fine

Screenshot

Removes the edit icon from the PR checks

image

While still maintaining the quick edit on description and comments

image

(removed the user from the screenshot for privacy reasons)

image

And issues also still keep working

image

P.S. This feature has only been gone less than a day, and i already miss it. Thanks for all the work you guys are doing to make our lives easier on GitHub :)

@github-actions github-actions Bot added the bug label Jul 2, 2026
Comment thread source/features/quick-comment-edit.tsx Outdated
observe(
(isUserModerator ? '' : 'div[class*="viewerDidAuthor"] ')
reactCommentSelector + ' '
+ (isUserModerator ? '' : 'div[class*="viewerDidAuthor"] ')

@SunsetTechuila SunsetTechuila Jul 3, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

.react-issue-comment div[class*="viewerDidAuthor"] isn't a correct selector. This breaks editing your own comments on issues on repos you don't moderate

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Here is my suggestion:

	observe(
		'div:is([class^="IssueBodyHeader"], [data-testid="comment-header"])'
		+ (isUserModerator ? '' : '[class*="viewerDidAuthor" i]')
		+ ' '
		+ 'button[data-component="IconButton"]:has(> .octicon-kebab-horizontal)',
		addQuickEditButton,
		{signal},
	);

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Ah i didnt see that, let me check if this works.

@fregante fregante changed the title fix quick-comment-edit feature to not apply to PR checks quick-comment-edit - Fix misplacement in PR checks Jul 3, 2026
@NvanWeeghel

Copy link
Copy Markdown
Author

test comment

@NvanWeeghel NvanWeeghel force-pushed the quick-comment-edit-scope-to-comments branch from f3b5e71 to c8cfbbd Compare July 3, 2026 06:30
@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown

Please avoid force-pushing to this PR. It makes it harder for reviewers to track what changed since the last review.

Just push new commits on top of the branch instead — PRs are squashed on merge, so the commit history doesn't need to be clean.

@NvanWeeghel

NvanWeeghel commented Jul 3, 2026

Copy link
Copy Markdown
Author

Ah sorry for the force push, just a habit that i also do on other branches 😅

@fregante fregante changed the title quick-comment-edit - Fix misplacement in PR checks quick-comment-edit - Fix misplacement in PRs Jul 4, 2026
@fregante

fregante commented Jul 4, 2026

Copy link
Copy Markdown
Member

On main I'm also seeing in the Files tab, does this PR fix it?

Screenshot

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

Labels

Development

Successfully merging this pull request may close these issues.

quick-comment-edit also appears on PR checks

3 participants