github.com/zppinho/prow@v0.0.0-20240510014325-1738badeb017/pkg/git/types/types.go (about)

     1  /*
     2  Copyright 2022 The Kubernetes Authors.
     3  
     4  Licensed under the Apache License, Version 2.0 (the "License");
     5  you may not use this file except in compliance with the License.
     6  You may obtain a copy of the License at
     7  
     8      http://www.apache.org/licenses/LICENSE-2.0
     9  
    10  Unless required by applicable law or agreed to in writing, software
    11  distributed under the License is distributed on an "AS IS" BASIS,
    12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  See the License for the specific language governing permissions and
    14  limitations under the License.
    15  */
    16  
    17  // Package types stores types used by all git clients
    18  package types
    19  
    20  // PullRequestMergeType enumerates the types of merges used by Prow for either GitHub or Gerrit API
    21  type PullRequestMergeType string
    22  
    23  // Possible types of merges for the GitHub merge API
    24  const (
    25  	MergeMerge       PullRequestMergeType = "merge"
    26  	MergeRebase      PullRequestMergeType = "rebase"
    27  	MergeSquash      PullRequestMergeType = "squash"
    28  	MergeIfNecessary PullRequestMergeType = "ifNecessary"
    29  )