Skip to content

Commit

Permalink
add releases
Browse files Browse the repository at this point in the history
  • Loading branch information
simonfuhrer committed Jun 16, 2020
1 parent 6bf7517 commit 1db2e5d
Show file tree
Hide file tree
Showing 7 changed files with 82 additions and 43 deletions.
28 changes: 28 additions & 0 deletions .github/labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
- name: added-feature
description: for new features in the changelog.
color: a2eeef
- name: changed
description: for changes in existing functionality in the changelog.
color: a2eeef
- name: deprecated
description: for soon-to-be removed features in the changelog.
color: e4e669
- name: removed
description: for now removed features in the changelog.
color: e4e669
- name: bugfix
description: for any bug fixes in the changelog.
color: d73a4a
- name: security
description: for vulnerabilities in the changelog.
color: dd4739
- name: bug
description: Something isn't working in this issue.
color: d73a4a
- name: enhancement
description: New feature request in this issue.
color: a2eeef
- name: good first issue
description: Low hanging fruit.
color: 7057ff

20 changes: 20 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name-template: 'v$NEXT_PATCH_VERSION'
tag-template: 'v$NEXT_PATCH_VERSION'
categories:
- title: '🚀 Added'
label: 'added-feature'
- title: '🧰 Changed'
label: 'changed'
- title: "⚠️ Deprecated"
label: "deprecated"
- title: "⚠️ Removed"
label: "removed"
- title: '🐛 Bug Fixes'
label: 'bugfix'
- title: "⚠️ Security"
label: "security"
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
no-changes-template: "- No changes"
template: |
## Changes
$CHANGES
17 changes: 17 additions & 0 deletions .github/workflows/label-sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Sync labels
on:
push:
branches:
- master
paths:
- .github/labels.yml
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: micnncim/action-label-syncer@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
manifest: .github/labels.yml
16 changes: 16 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Release Drafter

on:
push:
branches:
- master

jobs:
update_release_draft:
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v5
with:
config-name: release-drafter.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16 changes: 0 additions & 16 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
"reflect"
"strings"

"github.com/sirupsen/logrus"
"github.com/tecbiz-ch/nutanix-go-sdk/schema"
)

Expand Down Expand Up @@ -138,11 +137,6 @@ func (c *Client) Do(r *http.Request, v interface{}) error {
}

func checkResponse(r *http.Response) error {
logrus.WithFields(logrus.Fields{
"status": r.StatusCode,
"url": r.Request.URL,
}).Trace("Response")

if c := r.StatusCode; c >= 200 && c <= 299 && r.Request.Method == http.MethodDelete {
return nil
}
Expand Down Expand Up @@ -261,11 +255,6 @@ func (c *Client) newV3Request(ctx context.Context, method string, url *url.URL,

req = req.WithContext(ctx)

logrus.WithFields(logrus.Fields{
"url": req.URL,
"method": req.Method,
}).Trace("newV3Request")

return req, nil
}

Expand Down Expand Up @@ -306,11 +295,6 @@ func (c *Client) newV2Request(ctx context.Context, method string, url *url.URL,

req = req.WithContext(ctx)

logrus.WithFields(logrus.Fields{
"url": req.URL,
"method": req.Method,
}).Trace("NewV2Request")

return req, nil
}

Expand Down
5 changes: 1 addition & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,4 @@ module github.com/tecbiz-ch/nutanix-go-sdk

go 1.14

require (
github.com/google/uuid v1.1.1
github.com/sirupsen/logrus v1.6.0
)
require github.com/google/uuid v1.1.1
23 changes: 0 additions & 23 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,25 +1,2 @@
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/google/uuid v1.1.1 h1:Gkbcsh/GbpXz7lPftLA3P6TYMwjCLYm83jiFQZF/3gY=
github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/k0kubun/colorstring v0.0.0-20150214042306-9440f1994b88 h1:uC1QfSlInpQF+M0ao65imhwqKnz3Q2z/d8PWZRMQvDM=
github.com/k0kubun/colorstring v0.0.0-20150214042306-9440f1994b88/go.mod h1:3w7q1U84EfirKl04SVQ/s7nPm1ZPhiXd34z40TNz36k=
github.com/k0kubun/pp v3.0.1+incompatible h1:3tqvf7QgUnZ5tXO6pNAZlrvHgl6DvifjDrd9g2S9Z40=
github.com/k0kubun/pp v3.0.1+incompatible/go.mod h1:GWse8YhT0p8pT4ir3ZgBbfZild3tgzSScAn6HmfYukg=
github.com/konsorten/go-windows-terminal-sequences v1.0.3 h1:CE8S1cTafDpPvMhIxNJKvHsGVBgn1xWYf1NbHQhywc8=
github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
github.com/mattn/go-colorable v0.1.6 h1:6Su7aK7lXmJ/U79bYtBjLNaha4Fs1Rg9plHpcH+vvnE=
github.com/mattn/go-colorable v0.1.6/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc=
github.com/mattn/go-isatty v0.0.12 h1:wuysRhFDzyxgEmMf5xjvJ2M9dZoWAXNNr5LSBS7uHXY=
github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/sirupsen/logrus v1.6.0 h1:UBcNElsrwanuuMsnGSlYmtmgbb23qDR5dG+6X6Oo89I=
github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88=
github.com/stretchr/testify v1.2.2 h1:bSDNvY7ZPG5RlJ8otE/7V6gMiyenm9RtJ7IUVIAoJ1w=
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
golang.org/x/sys v0.0.0-20190422165155-953cdadca894 h1:Cz4ceDQGXuKRnVBDTS23GTn/pU5OE2C0WrNTOYK1Uuc=
golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae h1:/WDfKMnPU+m5M4xB+6x4kaepxRw6jWvR5iDRdvjHgy8=
golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=

0 comments on commit 1db2e5d

Please sign in to comment.