Skip to content

Commit 9f9df5b

Browse files
committed
debug
1 parent 2f7544c commit 9f9df5b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/acigithub/pullrequest.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,16 @@ func GetPrInfos(prNumber int, mergeCommitSha string) (standardPrInfos *models.St
7979
for _, comment := range issueComments {
8080
// Must have permission in the repo to create a major version
8181
// MANNEQUIN|NONE https://docs.github.com/en/graphql/reference/enums#commentauthorassociation
82+
log.Println(comment.AuthorAssociation)
83+
log.Println(comment.Body)
84+
log.Println(comment.User)
8285
if strings.Contains("MEMBER|OWNER|CONTRIBUTOR|COLLABORATOR", *comment.AuthorAssociation) {
8386
aciVersionOverride := regexp.MustCompile(`aci_version_override: ([0-9]+\.[0-9]+\.[0-9]+)`)
8487
aciPatchLevel := regexp.MustCompile(`aci_patch_level: ([a-zA-Z]+)`)
8588

8689
if aciVersionOverride.MatchString(*comment.Body) {
8790
version = aciVersionOverride.FindStringSubmatch(*comment.Body)[1]
91+
log.Println("Found a veriosn override")
8892
break
8993
}
9094

0 commit comments

Comments
 (0)