Skip to content

Commit

Permalink
chore: prep for open sourcing
Browse files Browse the repository at this point in the history
  • Loading branch information
wfscheper committed Dec 18, 2020
1 parent 58a37fe commit 7162cc6
Show file tree
Hide file tree
Showing 34 changed files with 1,304 additions and 64 deletions.
29 changes: 29 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
name: Bug report
about: Create a report to help us improve

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. Linux]
- SAS Version: [e.g. 9.4M3]
- SASPy Version: [e.g. 2.2.7]

**Additional context**
Add any other context about the problem here.
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: Feature request
about: Suggest an idea for this project

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
41 changes: 41 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
name: Build

on:
push:
pull_request:

jobs:
lint:
name: Run linters
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: pre-commit/[email protected]

build:
name: Build and test on go ${{ matrix.go_version }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
go_version: [1.15, 1.14]
os: [ubuntu-latest, macOS-latest, windows-latest]
steps:
- name: Set up Go ${{ matrix.go_version }}
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go_version }}
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Get dependencies
run: go mod download

- name: Build
run: make build

- name: Test
run: make test
27 changes: 27 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: Release

on:
push:
branches:
- main
- release-*

jobs:
release:
runs-on: ubuntu-latest
if: "startsWith(github.event.head_commit.message, 'release: ')"
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.15
- name: Run gotagger
env:
RELEASE_DRY_RUN: "false"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: make release
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,4 @@ tags

# output directories
/build/
/dist/
File renamed without changes.
37 changes: 37 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
project_name: gotagger
env:
- CGO_ENABLED=0
- GO111MODULE=on
- GOPROXY=https://proxy.golang.org
before:
hooks:
- go mod download
builds:
- binary: gotagger
main: ./cmd/gotagger
ldflags: |
-X main.BuildDate={{.Env.BUILDDATE}}
-X main.Commit={{.Env.COMMIT}}
-X main.AppVersion={{.Env.VERSION}}
goos:
- linux
- darwin
- windows
ignore:
- goos: darwin
goarch: 386
archives:
- format_overrides:
- goos: windows
format: zip
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{.Env.VERSION}}-SNAPSHOT"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
37 changes: 37 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
default_stages: [commit]
exclude: ^tests/data/
repos:
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v3.0.0
hooks:
- id: commitlint
stages: [commit-msg]
additional_dependencies: ["@commitlint/config-conventional"]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.3.0 # Use the ref you want to point at
hooks:
- id: check-json
- id: check-merge-conflict
- id: check-xml
- id: detect-private-key
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/thlorenz/doctoc
rev: v2.0.0
hooks:
- id: doctoc
args: [--notitle]
exclude: ^(SUPPORT|\.github/ISSUE_TEMPLATE/)
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.25.0
hooks:
- id: markdownlint
exclude: ^(docs/arch/adr-template\.md|\.github/ISSUE_TEMPLATE/)
- repo: https://github.com/adrienverge/yamllint
rev: v1.25.0
hooks:
- id: yamllint
- repo: https://github.com/golangci/golangci-lint
rev: v1.33.0
hooks:
- id: golangci-lint
55 changes: 27 additions & 28 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,34 @@
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->


- [Changelog](#changelog)
- [[v0.6.0] - 2020/10/12](#v060-20201012)
- [Feature](#feature)
- [Fix](#fix)
- [[v0.5.2] - 2020/09/22](#v052-20200922)
- [Fix](#fix-1)
- [[v0.5.1] - 2020/09/17](#v051-20200917)
- [Refactor](#refactor)
- [[v0.5.0] - 2020/09/17](#v050-20200917)
- [Feature](#feature-1)
- [Fix](#fix-2)
- [Refactor](#refactor-1)
- [[v0.4.0] - 2019/07/10](#v040-20190710)
- [Added](#added)
- [Fixed](#fixed)
- [[v0.3.1] - 2019/12/16](#v031-20191216)
- [Fixed](#fixed-1)
- [[v0.3.0] - 2019/11/18](#v030-20191118)
- [Added](#added-1)
- [[v0.2.0] - 2019/11/15](#v020-20191115)
- [Added](#added-2)
- [Changed](#changed)
- [[v0.1.2] - 2019/10/14](#v012-20191014)
- [Fixed](#fixed-2)
- [[v0.1.1] - 2019/10/12](#v011-20191012)
- [Fixed](#fixed-3)
- [[v0.1.0] - 2019/10/11](#v010-20191011)
- [Added](#added-3)
- [[v0.6.0] - 2020/10/12](#v060---20201012)
- [Feature](#feature)
- [Fix](#fix)
- [[v0.5.2] - 2020/09/22](#v052---20200922)
- [Fix](#fix-1)
- [[v0.5.1] - 2020/09/17](#v051---20200917)
- [Refactor](#refactor)
- [[v0.5.0] - 2020/09/17](#v050---20200917)
- [Feature](#feature-1)
- [Fix](#fix-2)
- [Refactor](#refactor-1)
- [[v0.4.0] - 2019/07/10](#v040---20190710)
- [Added](#added)
- [Fixed](#fixed)
- [[v0.3.1] - 2019/12/16](#v031---20191216)
- [Fixed](#fixed-1)
- [[v0.3.0] - 2019/11/18](#v030---20191118)
- [Added](#added-1)
- [[v0.2.0] - 2019/11/15](#v020---20191115)
- [Added](#added-2)
- [Changed](#changed)
- [[v0.1.2] - 2019/10/14](#v012---20191014)
- [Fixed](#fixed-2)
- [[v0.1.1] - 2019/10/12](#v011---20191012)
- [Fixed](#fixed-3)
- [[v0.1.0] - 2019/10/11](#v010---20191011)
- [Added](#added-3)

<!-- END doctoc generated TOC please keep comment here to allow auto update -->
<!-- markdownlint-enable -->
Expand Down
Loading

0 comments on commit 7162cc6

Please sign in to comment.