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

add new const represent pullrequest title #464

Merged
merged 1 commit into from
Jul 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 14 additions & 13 deletions apis/meta/v1alpha1/cloudevent.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,19 +100,20 @@ func (evt *CloudEvent) GetValWithKey(ctx context.Context, path *field.Path) (val
}

const (
CloudEventPrefix = "dev.katanomi.cloudevents"
CloudEventExtGitReference = "reference"
CloudEventExtGitBranch = "branch"
CloudEventExtGitCommitMessage = "commitmessage"
CloudEventExtGitCommitID = "commit"
CloudEventExtGitSourceBranch = "sourcebranch"
CloudEventExtGitTargetBranch = "targetbranch"
CloudEventExtGitTag = "tag"
CloudEventExtAction = "action"
CloudEventExtSender = "sender"
CloudEventExtPullRequestNumber = "number"
CloudEventExtCodeRepository = "repository"
CloudEventExtWebhookType = "webhooktype"
CloudEventPrefix = "dev.katanomi.cloudevents"
CloudEventExtGitReference = "reference"
CloudEventExtGitBranch = "branch"
CloudEventExtGitCommitMessage = "commitmessage"
CloudEventExtGitPullRequestTitle = "pullrequesttitle"
yuzp1996 marked this conversation as resolved.
Show resolved Hide resolved
CloudEventExtGitCommitID = "commit"
CloudEventExtGitSourceBranch = "sourcebranch"
CloudEventExtGitTargetBranch = "targetbranch"
CloudEventExtGitTag = "tag"
CloudEventExtAction = "action"
CloudEventExtSender = "sender"
CloudEventExtPullRequestNumber = "number"
CloudEventExtCodeRepository = "repository"
CloudEventExtWebhookType = "webhooktype"
// CloudEventExtRevisionSubmitter indicates email of revision submitter
CloudEventExtRevisionSubmitter = "revisionsubmitter"

Expand Down
7 changes: 7 additions & 0 deletions apis/meta/v1alpha1/labels_annotations.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,3 +170,10 @@ const (
// UserOwnedAnnotationKey annotated the resource's owner is one user
UserOwnedAnnotationKey = "katanomi.dev/owned.username" // NOSONAR // ignore: "Key" detected here, make sure this is not a hard-coded credential
)

const (
// TrueValue represent string true
TrueValue = "true"
// FalseValue represent string false
FalseValue = "false"
)