Repository navigation
Conversation
…mand Rocket.Chat only runs a slash command typed in the composer, so the legacy button on pull request links posted /github owner/repo pulls N to the room as a plain message. - Pull request alerts from the webhook now carry a UIKit PR Actions button that opens the PR view in one click. - Pull request links in user messages keep a legacy button, now with respondWithMessage, which puts the command in the composer instead of posting it. The app's own alerts no longer get this button. - A new setting turns both buttons off.
|
|
5 tasks done
austin-rt
marked this pull request as ready for review
October 2, 2026 17:46
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue(s)
Closes #158
Related to #135
Acceptance Criteria fulfillment
Proposed changes (including videos or screenshots)
Rocket.Chat 8.x only runs a slash command typed in the composer. A legacy message attachment button sends its text through the send flow without allowing slash commands, so the PR Actions button posted
/github owner/repo pulls Nto the room.endpoints/githubEndpoints.ts: pull request alerts get a UIKit actions block with a PR Actions button. It uses the existingVIEW_GITHUB_SEARCH_RESULT_PR_CHANGESblock action, which opens the PR view directly. A View on GitHub link button sits next to it.handlers/GithubPRlinkHandler.ts: the button on links in user messages setsmsg_processing_type: RespondWithMessage, which puts the command in the composer so Enter runs it. An app cannot add UIKit blocks to another user's message, so a link button cannot open the view directly.GithubApp.ts: messages sent by the app are skipped, so alerts do not get both buttons.settings/settings.ts,i18n/en.json: one boolean setting per button, on by default.The PR view the button opens, shown here for #144:
Further comments
pull_request.openedalert showed one button and opened the PR view on click. With the alert setting off, the alert had no button. The link button filled the composer and posted nothing.respondWithMessage.settings/settings.tsandi18n/en.jsonlike [FEAT]: Settings to hide individual actions in the pull request view #166, so whichever merges second needs a small rebase.