Giter Site home page Giter Site logo

craftamap / bb Goto Github PK

View Code? Open in Web Editor NEW
27.0 27.0 3.0 30.11 MB

inoffical Bitbucket.org command line tool

License: MIT License

Go 100.00%
atlassian atlassian-bitbucket bitbucket bitbucket-api bitbucket-cloud bitbucket-pipelines cli golang hacktoberfest

bb's Introduction

Hi there ๐Ÿ‘‹

I'm Fabian, an open-source enthusiast working at K15t. I'm the author of bb, the pluploader and atlas-gonnect!

๐Ÿ‘ท Check out what I'm currently working on

๐ŸŒฑ My latest projects

๐Ÿ”ญ Latest releases I've contributed to

๐Ÿ“œ My recent blog posts

๐Ÿฆš And here's a list of projects I'm proud of

๐Ÿ“ซ How to reach me

bb's People

Contributors

craftamap avatar muesli avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

bb's Issues

Authentication not working

I ran the bb auth login command and entered the requested information and it looks like the API is now returning a 401 for every request. For some context, listing issues in projects with public issue trackers previously worked, but now does not.

I used go get github.com/craftamap/bb to install bb on Pop!_OS 20.10 with go1.16.5 linux/amd64 managed by goenv.

$ bb repo view

:: An error occurred: 401 Unauthorized
$ bb pr list

:: An error occurred: 401 Unauthorized

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x40 pc=0xccf2ce]

goroutine 1 [running]:
github.com/craftamap/bb/cmd/commands/pr/list.Add.func1(0xc0004c6780, 0x160c2a8, 0x0, 0x0)
        /home/derek/.go/1.16.5/pkg/mod/github.com/craftamap/[email protected]/cmd/commands/pr/list/list.go:60 +0x22e
github.com/spf13/cobra.(*Command).execute(0xc0004c6780, 0x160c2a8, 0x0, 0x0, 0xc0004c6780, 0x160c2a8)
        /home/derek/.go/1.16.5/pkg/mod/github.com/spf13/[email protected]/command.go:856 +0x2c2
github.com/spf13/cobra.(*Command).ExecuteC(0x15be680, 0xc000000180, 0xc00063ff78, 0x407d65)
        /home/derek/.go/1.16.5/pkg/mod/github.com/spf13/[email protected]/command.go:960 +0x375
github.com/spf13/cobra.(*Command).Execute(...)
        /home/derek/.go/1.16.5/pkg/mod/github.com/spf13/[email protected]/command.go:897
github.com/craftamap/bb/cmd.Execute(...)
        /home/derek/.go/1.16.5/pkg/mod/github.com/craftamap/[email protected]/cmd/root.go:79
main.main()
        /home/derek/.go/1.16.5/pkg/mod/github.com/craftamap/[email protected]/main.go:11 +0x32

Improve pipeline command

  • "pipelines list" can list all builds, not just last 10 builds
  • "pipelines list" output includes date/time

See #25

Feature requests: Option to specify repo, list all pipelines, include build date/time

Great cli, thanks for your work ๐Ÿ™Œ Almost what I was looking for.

My wish list:

  • option to specify repo URL on command line
  • "pipelines list" can list all builds, not just last 10 builds
  • "pipelines list" output includes date/time
  • JSON output option
  • Credentials can use env var so not in plain text in file or command line

My dream command ๐Ÿ˜„

bb pipelines list --url [email protected]:me/my-repo.git --all --json

Improve configuration system

We need to add some features to improve what's possible with bb's configuration:

  • #16
    ... like a specific merge strategy for only a specific repository, or a different username.
  • #17
  • #18
    this should propably be git-like:
    bb config [--local|--global] [--get] [value]

Add support for Issues

Believe it or not, there are some of us that use Bitbucket issues instead of Jira for our bug tracker. After looking at the library you are using to talk to Bitbucket, I see that it doesn't support issues either, so I raised ktrysmt/go-bitbucket/issues/133 over there.

Add local configurations

This would allow us to allow users to set certain configurations... like a specific merge strategy for only a specific repository, or a different username.

Remove debug logs

In a recent commit (ce27fbc), we added debug logging.
Currently this debug log is printed whenever the method is used, which makes an unpleasant user experience.

We should either:

  • Remove the debug log altogether
  • only print debug logs if a debug mode of some kind is enabled

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.