Bump github.com/ktrysmt/go-bitbucket from 0.9.81 to 0.9.82 (#507)

Bumps [github.com/ktrysmt/go-bitbucket](https://github.com/ktrysmt/go-bitbucket) from 0.9.81 to 0.9.82.
- [Release notes](https://github.com/ktrysmt/go-bitbucket/releases)
- [Commits](https://github.com/ktrysmt/go-bitbucket/compare/v0.9.81...v0.9.82)

---
updated-dependencies:
- dependency-name: github.com/ktrysmt/go-bitbucket
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: gabrie30 <gabrie30@users.noreply.github.com>
This commit is contained in:
dependabot[bot]
2025-04-01 07:40:47 -07:00
committed by GitHub
parent 3d888d7d54
commit f76e429b1f
5 changed files with 14 additions and 9 deletions

2
go.mod
View File

@@ -12,7 +12,7 @@ require (
github.com/fatih/color v1.18.0
github.com/google/go-github/v62 v62.0.0
github.com/korovkin/limiter v0.0.0-20220422174850-01f593e64cf7
github.com/ktrysmt/go-bitbucket v0.9.81
github.com/ktrysmt/go-bitbucket v0.9.82
github.com/mitchellh/go-homedir v1.1.0
github.com/spf13/cobra v1.9.1
github.com/spf13/viper v1.19.0

4
go.sum
View File

@@ -84,8 +84,8 @@ github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
github.com/ktrysmt/go-bitbucket v0.9.81 h1:PQxJsFcGdblDOv5PhFA03uNgXMiJfpLo03oYIUdQ2h0=
github.com/ktrysmt/go-bitbucket v0.9.81/go.mod h1:eWIy5+e1l2eDf9xxwCEmK7oPvNKR91vwYocJWIUQISQ=
github.com/ktrysmt/go-bitbucket v0.9.82 h1:4X0GbY3IQ/W56lshjHKs2Wbpz9CrEXm4/rkgcBPLm8s=
github.com/ktrysmt/go-bitbucket v0.9.82/go.mod h1:eWIy5+e1l2eDf9xxwCEmK7oPvNKR91vwYocJWIUQISQ=
github.com/kyokomi/emoji/v2 v2.2.8 h1:jcofPxjHWEkJtkIbcLHvZhxKgCPl6C7MyjTrD4KDqUE=
github.com/kyokomi/emoji/v2 v2.2.8/go.mod h1:JUcn42DTdsXJo1SWanHh4HKDEyPaR5CqkmoirZZP9qE=
github.com/lucasb-eyer/go-colorful v1.0.3 h1:QIbQXiugsb+q10B+MI+7DI1oQLdmnep86tWFlaaUAac=

View File

@@ -314,6 +314,7 @@ type PullRequestsOptions struct {
States []string `json:"states"`
Query string `json:"query"`
Sort string `json:"sort"`
Draft bool `json:"draft"`
ctx context.Context
}
@@ -665,8 +666,8 @@ func (dk *DeployKeyOptions) WithContext(ctx context.Context) *DeployKeyOptions {
}
type SSHKeyOptions struct {
Owner string `json:"owner"`
Uuid string `json:"uuid"`
Label string `json:"label"`
Key string `json:"key"`
Owner string `json:"owner"`
Uuid string `json:"uuid"`
Label string `json:"label"`
Key string `json:"key"`
}

View File

@@ -242,10 +242,14 @@ func (p *PullRequests) buildPullRequestBody(po *PullRequestsOptions) (string, er
body["message"] = po.Message
}
if po.CloseSourceBranch == true || po.CloseSourceBranch == false {
if po.CloseSourceBranch || !po.CloseSourceBranch {
body["close_source_branch"] = po.CloseSourceBranch
}
if po.Draft {
body["draft"] = true
}
data, err := json.Marshal(body)
if err != nil {
return "", err

2
vendor/modules.txt vendored
View File

@@ -124,7 +124,7 @@ github.com/inconshreveable/mousetrap
# github.com/korovkin/limiter v0.0.0-20220422174850-01f593e64cf7
## explicit; go 1.17
github.com/korovkin/limiter
# github.com/ktrysmt/go-bitbucket v0.9.81
# github.com/ktrysmt/go-bitbucket v0.9.82
## explicit; go 1.14
github.com/ktrysmt/go-bitbucket
# github.com/kyokomi/emoji/v2 v2.2.8