Giter Club home page Giter Club logo

go-bitbucket-v1's People

Contributors

appleboy avatar brainexe avatar danilopopeye avatar dependabot[bot] avatar eyaldelarea avatar gfleury avatar hmalphettes avatar imkh avatar mlosicki avatar mpreu avatar nikos912000 avatar polothy avatar ribaptista avatar sanketjpatel avatar smacker avatar syndicut avatar tomcruise81 avatar yahavi avatar yareda 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

go-bitbucket-v1's Issues

No way to create a branch

CreateBranch in DefaultAPI does not have a way to pass any post parameters. Am I missing something or it's not a full implementation as the swagger files suggest no input post parameters as well.

No API exposed to update a PR

The function Update_50 has the description that it should be able to do it but it doesn't take any arguments so I'm thinking that if Update_50 is autogenerated, then maybe the generation for that method is broken..

Some tests are failing locally but not with Travis CI

As part of a previous pull request I encountered a weird behaviour with some of the tests. This ticket is created as a result of the response by @gfleury.

I run go version go1.13.6 linux/amd64 on Fedora 31.

Running the tests locally using go testresults in (latest master):

--- FAIL: TestGetWebhooksResponse (0.00s)
    --- FAIL: TestGetWebhooksResponse/Empty_list (0.00s)
        api_response_test.go:293: GetWebhooksResponse() = [], want []
--- FAIL: TestGetUsersPermissionResponse (0.00s)
    --- FAIL: TestGetUsersPermissionResponse/Empty_list (0.00s)
        api_response_test.go:377: GetUsersPermissionResponse() = [], want []

On the local side these errors can be fixed easily e.g. with replacing the test for an empty slice with nil as in the following example:

func TestGetWebhooksResponse(t *testing.T) {
	type args struct {
		r *APIResponse
	}
	tests := []struct {
		...
	}{
		{
			name: "Empty list",
                        ....
                        // Here we change the test
			want:    []Webhook{} => nil,
			wantErr: false,
		},

Unfortunately this fix does not apply when running the tests inside Travis CI. Travis CI is failing with the exact same error message as above. So I am in a situation where I can have successfully running tests either here or locally.

The initial guess was that the used go version here (1.11) was somehow part of this behaviour. But a test with an updated Travis CI go version did not fix this.

I was not able to track down the issue by now. I may have to cross reference the tests with a second go setup to exclude the possibility to have a problem on my side. (I currently doubt to see a difference with that)

Support all permissions options for access tokens

Current DefaultApi.CreateAccessToken method supports only REPO_ADMIN and PROJECT_READ permissions.
It would be useful to support all other permissions: REPO_READ, REPO_WRITE, PROJECT_ADMIN, PROJECT_WRITE.

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.