Skip to content

Commit

Permalink
Merge pull request #1 from flycash/main
Browse files Browse the repository at this point in the history
init project
  • Loading branch information
flycash authored Sep 1, 2021
2 parents 55c7255 + 0572c1d commit d622bb6
Show file tree
Hide file tree
Showing 14 changed files with 346 additions and 2 deletions.
38 changes: 38 additions & 0 deletions .github/issue_templates/Bug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#### English Only

Please check [existing issues](https://github.com/gotomicro/eql/issues) first to avoid duplication and answer the questions below before submitting your issue.

### Issue Type

This is a Bug Report.

### Summary

(Summarize the bug encountered concisely)

### What version of EQL are you using?


### What version of Go are you using?

(Get your go version by `go version`)

### Steps to reproduce

(How one can reproduce the issue - this is very important, please be as detailed as possible)
(You MUST provide database schemas or model definitions)

### What is the current bug behavior?

(What actually happens)

### What is the expected correct behavior?

(What you should see instead)

### Relevant logs and/or screenshots

(Paste any relevant logs - please use code blocks (```) to format console output,
logs, and code as it's very hard to read otherwise.)

/label ~Bug
31 changes: 31 additions & 0 deletions .github/issue_templates/Enhancement.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#### English Only

Please check [existing issues](https://github.com/gotomicro/eql/issues) first to avoid duplication and answer the questions below before submitting your issue.

Please take note Enhancement is a suggestion to existing features and codebase.
If you're requesting for a new feature, please select Feature.

### Issue Type

This is an Enhancement Suggestion .

### Summary

(State a summary of your enhancement suggestion)

### What version of EQL are you using?


### What version of Go are you using?

(Get your go version by `go version`)

### What is the current design/solution/implementation?

(If you can, link to the line of code that could be improved)

### What could be made better?

(What you think should be enhanced and how?)

/label ~Enhancement
28 changes: 28 additions & 0 deletions .github/issue_templates/Feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#### English Only

Please check [existing issues](https://github.com/gotomicro/eql/issues) first to avoid duplication and answer the questions below before submitting your issue.

### Issue Type

This is a Feature Request to GDBC.

### Use case(s)

(Please state use cases, what problem will this feature solve?)

### Proposed Solution

(Please describe your proposed design/solution, if any)

### Alternatives Considered

(Other possible options for solving the problem?)

### Additional Context

(Paste any relevant logs - please use code blocks (```) to format console output,
logs, and code as it's very hard to read otherwise.)

(If you can, link to the line of code that might be helpful to explain the context)

/label ~Feature
25 changes: 25 additions & 0 deletions .github/issue_templates/Question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#### English Only

Please check [existing issues](https://github.com/gotomicro/eql/issues) first to avoid duplication and answer the questions below before submitting your issue.

### Issue Type

This is a Question/Issue about EQL.

### What version of EQL are you using?


### What version of Go are you using?

(Get your go version by `go version`)

### What is your question/issue?

(Please be as detailed as possible)

(Paste any relevant logs - please use code blocks (```) to format console output,
logs, and code as it's very hard to read otherwise.)

(If you can, link to the line of code that might be responsible for the problem)

/label ~Question
58 changes: 58 additions & 0 deletions .github/linters/.golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Copyright 2021 gotomicro
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

run:
timeout: 5m
skip-files:
- generated.*
- gen.*

issues:
new: true

linters:
enable:
- asciicheck
- bodyclose
- deadcode
- depguard
- gci
- gocritic
- gofmt
- gofumpt
- goimports
- goprintffuncname
- gosimple
- govet
- ineffassign
- misspell
- nilerr
- rowserrcheck
- staticcheck
- structcheck
- stylecheck
- typecheck
- unconvert
- unused
- unparam
- varcheck
- whitespace
- errcheck
# disable:

linters-settings:
gci:
local-prefixes: github.com/gotomicro/eql
goimports:
local-prefixes: github.com/gotomicro/eql
44 changes: 44 additions & 0 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Copyright 2021 gotomicro
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: changelog

on:
pull_request:
types: [opened, synchronize, reopened, labeled, unlabeled]
branches:
- develop

jobs:
changelog:
runs-on: ubuntu-latest
if: "!contains(github.event.pull_request.labels.*.name, 'Skip Changelog')"

steps:
- uses: actions/checkout@v2

- name: Check for CHANGELOG changes
run: |
# Only the latest commit of the feature branch is available
# automatically. To diff with the base branch, we need to
# fetch that too (and we only need its latest commit).
git fetch origin ${{ github.base_ref }} --depth=1
if [[ $(git diff --name-only FETCH_HEAD | grep CHANGELOG) ]]
then
echo "A CHANGELOG was modified. Looks good!"
else
echo "No CHANGELOG was modified."
echo "Please add a CHANGELOG entry, or add the \"Skip Changelog\" label if not required."
false
fi
27 changes: 27 additions & 0 deletions .github/workflows/deepsource.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Copyright 2021 gotomicro
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

- name: DeepSource Test Coverage Action
# You may pin to the exact commit or the version.
# uses: deepsourcelabs/test-coverage-action@5dd75fd448df1d437bc9d658db0ee7d67a915c9f
uses: deepsourcelabs/test-coverage-action@v1.0.0
with:
# Programming language shortcode for which coverage is reported. Allowed values are — python, go
key:
# Path to the coverage data file. e.g. ./coverage.xml
coverage-file:
# DeepSource DSN of this repository. It is available under Settings → Reporting tab of the repository page on DeepSource.
dsn:
# Should the CI build fail if there is an error while uploading the report to DeepSource? Allowed values are — true, false
fail-ci-on-error: # optional
39 changes: 39 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Copyright 2021 gotomicro
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: Go

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17

- name: Build
run: go build -v ./...

- name: Test
run: go test -v ./...
33 changes: 33 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Copyright 2021 gotomicro
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: Mark stale issues and pull requests

on:
schedule:
- cron: "30 1 * * *"

jobs:
stale:

runs-on: ubuntu-latest

steps:
- uses: actions/stale@v4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'This issue is inactive for a long time.'
stale-pr-message: 'This PR is inactive for a long time'
stale-issue-label: 'inactive-issue'
stale-pr-label: 'inactive-pr'
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@

# Dependency directories (remove the comment below to include it)
# vendor/

.idea
*.iml
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
## Developing
- [Init Project](https://github.com/gotomicro/eql/pull/1)`:wq
13 changes: 13 additions & 0 deletions LICENSE_FILE_HEADER
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Copyright 2021 gotomicro

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# eql
A easy-use SQL builder.
# EQL
An easy-use SQL builder.
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/gotomicro/eql

go 1.17

0 comments on commit d622bb6

Please sign in to comment.