-
Notifications
You must be signed in to change notification settings - Fork 0
fix: webhook event phase #35
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR changes the StatusFailure constant value from "failure" to "failed" in the webhook event recorder, likely to align with external webhook receiver expectations or Kubernetes naming conventions.
- Changed
StatusFailureconstant value from "failure" to "failed"
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| StatusSuccess = "success" | ||
| // StatusFailure indicates that an operation or step failed. | ||
| StatusFailure = "failure" | ||
| StatusFailure = "failed" |
Copilot
AI
Dec 19, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The constant value has been changed from "failure" to "failed", but the corresponding test in pkg/webrecorder/recorder_test.go at line 251 still expects the old value "failure". This will cause the test TestWebhookEventConstants to fail. The test's expected value needs to be updated to "failed" to match this change.
| StatusFailure = "failed" | |
| StatusFailure = "failure" |
No description provided.