Skip to content

CommitRef struct is wrong #56

Description

@superb-eddie

First off, this project has been a life saver! I started writing something similar for my small project but that started getting too big. I ran into a bit of an issue try to get commit refs

According to the docs the response from GET /projects/:id/repository/commits/:sha/refs looks like this:

[
  {"type": "branch", "name": "'test'"},
  {"type": "branch", "name": "add-balsamiq-file"},
  {"type": "branch", "name": "wip"},
  {"type": "tag", "name": "v1.1.0"}
]

Which is not the same as CommitRef{} :

type CommitRef struct {
	Id   string `json:"id" yaml:"id"`
	Sha  string `json:"sha" yaml:"sha"`
	Type string `json:"type" yaml:"type"`
}

I'd be happy to make a pull request with an accurate struct. Thanks! :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions