Skip to content

Commit 0305f89

Browse files
committed
Init commit
0 parents  commit 0305f89

142 files changed

Lines changed: 19766 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/npm-publish.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Publish npm
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
npm:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
13+
- uses: actions/setup-node@v4
14+
with:
15+
node-version: 20
16+
registry-url: "https://registry.npmjs.org"
17+
18+
- name: Publish npm package
19+
working-directory: npm
20+
run: |
21+
VERSION="${{ github.event.release.tag_name }}"
22+
VERSION="${VERSION#v}"
23+
npm version "$VERSION" --no-git-tag-version
24+
npm publish --access public
25+
env:
26+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/release.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
release:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
19+
- uses: actions/setup-go@v5
20+
with:
21+
go-version-file: go.mod
22+
23+
- name: Run tests
24+
run: go test ./...
25+
26+
- uses: goreleaser/goreleaser-action@v6
27+
with:
28+
version: "~> v2"
29+
args: release --clean
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
HOMEBREW_TAP_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}
33+

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Binary
2+
/hs
3+
/hs.exe
4+
/helpscout
5+
/helpscout.exe
6+
/build/
7+
8+
# IDE
9+
.idea/
10+
.vscode/
11+
*.swp
12+
.claude/
13+
14+
# Debug
15+
hs-debug.log
16+
17+
# OS
18+
.DS_Store
19+
Thumbs.db
20+
21+
# Go
22+
/dist/
23+
24+
.agents

.goreleaser.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
version: 2
2+
3+
project_name: hs
4+
5+
builds:
6+
- main: ./cmd/hs
7+
binary: hs
8+
ldflags:
9+
- -s -w
10+
- -X main.version={{.Version}}
11+
- -X main.commit={{.ShortCommit}}
12+
- -X main.date={{.Date}}
13+
goos:
14+
- linux
15+
- darwin
16+
- windows
17+
goarch:
18+
- amd64
19+
- arm64
20+
21+
archives:
22+
- formats:
23+
- tar.gz
24+
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
25+
format_overrides:
26+
- goos: windows
27+
formats:
28+
- zip
29+
30+
checksum:
31+
name_template: checksums.txt
32+
33+
release:
34+
draft: true
35+
36+
brews:
37+
- repository:
38+
owner: operator-kit
39+
name: homebrew-tap
40+
token: "{{ .Env.HOMEBREW_TAP_TOKEN }}"
41+
homepage: "https://github.com/operator-kit/hs-cli"
42+
description: "HelpScout CLI — manage mailboxes, conversations, customers and more"
43+
install: |
44+
bin.install "hs"
45+
test: |
46+
system "#{bin}/hs", "version"
47+
48+
changelog:
49+
sort: asc
50+
filters:
51+
exclude:
52+
- "^docs:"
53+
- "^test:"
54+
- "^ci:"

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2026 Ross Morsali
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)