pr-base-commit
errors in attempting to remove a non-existent automerge message
#6650
Labels
pr-base-commit
errors in attempting to remove a non-existent automerge message
#6650
Description
Currently, the
pr-base-commit
feature attempts to remove (view source) the "Merging can be performed automatically" message (see figure 1) from the bottom of a pull request conversations page without verifying the existence of the message.As the message is only shown to users with sufficient privileges to merge the pull request, the code fails with a warning-level
Error <span class="status-meta">
and anError: Expected node matching "Merging can be performed automatically.", found {actual_content}
(see figure 2) when a pull request is viewed by a user who does not have sufficient privileges.How to replicate the issue + URL
Figure 1
The
Merging can be performed automatically
message shown to privileged users before its removalFigure 2
The console error when viewing the page without sufficient privileges
Extension version
23.5.10
Browser(s) used
all supported browsers
The text was updated successfully, but these errors were encountered: