-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add explicit configuration files (#4)
- Loading branch information
Showing
4 changed files
with
181 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{{ range .Versions }} | ||
<a name="{{ .Tag.Name }}"></a> | ||
## {{ if .Tag.Previous }}[{{ .Tag.Name }}]({{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }}){{ else }}{{ .Tag.Name }}{{ end }} ({{ datetime "2006-01-02" .Tag.Date }}) | ||
|
||
{{ range .CommitGroups -}} | ||
### {{ .Title }} | ||
|
||
{{ range .Commits -}} | ||
* {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }} | ||
{{ end }} | ||
{{ end -}} | ||
|
||
{{- if .RevertCommits -}} | ||
### Reverts | ||
|
||
{{ range .RevertCommits -}} | ||
* {{ .Revert.Header }} | ||
{{ end }} | ||
{{ end -}} | ||
|
||
{{- if .NoteGroups -}} | ||
{{ range .NoteGroups -}} | ||
### {{ .Title }} | ||
|
||
{{ range .Notes }} | ||
{{ .Body }} | ||
{{ end }} | ||
{{ end -}} | ||
{{ end -}} | ||
{{ end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
style: github | ||
template: CHANGELOG.tpl.md | ||
info: | ||
title: CHANGELOG | ||
repository_url: https://github.com/go-vela/vela-kubernetes | ||
options: | ||
commits: | ||
# filters: | ||
# Type: | ||
# - feat | ||
# - fix | ||
# - perf | ||
# - refactor | ||
commit_groups: | ||
# title_maps: | ||
# feat: Features | ||
# fix: Bug Fixes | ||
# perf: Performance Improvements | ||
# refactor: Code Refactoring | ||
header: | ||
pattern: "^(\\w*)(?:\\(([\\w\\$\\.\\-\\*\\s]*)\\))?\\:\\s(.*)$" | ||
pattern_maps: | ||
- Type | ||
- Scope | ||
- Subject | ||
notes: | ||
keywords: | ||
- BREAKING CHANGE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
# This is a manually created golangci.com yaml configuration with | ||
# some defaults explicitly provided. There is a large number of | ||
# linters we've enabled that are usually disabled by default. | ||
# | ||
# https://github.com/golangci/golangci-lint#config-file | ||
|
||
# This section provides the configuration for how golangci | ||
# outputs it results from the linters it executes. | ||
output: | ||
format: colored-line-number | ||
print-issued-lines: true | ||
print-linter-name: true | ||
|
||
# This section provides the configuration for which linters | ||
# golangci will execute. Several of them were disabled by | ||
# default but we've opted to enable them. | ||
linters: | ||
# disable all linters as new linters might be added to golangci | ||
disable-all: true | ||
enable: | ||
# linters enabled by default | ||
- deadcode | ||
- errcheck | ||
- govet | ||
- gosimple # a.k.a. megacheck | ||
- ineffassign | ||
- staticcheck | ||
- structcheck | ||
- typecheck | ||
- unused | ||
- varcheck | ||
|
||
# linters disabled by default | ||
- bodyclose | ||
- gocognit | ||
- goconst | ||
- gocyclo | ||
- goimports | ||
- gosec | ||
- funlen | ||
- maligned | ||
- misspell | ||
- stylecheck | ||
- unparam | ||
- whitespace | ||
- wsl | ||
|
||
# static list of linters we know golangci can run but we've | ||
# chosen to leave disabled for now | ||
# | ||
# disable: | ||
# - depguard | ||
# - dogsled | ||
# - dupl | ||
# - gocritic | ||
# - gochecknoinits | ||
# - gochecknoglobals | ||
# - godox | ||
# - gofmt | ||
# - golint | ||
# - gomnd | ||
# - interfacer | ||
# - lll | ||
# - nakedret | ||
# - scopelint | ||
# - unconvert | ||
|
||
# This section provides the configuration for each linter | ||
# we've instructed golangci to execute. | ||
linters-settings: | ||
funlen: | ||
lines: 100 | ||
statements: 60 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# The is the default codecov.io yaml configuration all projects use | ||
# that do not have their own codecov.yml already in the project. | ||
# | ||
# https://docs.codecov.io/docs/codecov-yaml#section-default-yaml | ||
|
||
# This section provides the generic configuration for codecov. | ||
# | ||
# https://docs.codecov.io/docs/codecovyml-reference#section-codecov | ||
codecov: | ||
|
||
require_ci_to_pass: yes | ||
|
||
# This section provides the configuration for the | ||
# coverage report codecov analyzes for results. | ||
# | ||
# https://docs.codecov.io/docs/codecovyml-reference#section-coverage | ||
coverage: | ||
|
||
precision: 2 | ||
round: down | ||
range: "70...100" | ||
|
||
status: | ||
project: yes | ||
patch: yes | ||
changes: no | ||
|
||
# This section provides the configuration for the | ||
# parsers codecov uses for the coverage report. | ||
# | ||
# https://docs.codecov.io/docs/codecovyml-reference#section-parsers | ||
parsers: | ||
|
||
gcov: | ||
|
||
branch_detection: | ||
conditional: yes | ||
loop: yes | ||
method: no | ||
macro: no | ||
|
||
# This section provides the configuration for the | ||
# comments codecov makes to open pull requests. | ||
# | ||
# https://docs.codecov.io/docs/codecovyml-reference#section-comment | ||
comment: | ||
|
||
layout: "reach, diff, flags, files" | ||
behavior: default | ||
require_changes: no |