Skip to content

Commit

Permalink
📝 add some templates.
Browse files Browse the repository at this point in the history
  • Loading branch information
kamiertop committed Apr 8, 2024
1 parent 7414763 commit 7794a5e
Show file tree
Hide file tree
Showing 4 changed files with 114 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -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.
26 changes: 26 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -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
21 changes: 21 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!--
感谢你的拉取请求 🤗
请确保拉取请求被限定在一个类中(文档或功能之类的),而且让它尽可能地小。你可以开多个 pr(Pull Request, 拉取请求) 而不是单开一个很大的。
-->

<!-- 如果这个拉取请求关闭了议题,请在下面提及 -->
Closes # <!-- 对应议题的序号 -->

## 📑 描述
<!-- 为 pr 添加一个简短的描述-->

## ✅ 检查
<!-- 确保你的 pr 通过了 CI(Continuous Integration, 持续集成) 检查,并且根据需要选择以下选项 - -->
- [ ] 我的拉取请求符合本项目的代码风格
- [ ] 我的代码需要修改文档
- [ ] 我已按要求更新了文件
- [ ] 所有测试均已通过

## 补充信息
<!-- 任何补充信息,像破坏性更新(Breaking Change)、依赖添加(Dependency Added)、截图(Screenshot)和新旧行为的对比等等 -->
29 changes: 29 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 7794a5e

Please sign in to comment.