-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
208 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
name: Hotfix issue template | ||
about: Describe this issue template's purpose here. | ||
title: "[HOTFIX] YOUR_TITLE" | ||
labels: hotfix | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what to fix. | ||
|
||
**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. | ||
|
||
**Device (please complete the following information):** | ||
- Device: [e.g. Mac, iPhone] | ||
- OS: [e.g. iOS] | ||
- Browser [e.g. chrome, safari] | ||
- Version [e.g. 22] | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
# Basic set up for three package managers | ||
version: 2 | ||
updates: | ||
# Maintain dependencies for Composer | ||
- package-ecosystem: "gomod" | ||
directory: "/" | ||
schedule: | ||
interval: "monthly" | ||
directory: "./" | ||
reviewers: | ||
- "KostLinux" | ||
- "KostLinux" | ||
schedule: | ||
interval: "weekly" | ||
commit-message: | ||
prefix: '[Go Modules]' | ||
include: scope |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
run: | ||
# Default concurrency is an available CPU number | ||
concurrency: 4 | ||
|
||
# Timeout for analysis, e.g. 30s, 5m, default is 1m | ||
deadline: 5m | ||
|
||
# Include test files or not, default is true | ||
tests: true | ||
|
||
# Settings of specific linters | ||
linters-settings: | ||
gocyclo: | ||
min-complexity: 20 | ||
|
||
linters: | ||
# do not use `enable-all`: it's deprecated and will be removed soon. | ||
disable-all: true | ||
enable: | ||
- asasalint | ||
- asciicheck | ||
- bidichk | ||
- bodyclose | ||
- dogsled | ||
- durationcheck | ||
- errcheck | ||
- errchkjson | ||
- execinquery | ||
- exportloopref | ||
- forbidigo | ||
- gocognit | ||
- goconst | ||
- gocritic | ||
- godox | ||
- gofmt | ||
- gofumpt | ||
- goimports | ||
- goprintffuncname | ||
- gosimple | ||
- govet | ||
- ineffassign | ||
- misspell | ||
- nakedret | ||
- nestif | ||
- nilerr | ||
- nonamedreturns | ||
- prealloc | ||
- predeclared | ||
- revive | ||
- staticcheck | ||
- stylecheck | ||
- tenv | ||
- typecheck | ||
- unconvert | ||
- unparam | ||
- unused | ||
- usestdlibvars | ||
- whitespace | ||
|
||
issues: | ||
max-same-issues: 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Description | ||
|
||
Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change. | ||
|
||
Fixes # (issue) | ||
|
||
## Dependencies | ||
|
||
- Dependency 1 | ||
- Dependency 2 | ||
|
||
## Type of change | ||
|
||
- [ ] Bug fix (non-breaking change which fixes an issue) | ||
- [ ] New feature (non-breaking change which adds functionality) | ||
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) | ||
- [ ] This change requires a documentation update | ||
|
||
# How Has This Been Tested? | ||
|
||
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration | ||
|
||
- [ ] Some Feature Test A ( for example - API Request against third party API point ) | ||
- [ ] Some Feature Test B ( for example - API Data Response Check via Postman / Curl ) | ||
|
||
**Test Configuration**: | ||
* Device: | ||
* Tools (optional): | ||
* SDK (optional): | ||
|
||
# Checklist: | ||
|
||
- [ ] My code follows the style guidelines of this project | ||
- [ ] I have performed a self-review of my code | ||
- [ ] I have commented my code, particularly in hard-to-understand areas (optional) | ||
- [ ] I have made corresponding changes to the documentation (optional) | ||
- [ ] My changes generate no new warnings | ||
- [ ] I've performed/added tests/lints that prove my fix is effective or that my feature works (optional) | ||
|
||
Before creating pull request, look that all points under checklist are done! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: Build | ||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- edited | ||
- closed | ||
branches: | ||
- main | ||
|
||
permissions: | ||
contents: read | ||
packages: read | ||
statuses: write | ||
pull-requests: write | ||
|
||
jobs: | ||
read_changes: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
go: ${{ steps.changes.outputs.go }} | ||
src: ${{ steps.changes.outputs.src }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: dorny/paths-filter@v2 | ||
id: changes | ||
with: | ||
filters: | | ||
go: | ||
- 'main.go' | ||
- 'go.mod' | ||
- 'controller/**' | ||
- 'middleware/**' | ||
- 'model/**' | ||
- 'repository/**' | ||
- 'service/**' | ||
src: | ||
- '.github/**' | ||
- 'doc/**' | ||
golangci: | ||
needs: read_changes | ||
if: needs.read_changes.outputs.go == 'true' | ||
name: Lint Backend | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.21' | ||
cache: false | ||
|
||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v3 | ||
with: | ||
version: v1.54 | ||
working-directory: ./ | ||
args: --timeout=30m --config=./.golangci.yml --issues-exit-code=0 | ||
only-new-issues: true | ||
skip-cache: true | ||
skip-pkg-cache: true | ||
|