Skip to content

Commit 45c46b1

Browse files
Initial Commit
0 parents  commit 45c46b1

20 files changed

+1266
-0
lines changed

.copier-answers.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Changes here will be overwritten by Copier
2+
_commit: v0.50.0
3+
_src_path: gh:FollowTheProcess/go-template
4+
author_email: [email protected]
5+
author_name: Tom Fleet
6+
dependency_bot: renovate
7+
description: A command line .http file toolkit
8+
github_url: https://github.com/FollowTheProcess/zap
9+
github_username: FollowTheProcess
10+
license: Apache-2.0
11+
linter: golangci-lint
12+
module_path: go.followtheprocess.codes/zap
13+
project_name: Zap
14+
project_slug: zap
15+
project_type: binary

.gitattributes

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto
3+
4+
# Force LF even on windows for testdata, means comparisons don't fail just
5+
# because of line endings
6+
**/testdata/* text eol=lf
7+
8+
# Txtar requires lf
9+
*.txtar text eol=lf

.github/labels.yml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
- name: breaking
2+
description: Breaking Changes
3+
color: bfd4f2
4+
5+
- name: bug
6+
description: Something isn't working
7+
color: d73a4a
8+
9+
- name: build
10+
description: Build System and Dependencies
11+
color: bfdadc
12+
13+
- name: ci
14+
description: Continuous Integration
15+
color: 4a97d6
16+
17+
- name: dependencies
18+
description: Pull requests that update a dependency file
19+
color: 0366d6
20+
21+
- name: documentation
22+
description: Improvements or additions to documentation
23+
color: 0075ca
24+
25+
- name: duplicate
26+
description: This issue or pull request already exists
27+
color: cfd3d7
28+
29+
- name: feature
30+
description: New feature or request
31+
color: a2eeef
32+
33+
- name: good first issue
34+
description: Good for newcomers
35+
color: 7057ff
36+
37+
- name: help wanted
38+
description: Extra attention is needed
39+
color: 008672
40+
41+
- name: invalid
42+
description: This doesn't seem right
43+
color: e4e669
44+
45+
- name: performance
46+
description: Performance
47+
color: "016175"
48+
49+
- name: question
50+
description: Further information is requested
51+
color: d876e3
52+
53+
- name: refactoring
54+
description: Refactoring
55+
color: ef67c4
56+
57+
- name: removal
58+
description: Removals and Deprecations
59+
color: 9ae7ea
60+
61+
- name: style
62+
description: Style
63+
color: c120e5
64+
65+
- name: chore
66+
description: General project admin
67+
color: cfd3d7
68+
69+
- name: testing
70+
description: Testing
71+
color: b1fc6f
72+
73+
- name: wontfix
74+
description: This will not be worked on
75+
color: ffffff

.github/release-drafter.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name-template: "v$RESOLVED_VERSION"
2+
tag-template: "v$RESOLVED_VERSION"
3+
4+
categories:
5+
- title: ":boom: Breaking Changes"
6+
label: breaking
7+
8+
- title: ":rocket: Features"
9+
labels:
10+
- enhancement
11+
- feature
12+
13+
- title: ":fire: Removals and Deprecations"
14+
label: removal
15+
16+
- title: ":beetle: Fixes"
17+
label: bug
18+
19+
- title: ":racehorse: Performance"
20+
label: performance
21+
22+
- title: ":rotating_light: Testing"
23+
label: testing
24+
25+
- title: ":construction_worker: Continuous Integration"
26+
label: ci
27+
28+
- title: ":books: Documentation"
29+
label: documentation
30+
31+
- title: ":hammer: Refactoring"
32+
label: refactoring
33+
34+
- title: ":lipstick: Style"
35+
label: style
36+
37+
- title: ":package: Dependencies"
38+
labels:
39+
- dependencies
40+
- build
41+
42+
template: |
43+
## Changes
44+
$CHANGES

.github/renovate.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": ["config:recommended"],
4+
"labels": ["dependencies"],
5+
"postUpdateOptions": ["gomodTidy"]
6+
}

.github/workflows/CI.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
11+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
12+
13+
permissions: {}
14+
15+
jobs:
16+
ci:
17+
name: CI
18+
permissions:
19+
contents: read
20+
uses: FollowTheProcess/ci/.github/workflows/Go.yml@v3
21+
with:
22+
linter: golangci-lint

.github/workflows/labeler.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Labeler
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions: {}
9+
10+
jobs:
11+
labeler:
12+
name: Labeler
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: write
16+
issues: write
17+
18+
steps:
19+
- name: Checkout Code
20+
uses: actions/checkout@v5
21+
22+
- name: Run Labeler
23+
uses: crazy-max/ghaction-github-labeler@v5
24+
with:
25+
skip-delete: false
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
types:
9+
- opened
10+
- reopened
11+
- synchronize
12+
13+
permissions: {}
14+
15+
jobs:
16+
draft_release:
17+
name: Draft Release
18+
runs-on: ubuntu-latest
19+
permissions:
20+
contents: write
21+
pull-requests: read
22+
23+
steps:
24+
- name: Run Release Drafter
25+
uses: release-drafter/release-drafter@v6
26+
env:
27+
GITHUB_TOKEN: ${{ github.token }}

.github/workflows/release.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v[0-9]+.[0-9]+.[0-9]+"
7+
8+
permissions: {}
9+
10+
jobs:
11+
release:
12+
name: Release
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: write
16+
pull-requests: read
17+
id-token: write
18+
attestations: write
19+
20+
steps:
21+
- name: Checkout Code
22+
uses: actions/checkout@v5
23+
with:
24+
fetch-depth: 0
25+
26+
- name: Fetch Existing Tags
27+
run: git fetch --force --tags
28+
29+
- name: Install Syft
30+
uses: anchore/sbom-action/download-syft@latest
31+
32+
- name: Parse Release Version
33+
id: version
34+
run: |
35+
VERSION=${GITHUB_REF#refs/tags/v}
36+
echo "version=$VERSION" >> $GITHUB_OUTPUT
37+
38+
- name: Set up Go
39+
uses: actions/setup-go@v5
40+
with:
41+
go-version-file: go.mod
42+
43+
- name: Publish Draft Release
44+
uses: release-drafter/release-drafter@v6
45+
with:
46+
version: ${{ steps.version.outputs.version }}
47+
publish: true
48+
env:
49+
GITHUB_TOKEN: ${{ github.token }}
50+
51+
- name: Run GoReleaser
52+
uses: goreleaser/goreleaser-action@v6
53+
with:
54+
version: latest
55+
args: release --clean
56+
env:
57+
GITHUB_TOKEN: ${{ github.token }}
58+
HOMEBREW_TAP_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}
59+
60+
- name: Generate Binary Attestation
61+
uses: actions/attest-build-provenance@v2
62+
with:
63+
subject-checksums: dist/checksums.txt

0 commit comments

Comments
 (0)