How to list BitBucket repositories with sparrow
Listing BitBucket repositories could be annoying task even though BitBucket exposes a Rest API for this, and the reason for it is pagination - BitBucket sends result back spited by pages, so you need to request a next page till the end. This is hard to automate and prevent me form using BitBucket API directly.
Well, I have dropped a small sparrow plugin to handle with this task. At least it works for me. It lists ( in plain text format ) all the repositories for given project and team. There a lot of option of plugin you will find at documentation but the usual workflow is:
$ sparrow plg install bitbucket-repo-list
Here you lists repositories for given project and team. You should supply your Bitbucket credentials to request team/project information:
$ sparrow plg run bitbucket-repo-list \ --param login=superuser --param password=keep-it-secret \ --param team=heroes \ --param project=humans
That is it. Hopefully will be useful for someone deal with BitBucket repositories.