Skip to content

Commit ab7b11c

Browse files
committed
feat: intial commit
0 parents  commit ab7b11c

Some content is hidden

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

69 files changed

+8058
-0
lines changed

.editorconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2

.gitattributes

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#
2+
# https://help.github.com/articles/dealing-with-line-endings/
3+
#
4+
# These are explicitly windows files and should use crlf
5+
*.bat text eol=crlf
6+
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
name: Bug report
3+
about: Report errors and problems
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
---
8+
9+
**Versions Used**
10+
11+
<!-- The ver. -->
12+
13+
**Description**
14+
15+
<!-- A clear and concise description of the problem. -->
16+
17+
**How to reproduce**
18+
19+
<!-- Code, config and/or steps needed to reproduce the problem. -->
20+
21+
**Possible Solution**
22+
23+
<!--- Optional: only if you have suggestions on a fix/reason for the bug -->
24+
25+
**Additional context**
26+
27+
<!-- Optional: any other context about the problem: log messages, screenshots, etc. -->
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
name: Documentation Issue
3+
about: Missing, misleading or incomplete documentation issues
4+
title: ''
5+
labels: docs
6+
assignees: ''
7+
---
8+
9+
**Documentation issue**
10+
11+
<!-- Before opening a new issue, please make sure you already checked -->
12+
<!-- our documentation. -->
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
name: Feature request
3+
about: Ideas for new features and improvements
4+
title: ''
5+
labels: enhancement
6+
assignees: ''
7+
---
8+
9+
**Is your feature request related to a problem? Please describe.**
10+
11+
<!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] -->
12+
13+
**Describe the solution you'd like**
14+
15+
<!-- A clear and concise description of what you want to happen. -->
16+
17+
**Describe alternatives you've considered**
18+
19+
<!-- A clear and concise description of any alternative solutions or features you've considered. -->
20+
21+
**Additional context**
22+
23+
<!-- Add any other context or screenshots about the feature request here. -->

.github/dependabot.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: 'gomod'
4+
directory: '/'
5+
schedule:
6+
interval: 'weekly'
7+
commit-message:
8+
prefix: 'chore(deps):'
9+
open-pull-requests-limit: 10
10+
groups:
11+
gomod-version-updates:
12+
patterns:
13+
- '*'
14+
applies-to: 'version-updates'
15+
gomod-security-updates:
16+
patterns:
17+
- '*'
18+
applies-to: 'security-updates'
19+
20+
- package-ecosystem: 'github-actions'
21+
directory: '/'
22+
schedule:
23+
interval: 'weekly'
24+
commit-message:
25+
prefix: 'chore(deps):'
26+
open-pull-requests-limit: 10
27+
groups:
28+
actions-version-updates:
29+
patterns:
30+
- '*'
31+
applies-to: 'version-updates'
32+
actions-security-updates:
33+
patterns:
34+
- '*'
35+
applies-to: 'security-updates'
36+
37+
- package-ecosystem: 'docker'
38+
directory: '/'
39+
schedule:
40+
interval: 'weekly'
41+
commit-message:
42+
prefix: 'chore(deps):'
43+
open-pull-requests-limit: 10
44+
groups:
45+
actions-version-updates:
46+
patterns:
47+
- '*'
48+
applies-to: 'version-updates'
49+
actions-security-updates:
50+
patterns:
51+
- '*'
52+
applies-to: 'security-updates'

.github/pull_request_template.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<!--- Provide a general summary of your changes in the Title above -->
2+
3+
## Description
4+
5+
<!--- Describe your changes -->
6+
7+
## Related Issue
8+
9+
<!--- This project only accepts pull requests related to open issues -->
10+
<!--- If suggesting a new feature or change, please discuss it in an issue first -->
11+
<!--- If fixing a bug, there should be an issue describing it with steps to reproduce -->
12+
<!--- Please link to the issue here: -->
13+
14+
## Motivation and Context
15+
16+
<!--- Why is this change required? What problem does it solve? -->
17+
18+
## How Has This Been Tested?
19+
20+
<!--- Please describe in detail how you tested your changes. -->
21+
<!--- Include details of your testing environment, and the tests you ran to -->
22+
<!--- see how your change affects other areas of the code, etc. -->
23+
24+
## Documentation:
25+
26+
<!--- Upon PR's approval, link the wiki page for your corresponding changes here. -->
27+
28+
## Checklist:
29+
30+
- [ ] I have updated the documentation accordingly.
31+
- [ ] I have assigned the correct milestone or created one if non-existent.
32+
- [ ] I have correctly labeled this pull request.
33+
- [ ] I have linked the corresponding issue in this description.
34+
- [ ] I have requested a review from at least 2 reviewers
35+
- [ ] I have checked the base branch of this pull request
36+
- [ ] I have checked my code for any possible security vulnerabilities

.github/workflows/format.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Format Code (Gofmt)
2+
3+
on: push
4+
5+
permissions:
6+
contents: write
7+
8+
defaults:
9+
run:
10+
working-directory: ./
11+
12+
jobs:
13+
code-formatting:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
20+
- name: Setup Go
21+
uses: actions/setup-go@v5
22+
with:
23+
go-version-file: 'go.mod'
24+
25+
- name: Run Gofmt
26+
run: make format
27+
28+
- name: Commit and Push Changes
29+
uses: stefanzweifel/git-auto-commit-action@v5
30+
with:
31+
commit_message: Apply formatting
32+
commit_options: '--no-verify'
33+
repository: .
34+
commit_user_name: github-actions[bot]
35+
commit_user_email: github-actions[bot]@users.noreply.github.com
36+
commit_author: GitHub Actions <actions@github.com>

.github/workflows/lint.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Lint Code (Golint)
2+
3+
on: push
4+
5+
permissions:
6+
contents: write
7+
8+
defaults:
9+
run:
10+
working-directory: ./
11+
12+
jobs:
13+
code-linting:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
20+
- name: Setup Go
21+
uses: actions/setup-go@v5
22+
with:
23+
go-version-file: 'go.mod'
24+
25+
- name: Run GolangCILint
26+
uses: golangci/golangci-lint-action@v9
27+
with:
28+
version: latest

.github/workflows/release.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Release to Github
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
permissions:
9+
contents: write
10+
11+
defaults:
12+
run:
13+
working-directory: ./
14+
15+
jobs:
16+
publish-package:
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@v4
22+
23+
- name: Setup Go
24+
uses: actions/setup-go@v5
25+
with:
26+
go-version-file: 'go.mod'
27+
28+
- name: Install Semantic Release
29+
run: |
30+
npm install --global semantic-release
31+
npm install --global @semantic-release/git
32+
npm install --global @semantic-release/exec
33+
34+
- name: Run semantic-release
35+
uses: mridang/action-semantic-release@v1.0.0
36+
with:
37+
github-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)