diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml new file mode 100644 index 0000000..1d03c0d --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -0,0 +1,38 @@ +name: 🐛Bug Report +description: File a bug report here +title: "[BUG]: " +labels: ["bug"] +assignees: ["kamiertop"] +body: + - type: markdown + attributes: + value: | + Thanks for taking the time to fill out this bug report 🤗 + Make sure there aren't any open/closed issues for this topic 😃 + + - type: textarea + id: bug-description + attributes: + label: Description of the bug + description: Give us a brief description of what happened and what should have happened + validations: + required: true + + - type: textarea + id: steps-to-reproduce + attributes: + label: Steps To Reproduce + description: Steps to reproduce the behavior. + placeholder: | + 1. Go to '...' + 2. Click on '...' + 3. Scroll down to '...' + 4. See error + validations: + required: true + - type: textarea + id: additional-information + attributes: + label: Additional Information + description: | + Provide any additional information such as logs, screenshots, likes, scenarios in which the bug occurs so that it facilitates resolving the issue. \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml new file mode 100644 index 0000000..7982c07 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -0,0 +1,26 @@ +name: ✨Feature Request +description: Request a new feature or enhancement +labels: ["enhancement"] +assignees: ["kamiertop"] +title: "[FEAT]: " +body: + - type: markdown + attributes: + value: | + Please make sure this feature request hasn't been already submitted by someone by looking through other open/closed issues + + - type: textarea + id: description + attributes: + label: Description + description: Give me a brief description of the feature or enhancement you would like + validations: + required: true + + - type: textarea + id: additional-information + attributes: + label: Additional Information + description: Give me some additional information on the feature request like proposed solutions, links, screenshots, etc. + validations: + required: false \ No newline at end of file diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..bf36cd5 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,21 @@ + + + +Closes # + +## 📑 描述 + + +## ✅ 检查 + +- [ ] 我的拉取请求符合本项目的代码风格 +- [ ] 我的代码需要修改文档 +- [ ] 我已按要求更新了文件 +- [ ] 所有测试均已通过 + +## 补充信息 + \ No newline at end of file diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..f3056f5 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,29 @@ +name: build and release +on: + workflow_dispatch: + inputs: + tag: + description: 'tag/version' + required: true + push: + tags: + - 'v*' + +permissions: + contents: write + +run-name: 'version: ${{inputs.tag}}' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: set up go env + uses: actions/setup-go@v5 + with: + go-version: '1.22.0' + check-latest: false + cache-dependency-path: go.sum + + - name: build + run: CGO_ENABLED=0 go build -o hertz-wrap main.go