Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/class/prsReview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export default class PullRequestReview {
await this.createReview(reviewMessage, ["Requested Changes"], ["Pending"]);
}
}
} else if (this.context.payload.pull_request.author_association === "MEMBER" || this.context.payload.pull_request.author_association === "COLLABORATOR") {
} else if (this.context.payload.review.author_association === "MEMBER" || this.context.payload.review.author_association === "COLLABORATOR") {
if (this.context.payload.review.state === "approved") {
const reviewMessage = `@${this.context.payload.pull_request.user.login} your pull request has been approved by \`[MAINTAINER]\`@${this.context.payload.review.user.login}, please type \`Ready to merge\` for merging`;
if (this.context.payload.pull_request.labels.find((a) => a.name === "Requested Changes")) {
Expand Down Expand Up @@ -144,7 +144,7 @@ export default class PullRequestReview {
await this.createReview(reviewMessage, ["Requested Changes"], ["Pending"]);
}
}
} else if (this.context.payload.pull_request.author_association === "MEMBER" || this.context.payload.pull_request.author_association === "COLLABORATOR") {
} else if (this.context.payload.review.author_association === "MEMBER" || this.context.payload.review.author_association === "COLLABORATOR") {
if (this.context.payload.review.state === "approved") {
const reviewMessage = `@${this.context.payload.pull_request.user.login} Pull request has been approved by \`[MAINTAINER]\`@${this.context.payload.review.user.login}, please type \`Merge\` for merging @${this.context.payload.review.user.login}`;
if (this.context.payload.pull_request.labels.find((a) => a.name === "Requested Changes")) {
Expand Down