Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
lzecca78 committed Feb 2, 2020
0 parents commit f7e2e66
Show file tree
Hide file tree
Showing 583 changed files with 285,560 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .chglog/CHANGELOG.tpl.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{{ if .Versions -}}
<a name="unreleased"></a>
## [Unreleased]

{{ if .Unreleased.CommitGroups -}}
{{ range .Unreleased.CommitGroups -}}
### {{ .Title }}
{{ range .Commits -}}
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
{{ end }}
{{ end -}}
{{ end -}}
{{ end -}}

{{ range .Versions }}
<a name="{{ .Tag.Name }}"></a>
## {{ if .Tag.Previous }}[{{ .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 .MergeCommits -}}
### Pull Requests
{{ range .MergeCommits -}}
- {{ .Header }}
{{ end }}
{{ end -}}

{{- if .NoteGroups -}}
{{ range .NoteGroups -}}
### {{ .Title }}
{{ range .Notes }}
{{ .Body }}
{{ end }}
{{ end -}}
{{ end -}}
{{ end -}}

{{- if .Versions }}
[Unreleased]: {{ .Info.RepositoryURL }}/compare/{{ $latest := index .Versions 0 }}{{ $latest.Tag.Name }}...HEAD
{{ range .Versions -}}
{{ if .Tag.Previous -}}
[{{ .Tag.Name }}]: {{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }}
{{ end -}}
{{ end -}}
{{ end -}}
27 changes: 27 additions & 0 deletions .chglog/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
style: github
template: CHANGELOG.tpl.md
info:
title: CHANGELOG
repository_url: https://github.com/lzecca78/git-cloner
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+)\\s.*)$"
pattern_maps:
- Subject
- Type
notes:
keywords:
- BREAKING CHANGE
34 changes: 34 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
name: Release
on:
push:
tags:
- 'v*.*.*'
jobs:
build:
name: release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
# - name: Bump version and push tag
# uses: anothrNick/github-tag-action@master
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# WITH_V: true
# - name: Check out again code into the Go module directory
# uses: actions/checkout@v2
# - name: Unshallow
# run: git fetch --prune --unshallow
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.13.x
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v1
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GORELEASER_TOKEN }}
81 changes: 81 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
---
before:
hooks:
- go mod vendor
project_name: git-cloner
builds:
- binary: 'git-cloner'
id: git-cloner-darwin
goarch:
- amd64
goos:
- darwin
env:
- CGO_ENABLED=0
- binary: 'git-cloner'
id: git-cloner-linux
goarch:
- amd64
goos:
- linux
env:
- CGO_ENABLED=0
archives:
- format: tar.gz
id: git-cloner-darwin-tgz
wrap_in_directory: false
name_template: '{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}'
builds:
- git-cloner-darwin
- format: tar.gz
id: git-cloner-linux-tgz
wrap_in_directory: false
name_template: '{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}'
builds:
- git-cloner-linux
- format: binary
id: git-cloner-darwin-bin
wrap_in_directory: false
name_template: '{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}'
builds:
- git-cloner-darwin
- format: binary
id: git-cloner-linux-bin
wrap_in_directory: false
name_template: '{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}'
builds:
- git-cloner-linux
checksum:
name_template: 'sha256sum.txt'
snapshot:
name_template: '{{ .Tag }}'
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
release:
ids:
- git-cloner-linux-tgz
- git-cloner-linux-bin
- git-cloner-darwin-tgz
- git-cloner-darwin-bin
github:
owner: lzecca78
name: git-cloner
name_template: '{{ .Tag }}'
brews:
- name: git-cloner
github:
owner: lzecca78
name: homebrew-git-cloner
folder: Formula
homepage: 'https://gihub.com/lzecca78/git-cloner'
description: 'Git-cloner binary'
conflicts:
- git-cloner
test: |
system "#{bin}/git-cloner"
install: |
bin.install 'git-cloner'
Loading

0 comments on commit f7e2e66

Please sign in to comment.