Skip to content

Commit

Permalink
use correct protobuf struct tag options
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Currah <[email protected]>
  • Loading branch information
ryancurrah committed Dec 1, 2023
1 parent 461fbe8 commit 37958b8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/apis/eventsource/v1alpha1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -1071,14 +1071,14 @@ type BitbucketServerEventSource struct {
DeprecatedRepositorySlug string `json:"repositorySlug,omitempty" protobuf:"bytes,3,opt,name=repositorySlug"`
// Projects holds a list of projects for which integration needs to set up, this will add the webhook to all repositories in the project.
// +optional
Projects []string `json:"projects,omitempty" protobuf:"bytes,4,opt,name=projects"`
Projects []string `json:"projects,omitempty" protobuf:"bytes,4,rep,name=projects"`
// Repositories holds a list of repositories for which integration needs to set up.
// +optional
Repositories []BitbucketServerRepository `json:"repositories,omitempty" protobuf:"bytes,5,opt,name=repositories"`
Repositories []BitbucketServerRepository `json:"repositories,omitempty" protobuf:"bytes,5,rep,name=repositories"`
// Events are bitbucket event to listen to.
// Refer https://confluence.atlassian.com/bitbucketserver/event-payload-938025882.html
// +optional
Events []string `json:"events" protobuf:"bytes,6,opt,name=events"`
Events []string `json:"events" protobuf:"bytes,6,rep,name=events"`
// SkipRefsOnOpenPullRequest bypasses the event repo:refs_changed whenever there's an associated open pull request.
// This helps in optimizing the event handling process by avoiding unnecessary triggers for reference changes that are already part of a pull request under review.
// +optional
Expand Down Expand Up @@ -1107,7 +1107,7 @@ type BitbucketServerRepository struct {
// ProjectKey is the key of project for which integration needs to set up.
ProjectKey string `json:"projectKey" protobuf:"bytes,1,opt,name=projectKey"`
// RepositorySlug is the slug of the repository for which integration needs to set up.
RepositorySlug string `json:"repositorySlug" protobuf:"bytes,2,rep,name=repositorySlug"`
RepositorySlug string `json:"repositorySlug" protobuf:"bytes,2,opt,name=repositorySlug"`
}

func (b BitbucketServerEventSource) ShouldCreateWebhooks() bool {
Expand Down

0 comments on commit 37958b8

Please sign in to comment.