We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb4296f commit a8db555Copy full SHA for a8db555
test/pkg/github/pr.go
@@ -219,7 +219,7 @@ func (g *PRTest) TearDown(ctx context.Context, t *testing.T) {
219
// Collect GitHub API call information from controller logs
220
g.collectGitHubAPICalls(ctx, t)
221
222
- if g.PRNumber != -1 && g.Provider != nil && g.Logger != nil {
+ if g.PRNumber > 0 && g.Provider != nil && g.Logger != nil {
223
g.Logger.Infof("Closing PR %d", g.PRNumber)
224
state := "closed"
225
_, _, err := g.Provider.Client().PullRequests.Edit(ctx,
0 commit comments