mirror of
https://github.com/harness/drone.git
synced 2025-05-02 13:40:22 +00:00
This change is adding the List Tags API. To do so, a few changes were necessary: - Refactor List Branches on giteaAdapter / repo_service - Expose WalkReferences via giteaAdapter
32 lines
953 B
Go
32 lines
953 B
Go
// Copyright 2022 Harness Inc. All rights reserved.
|
|
// Use of this source code is governed by the Polyform Free Trial License
|
|
// that can be found in the LICENSE.md file for this repository.
|
|
|
|
package types
|
|
|
|
import "github.com/harness/gitness/types/enum"
|
|
|
|
// CommitFilter stores commit query parameters.
|
|
type CommitFilter struct {
|
|
Page int `json:"page"`
|
|
Size int `json:"size"`
|
|
}
|
|
|
|
// BranchFilter stores branch query parameters.
|
|
type BranchFilter struct {
|
|
Query string `json:"query"`
|
|
Sort enum.BranchSortOption `json:"sort"`
|
|
Order enum.Order `json:"order"`
|
|
Page int `json:"page"`
|
|
Size int `json:"size"`
|
|
}
|
|
|
|
// TagFilter stores commit tag query parameters.
|
|
type TagFilter struct {
|
|
Query string `json:"query"`
|
|
Sort enum.TagSortOption `json:"sort"`
|
|
Order enum.Order `json:"order"`
|
|
Page int `json:"page"`
|
|
Size int `json:"size"`
|
|
}
|