Skip to content

Commit

Permalink
Debug.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit91 committed Feb 26, 2024
1 parent a2e06da commit 271b8a5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ require (
sigs.k8s.io/yaml v1.4.0
)

require github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc

require (
github.com/Microsoft/go-winio v0.6.1 // indirect
github.com/cyphar/filepath-securejoin v0.2.4 // indirect
Expand Down
5 changes: 5 additions & 0 deletions pkg/webhooks/github/actions/aggregate_releases.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (

"github.com/Masterminds/semver/v3"
"github.com/atedja/go-multilock"
"github.com/davecgh/go-spew/spew"
v3 "github.com/google/go-github/v57/github"
"github.com/metal-stack/metal-lib/pkg/pointer"
"github.com/metal-stack/metal-robot/pkg/clients"
Expand Down Expand Up @@ -245,9 +246,13 @@ func isReleaseFreeze(ctx context.Context, client *v3.Client, pr *v3.PullRequest,
return true, fmt.Errorf("unable to list pull request comments: %w", err)
}

spew.Dump(comments)

for _, comment := range comments {
comment := comment

spew.Dump(comment)

if ok := searchForCommandInComment(pointer.SafeDeref(comment.Body), IssueCommentReleaseFreeze); ok {
return true, nil
}
Expand Down

0 comments on commit 271b8a5

Please sign in to comment.