We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a09fc4 commit 566d23cCopy full SHA for 566d23c
1 file changed
.github/workflows/force-merge.yml
@@ -49,12 +49,11 @@ jobs:
49
50
const votes = new Map();
51
for(const comment of comments.data) {
52
- const hasPermissions = comment.author_association === 'MEMBER' || comment.author_association === 'OWNER'
+ const hasVotingRights = comment.author_association === 'MEMBER' || comment.author_association === 'OWNER'
53
const hasCastedVote = comment.body === '/force-merge'
54
55
- if(hasPermissions && hasCastedVote) {
56
- const username = comment.user.login
57
- votes.set(username, comment.author_association);
+ if(hasVotingRights && hasCastedVote) {
+ votes.set(comment.user.login, comment.author_association);
58
}
59
60
0 commit comments