Skip to content
Merged
Changes from 1 commit
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
Next Next commit
Create Rep Ref Options type
  • Loading branch information
codeaucafe committed Jul 27, 2021
commit 99819146d31b433b26a86d9739f2ff4e2deb6c13
15 changes: 15 additions & 0 deletions bitbucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,21 @@ type RepositoryBlobWriteOptions struct {
Branch string `json:"branch"`
}

// RepositoryRefOptions represents the options for describing a repository's refs (i.e.
// tags and branches). The field BranchFlg is a boolean that is indicates whether a specific
// RepositoryRefOptions instance is meant for Branch specific set of api methods.
type RepositoryRefOptions struct {
Owner string `json:"owner"`
RepoSlug string `json:"repo_slug"`
Query string `json:"query"`
Sort string `json:"sort"`
PageNum int `json:"page"`
Pagelen int `json:"pagelen"`
MaxDepth int `json:"max_depth"`
Name string `json:"name"`
BranchFlg bool
}

type RepositoryBranchOptions struct {
Owner string `json:"owner"`
RepoSlug string `json:"repo_slug"`
Expand Down