Skip to content

Commit

Permalink
Add possibility to provide own github url (#2)
Browse files Browse the repository at this point in the history
- Add possibility to provide own github url
- Add before-commit script, fix vendor, fix formatting
- Fix the ValidOwner checker:
  problem was that in `validateTeam` function we used GetName() instead of GetSlug(). Slug is normalized team name which is always used in codeowners file, e.g. team name **Technical Writers** is normalized to **technical-writers** and such name is used in codeowners file.
- Remove the GolangCI integration
  • Loading branch information
mszostok authored Mar 21, 2019
1 parent 83a4571 commit ac640c6
Show file tree
Hide file tree
Showing 232 changed files with 60,754 additions and 5,579 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
scripts/
.idea
.idea
codeowners-validator
30 changes: 0 additions & 30 deletions .golangci.yml

This file was deleted.

30 changes: 30 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
goarch:
- amd64
- 386
archive:
replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
format_overrides:
- goos: windows
format: zip
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
164 changes: 151 additions & 13 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 4 additions & 34 deletions Gopkg.toml
Original file line number Diff line number Diff line change
@@ -1,29 +1,7 @@
# Gopkg.toml example
#
# Refer to https://golang.github.io/dep/docs/Gopkg.toml.html
# for detailed Gopkg.toml documentation.
#
# required = ["github.com/user/thing/cmd/thing"]
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
#
# [[constraint]]
# name = "github.com/user/project"
# version = "1.0.0"
#
# [[constraint]]
# name = "github.com/user/project2"
# branch = "dev"
# source = "github.com/myfork/project2"
#
# [[override]]
# name = "github.com/x/y"
# version = "2.4.0"
#
# [prune]
# non-go = false
# go-tests = true
# unused-packages = true

required = [
"github.com/golang/lint/golint",
"golang.org/x/tools/cmd/goimports",
]

[[constraint]]
name = "github.com/fatih/color"
Expand All @@ -33,10 +11,6 @@
name = "github.com/google/go-github"
version = "21.0.1"

[[constraint]]
name = "github.com/kyma-project/kyma"
version = "0.6.1"

[[constraint]]
name = "github.com/pkg/errors"
version = "0.8.1"
Expand All @@ -49,10 +23,6 @@
name = "github.com/spf13/afero"
version = "1.2.0"

[[constraint]]
name = "github.com/spf13/pflag"
version = "1.0.3"

[prune]
go-tests = true
unused-packages = true
Loading

0 comments on commit ac640c6

Please sign in to comment.