You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Hi @aks681, this PR is ready to be merged. Author of this PR does not have permissions to merge this PR. Before you merge it, please make sure that there are no pending comments that require action from the author's end. Thanks!"
However, this PR is authored by Rijuta, who is a member of the Oppia organization and does indeed have permissions to merge PRs. So, this seems like a bug with Oppiabot.
Observed behavior
Oppiabot posts the following message erroneously: "Hi @aks681, this PR is ready to be merged. Author of this PR does not have permissions to merge this PR. Before you merge it, please make sure that there are no pending comments that require action from the author's end. Thanks!"
Expected behavior
Oppiabot should not post this message because the PR author has permissions to merge the PR.
The text was updated successfully, but these errors were encountered:
Previously, this message was located in the spec/checkPullRequestReviewSpec.js file:
Current Code
Now, the relevant section of the code looks as follows:
// Check if author can merge PR. All members can merge the pull request.constauthorCanMerge=awaitutilityModule.hasMergePrivilege(context,pullRequest.user.login);letcommentBody;if(authorCanMerge){// Ping and assign author.commentBody='Hi @'+pullRequest.user.login+', this PR is ready to be merged. Please address any remaining '+'comments prior to merging, and feel free to merge this PR '+"once the CI checks pass and you're happy with it. Thanks!";}else{// Ping and assign author.commentBody='Hi @'+pullRequest.user.login+', this PR is ready to be merged. '+'Please address any remaining comments prior to merging, and feel free '+'to ask someone to merge your PR once the CI checks pass and '+'you\'re happy with it. Thanks!';}
Observations
The if and else blocks appear almost identical. Ideally, there should be a difference to avoid redundancy.
Describe the bug
On oppia/oppia#12620 (comment), Oppiabot is saying:
"Hi @aks681, this PR is ready to be merged. Author of this PR does not have permissions to merge this PR. Before you merge it, please make sure that there are no pending comments that require action from the author's end. Thanks!"
However, this PR is authored by Rijuta, who is a member of the Oppia organization and does indeed have permissions to merge PRs. So, this seems like a bug with Oppiabot.
Observed behavior
Oppiabot posts the following message erroneously: "Hi @aks681, this PR is ready to be merged. Author of this PR does not have permissions to merge this PR. Before you merge it, please make sure that there are no pending comments that require action from the author's end. Thanks!"
Expected behavior
Oppiabot should not post this message because the PR author has permissions to merge the PR.
The text was updated successfully, but these errors were encountered: