Skip to content

Commit f032aea

Browse files
author
EIKE SOEREN VOM BAUER
committed
fix comment permission check
1 parent 6d92ed7 commit f032aea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

service/getBuildInfos.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ func detectIfMajor(issueNumber int) bool {
144144
for _, comment := range issueComments {
145145
// Must have permission in the repo to create a major version
146146
// MANNEQUIN|NONE https://docs.github.com/en/graphql/reference/enums#commentauthorassociation
147-
if strings.Contains(comment.Body, "aci=major") && strings.Contains("MANNEQUIN|NONE", comment.AuthorAssociation) {
147+
if strings.Contains(comment.Body, "aci=major") && !strings.Contains("MANNEQUIN|NONE", comment.AuthorAssociation) {
148148
resBool = true
149149
break
150150
}

0 commit comments

Comments
 (0)