Skip to content

Commit

Permalink
Fixed a bug which made it impossible to create pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
craftamap committed Nov 5, 2020
1 parent 50a3d2f commit 29f9c84
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,28 @@ downloads, and other bitbucket concepts to you the terminal.

# Installation

Currently, the only option to install bb is by compiling it from source.
## General

Make sure you have a working Go environment. Follow the
[Go install instructions](https://golang.org/doc/install).
Check out the (Releases)[https://github.com/craftamap/bb/releases] page where you
can find the latest releases built for every environment.

## Arch / AUR

```bash
yay bbcli-git
```

## Using `go get`
Make sure you have a working Go environment. Follow the
[Go install instructions](https://golang.org/doc/install).

```bash
go get github.com/craftamap/bb
```

## Building from source
Make sure you have a working Go environment. Follow the
[Go install instructions](https://golang.org/doc/install).

```bash
git clone https://github.com/craftamap/bb.git
Expand Down
6 changes: 3 additions & 3 deletions internal/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ func (c Client) GetDefaultReviewers(repoOrga string, repoSlug string) (*DefaultR
defer response.Body.Close()

defaultReviewers := DefaultReviewers{}
err = json.NewDecoder(response.Body).Decode(&defaultReviewers)
if err != nil {
_ = json.NewDecoder(response.Body).Decode(&defaultReviewers)
/*if err != nil {
return nil, err
}
}*/

return &defaultReviewers, nil
}

0 comments on commit 29f9c84

Please sign in to comment.