Skip to content

Commit

Permalink
feat/add-bb-token-arg-to-apply
Browse files Browse the repository at this point in the history
  • Loading branch information
motatoes committed Feb 20, 2024
1 parent 8f91482 commit 8bc265e
Show file tree
Hide file tree
Showing 3 changed files with 103 additions and 10 deletions.
1 change: 1 addition & 0 deletions cli/cmd/digger/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ var applyCmd = &cobra.Command{
func init() {
flags := []pflag.Flag{
{Name: "github-token", Usage: "Github token (for github reporter)"},
{Name: "bitbucket-token", Usage: "Bitbucket token (for bitbucket reporter)"},
{Name: "repo-namespace", Usage: "The namespace of this repo"},
{Name: "actor", Usage: "The actor of this command"},
{Name: "reporter", Usage: "The reporter to use (defaults to stdout)"},
Expand Down
4 changes: 2 additions & 2 deletions cli/pkg/bitbucket/bitbucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type BitbucketAPI struct {
RepoName string
}

func (b *BitbucketAPI) sendRequest(method, url string, body []byte) (*http.Response, error) {
func (b BitbucketAPI) sendRequest(method, url string, body []byte) (*http.Response, error) {
client := &http.Client{}
req, err := http.NewRequest(method, url, bytes.NewReader(body))
if err != nil {
Expand Down Expand Up @@ -463,7 +463,7 @@ func (b BitbucketAPI) GetBranchName(prNumber int) (string, error) {
return pullRequest.Source.Branch.Name, nil
}

func (svc *BitbucketAPI) SetOutput(prNumber int, key string, value string) error {
func (svc BitbucketAPI) SetOutput(prNumber int, key string, value string) error {
//TODO implement me
return nil
}
Expand Down
Loading

0 comments on commit 8bc265e

Please sign in to comment.