Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix failing lighthouse builds #350

Merged
merged 1 commit into from
Sep 28, 2022

Conversation

ankitm123
Copy link
Member

Signed-off-by: ankitm123 [email protected]

@ankitm123
Copy link
Member Author

Lighthouse builds are failing atm with the error:

# github.com/jenkins-x/lighthouse/pkg/webhook
--
  |   |   |   | pkg/webhook/events.go:69:16: cannot use ic.Issue.PullRequest (variable of type scm.PullRequest) as type bool in struct literal
  |   |   |   | pkg/webhook/events.go:82:5: non-boolean condition in if statement
  |   |   |   | make: *** [Makefile:76: build-webhooks-linux] Error 2

Passing a pointer to a struct, will help in checking if it's nil and determine if it's a PR or not.

@ankitm123 ankitm123 marked this pull request as ready for review September 28, 2022 01:33
@ankitm123
Copy link
Member Author

@garethjevans probably worth running integration tests to be sure this works?

@garethjevans
Copy link
Member

@ankitm123 thanks for the heads up, i'll get the tests run today

@garethjevans
Copy link
Member

/lgtm

@jenkins-x-bot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: garethjevans

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@jenkins-x-bot jenkins-x-bot merged commit 9201386 into jenkins-x:main Sep 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants