Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial release #1

Draft
wants to merge 107 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
107 commits
Select commit Hold shift + click to select a range
b6d5d17
wip
yanosea Oct 5, 2023
48ebaed
wip
yanosea Oct 6, 2023
aa4191f
wip
yanosea Oct 6, 2023
b1afb48
wip
yanosea Oct 26, 2023
4db5a06
wip
yanosea Oct 27, 2023
badbd1b
wip
yanosea Oct 27, 2023
084420f
wip
yanosea Oct 27, 2023
9896fdc
wip
yanosea Oct 27, 2023
ea52fb9
wip
yanosea Oct 27, 2023
84b5f7c
wip
yanosea Oct 27, 2023
b51ed5e
wip
yanosea Oct 27, 2023
db5b868
wip
yanosea Oct 27, 2023
1a641f7
wip
yanosea Oct 27, 2023
bd5dbc4
wip
yanosea Oct 27, 2023
ed57c5a
wip
yanosea Oct 27, 2023
cba0177
wip
yanosea Oct 28, 2023
6acee33
wip
yanosea Oct 30, 2023
0c95772
wip
yanosea Oct 31, 2023
4eacfc8
wip
yanosea Oct 31, 2023
879c60c
wip
yanosea Oct 31, 2023
c72d1da
wip
yanosea Nov 1, 2023
4057dbb
wip
yanosea Nov 1, 2023
8ade8f8
wip
yanosea Nov 1, 2023
58151f8
wip
yanosea Nov 2, 2023
65b2163
wip
yanosea Nov 2, 2023
23b09c1
wip
yanosea Nov 2, 2023
de85dea
wip
yanosea Nov 3, 2023
d0d67e4
wip
yanosea Nov 4, 2023
670e807
wip
yanosea Nov 6, 2023
426ab1e
wip
yanosea Nov 9, 2023
d488109
wip
yanosea Nov 21, 2023
32a0ee6
wip
yanosea Nov 21, 2023
fff1dfd
wip
yanosea Nov 21, 2023
5548c33
wip
yanosea Nov 24, 2023
2b2d18c
wip
yanosea Nov 27, 2023
8a479d7
wip
yanosea Nov 29, 2023
6d6a3a8
wip
yanosea Nov 29, 2023
04bd26c
wip
yanosea Dec 6, 2023
efd3f38
wip
yanosea Dec 6, 2023
715caeb
wip
yanosea Dec 6, 2023
203ee32
wip
yanosea Dec 6, 2023
337d7c7
wip
yanosea Dec 6, 2023
0c57b78
wip
yanosea Dec 6, 2023
b4f489a
wip
yanosea Dec 6, 2023
7fefc20
wip
yanosea Dec 8, 2023
b6d336d
wip
yanosea Dec 8, 2023
9dea140
wip
yanosea Dec 8, 2023
7b72966
wip
yanosea Dec 9, 2023
7b1a02a
wip
yanosea Dec 13, 2023
3332f49
wip
yanosea Dec 14, 2023
dd47997
wip
yanosea Dec 14, 2023
1048e64
wip
yanosea Dec 14, 2023
43bfb50
wip
yanosea Jan 25, 2024
8ac4e8b
wip
yanosea Feb 4, 2024
2da5f2e
wip
yanosea Feb 4, 2024
eaf6673
wip
yanosea Feb 5, 2024
32b9d83
wip
yanosea Feb 5, 2024
5ae2ba9
wip
yanosea Feb 6, 2024
f868b52
wip
yanosea Feb 6, 2024
c5b4559
wip
yanosea Feb 6, 2024
69c0afc
wip
yanosea Feb 6, 2024
74ae267
wip
yanosea Feb 6, 2024
fd896d1
wip
yanosea Feb 6, 2024
e71bf67
wip
yanosea Feb 6, 2024
ea52c81
wip
yanosea Feb 6, 2024
ed3c8dc
vip
yanosea Feb 12, 2024
2e97011
vip
yanosea Feb 12, 2024
3e12ff7
vip
yanosea Feb 12, 2024
0dd1a63
vip
yanosea Feb 12, 2024
a1876ee
vip
yanosea Feb 12, 2024
72db5a1
vip
yanosea Feb 12, 2024
ecd7de7
wip
yanosea Feb 13, 2024
f30e595
wip
yanosea Feb 13, 2024
693d6e3
wip
yanosea Feb 13, 2024
e886a57
wip
yanosea Feb 14, 2024
ac6f556
wip
yanosea Feb 18, 2024
ed21544
wip
yanosea Feb 19, 2024
035c1a0
wip
yanosea Feb 19, 2024
3501c45
wip
yanosea Feb 19, 2024
6c9c2d8
wip
yanosea Feb 19, 2024
8896530
wip
yanosea Feb 19, 2024
72e858a
wip
yanosea Feb 20, 2024
e8138dc
wip
yanosea Feb 21, 2024
1729ba8
wip
yanosea Feb 21, 2024
fb0629d
wip
yanosea Feb 22, 2024
4d845d5
wip
yanosea Feb 22, 2024
485b6b0
wip
yanosea Feb 22, 2024
b7ca007
wip
yanosea Feb 22, 2024
47425ff
wip
yanosea Feb 22, 2024
75e3260
wip
yanosea Feb 22, 2024
980b422
wip
yanosea Feb 22, 2024
c4ed8a6
wip
yanosea Feb 25, 2024
97603d7
wip
yanosea Feb 25, 2024
5a614c0
wip
yanosea Mar 6, 2024
1fef03e
wip
yanosea Aug 20, 2024
56a48b4
wip
yanosea Oct 8, 2024
5bb38e7
wip
yanosea Oct 8, 2024
3599a45
wip
yanosea Oct 8, 2024
6d654e8
wip
yanosea Oct 8, 2024
b4a9fd5
wip
yanosea Oct 9, 2024
8c3ac1c
wip
yanosea Oct 9, 2024
c7e5281
wip
yanosea Oct 9, 2024
c35181a
wip
yanosea Oct 9, 2024
250ae56
wip
yanosea Oct 9, 2024
787f4ce
wip
yanosea Oct 9, 2024
8d81af3
wip
yanosea Oct 9, 2024
3c41ac9
wip
yanosea Oct 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "weekly"
82 changes: 82 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ "main" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "main" ]
schedule:
- cron: '35 3 * * 3'

jobs:
analyze:
name: Analyze
# Runner size impacts CodeQL analysis time. To learn more, please see:
# - https://gh.io/recommended-hardware-resources-for-running-codeql
# - https://gh.io/supported-runners-and-hardware-resources
# - https://gh.io/using-larger-runners
# Consider using larger runners for possible analysis time improvements.
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'go' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby', 'swift' ]
# Use only 'java' to analyze code written in Java, Kotlin or both
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

steps:
- name: Checkout repository
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality


# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"
54 changes: 54 additions & 0 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: golangci-lint
on:
push:
branches:
- master
- main
pull_request:

permissions:
contents: read
# Optional: allow read access to pull request. Use with `only-new-issues` option.
# pull-requests: read

jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: "1.20"
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
# Require: The version of golangci-lint to use.
# When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version.
# When `install-mode` is `goinstall` the value can be v1.2.3, `latest`, or the hash of a commit.
version: v1.53
# Optional: working directory, useful for monorepos
# working-directory: somedir

# Optional: golangci-lint command line arguments.
#
# Note: By default, the `.golangci.yml` file should be at the root of the repository.
# The location of the configuration file can be changed by using `--config=`
# args: --timeout=30m --config=/my/path/.golangci.yml --issues-exit-code=0

# Optional: show only new issues if it's a pull request. The default value is `false`.
# only-new-issues: true

# Optional: if set to true, then all caching functionality will be completely disabled,
# takes precedence over all other caching options.
# skip-cache: true

# Optional: if set to true, then the action won't cache or restore ~/go/pkg.
# skip-pkg-cache: true

# Optional: if set to true, then the action won't cache or restore ~/.cache/go-build.
# skip-build-cache: true

# Optional: The mode to install golangci-lint. It can be 'binary' or 'goinstall'.
# install-mode: "goinstall"
18 changes: 18 additions & 0 deletions .github/workflows/pr-auto-approve.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Auto Approve
on:
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
jobs:
approve:
if: |
github.event.pull_request.user.login == github.repository_owner
&& ! github.event.pull_request.draft
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: hmarr/auto-approve-action@v3
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Release

on:
push:
tags:
- "v*"

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: 1.20.x
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
version: "~> v2"
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAP_GITHUB_TOKEN: ${{ secrets.TAP_GITHUB_TOKEN }}
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# IGNORE FOLDER
# IGNORE FILE
spotlike
spotlike.exe
.DS_Store
*.log

# NOT IGNORE FOLDER
!spotlike/
51 changes: 51 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# This is an example .goreleaser.yml file with some sensible defaults.
# Make sure to check the documentation at https://goreleaser.com
version: 2

before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
# you may remove this if you don't need go generate
- go generate ./...
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
ldflags:
- -s -w
- -X github.com/yanosea/spotlike/cmd.ver=v{{.Version}}

archives:
- format: tar.gz
# this name template makes the OS and Arch compatible with the results of uname.
name_template: >-
{{ .ProjectName }}_ {{- title .Os }}_ {{- if eq .Arch "amd64" }}x86_64 {{- else if eq .Arch "386" }}i386 {{- else }}{{ .Arch }}{{ end }} {{- if .Arm }}v{{ .Arm }}{{ end }}
# use zip for windows archives
format_overrides:
- goos: windows
format: zip
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"

# The lines beneath this are called `modelines`. See `:help modeline`
# Feel free to remove those if you don't want/use them.
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj

brews:
- repository:
owner: yanosea
name: homebrew-tap
token: "{{ .Env.TAP_GITHUB_TOKEN }}"
Loading
Loading