ktrysmt / Go Bitbucket
Licence: apache-2.0
Bitbucket API library for Golang.
Stars: ✭ 113
Labels
Projects that are alternatives of or similar to Go Bitbucket
Export Pull Requests
Export pull requests and/or issues to a CSV file. Supports GitHub, GitLab, and Bitbucket
Stars: ✭ 68 (-39.82%)
Mutual labels: bitbucket
Integram
Integrate Telegram into your workflow – Trello, Gitlab, Bitbucket and other bots
Stars: ✭ 1,365 (+1107.96%)
Mutual labels: bitbucket
Teamcitytriggerhook
Bitbucket Plugin to Trigger Builds in Teamcity
Stars: ✭ 10 (-91.15%)
Mutual labels: bitbucket
Dashboard
📺 Create your own team dashboard with custom widgets. Built with Next.js, React, styled-components and polished.
Stars: ✭ 1,007 (+791.15%)
Mutual labels: bitbucket
Git Repo
Git-Repo: CLI utility to manage git services from your workspace
Stars: ✭ 818 (+623.89%)
Mutual labels: bitbucket
Android Ci
A docker image for building Android apps. Supports multiple SDK Build Tools.
Stars: ✭ 101 (-10.62%)
Mutual labels: bitbucket
Rubberduck
Better code navigation on GitHub: Usages, Definitions and Files Tree on code pages and pull requests
Stars: ✭ 50 (-55.75%)
Mutual labels: bitbucket
Gittar
🎸 Download and/or Extract git repositories (GitHub, GitLab, BitBucket). Cross-platform and Offline-first!
Stars: ✭ 87 (-23.01%)
Mutual labels: bitbucket
Awesome Wm Widgets
Widgets for Awesome Window Manager
Stars: ✭ 856 (+657.52%)
Mutual labels: bitbucket
Scm Backup
Makes offline backups of your cloud hosted source code repositories
Stars: ✭ 38 (-66.37%)
Mutual labels: bitbucket
Git Copy History
Copy commit history from another repository
Stars: ✭ 84 (-25.66%)
Mutual labels: bitbucket
Trackdown
TrackDown - Issue Tracking with plain Markdown. If you are missing the "git clone" for your tickets from github.com or bitbucket.org, then this is for you. A lightweight Ticketing System for distributed and unconnected small Teams.
Stars: ✭ 10 (-91.15%)
Mutual labels: bitbucket
Ftpbucket
FTPbucket is a PHP script that enables you to sync your BitBucket or GitHub repository with any web-server
Stars: ✭ 99 (-12.39%)
Mutual labels: bitbucket
Node Bitbucket
Bitbucket API client for Browser and Node.js
Stars: ✭ 73 (-35.4%)
Mutual labels: bitbucket
Gitlink
A Jetbrains plugin that opens a local file under Git version control in its remote host using the default browser.
Stars: ✭ 101 (-10.62%)
Mutual labels: bitbucket
Git History Browser Extension
Agrega un botón a la interfáz de archivos de github para ver su historial / Add a button to the github file interface to see its history
Stars: ✭ 87 (-23.01%)
Mutual labels: bitbucket
go-bitbucket
Bitbucket-API library for golang.
Support Bitbucket API v2.0.
And the response type is json format defined Bitbucket API.
- Bitbucket API v2.0 https://developer.atlassian.com/bitbucket/api/2/reference/resource/
- Swagger for API v2.0 https://api.bitbucket.org/swagger.json
Install
go get github.com/ktrysmt/go-bitbucket
Usage
package main
import (
"fmt"
"github.com/ktrysmt/go-bitbucket"
)
func main() {
c := bitbucket.NewBasicAuth("username", "password")
opt := &bitbucket.PullRequestsOptions{
Owner: "your-team",
RepoSlug: "awesome-project",
SourceBranch: "develop",
DestinationBranch: "master",
Title: "fix bug. #9999",
CloseSourceBranch: true,
}
res, err := c.Repositories.PullRequests.Create(opt)
if err != nil {
panic(err)
}
fmt.Println(res)
}
FAQ
Support Bitbucket API v1.0 ?
It does not correspond yet. Because there are many differences between v2.0 and v1.0.
- Bitbucket API v1.0 https://confluence.atlassian.com/bitbucket/version-1-423626337.html
It is officially recommended to use v2.0. But unfortunately Bitbucket Server (formerly: Stash) API is still v1.0. And The API v1.0 covers resources that the v2.0 API and API v2.0 is yet to cover.
Development
Get dependencies
It's using go mod
.
How to testing
Set your available user account to Global Env.
export BITBUCKET_TEST_USERNAME=<your_username>
export BITBUCKET_TEST_PASSWORD=<your_password>
export BITBUCKET_TEST_OWNER=<your_repo_owner>
export BITBUCKET_TEST_REPOSLUG=<your_repo_name>
And just run;
make test
If you want to test individually;
go test -v ./tests/diff_test.go
License
Author
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].