forked from go-admin-team/go-admin
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'go-admin-team:master' into master
- Loading branch information
Showing
74 changed files
with
2,487 additions
and
2,439 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
blank_issues_enabled: true | ||
contact_links: | ||
- name: 🆕 Create new issue | ||
url: http://new-issue.go-admin.dev | ||
about: The issue which is not created via http://new-issue.go-admin.dev will be closed immediately. | ||
- name: 🆕 创建一个新 Issue | ||
url: http://new-issue.go-admin.dev | ||
about: 不是用 http://new-issue.go-admin.dev 创建的 issue 会被机器人自动关闭。 |
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,66 @@ | ||
<!-- | ||
First of all, thank you for your contribution! 😄 | ||
For requesting to pull a new feature or bugfix, please send it from a feature/bugfix branch based on the `master` branch. | ||
Before submitting your pull request, please make sure the checklist below is confirmed. | ||
Your pull requests will be merged after one of the collaborators approve. | ||
Thank you! | ||
--> | ||
|
||
[[中文版模板 / Chinese template](https://github.com/go-admin-team/go-admin/blob/master/.github/PULL_REQUEST_TEMPLATE/pr_cn.md)] | ||
|
||
### 🤔 This is a ... | ||
|
||
- [ ] New feature | ||
- [ ] Bug fix | ||
- [ ] Site / documentation update | ||
- [ ] Demo update | ||
- [ ] Component style update | ||
- [ ] TypeScript definition update | ||
- [ ] Bundle size optimization | ||
- [ ] Performance optimization | ||
- [ ] Enhancement feature | ||
- [ ] Internationalization | ||
- [ ] Refactoring | ||
- [ ] Code style optimization | ||
- [ ] Test Case | ||
- [ ] Branch merge | ||
- [ ] Other (about what?) | ||
|
||
### 🔗 Related issue link | ||
|
||
<!-- | ||
1. Put the related issue or discussion links here. | ||
--> | ||
|
||
### 💡 Background and solution | ||
|
||
<!-- | ||
1. Describe the problem and the scenario. | ||
2. GIF or snapshot should be provided if includes UI/interactive modification. | ||
3. How to fix the problem, and list the final API implementation and usage sample if that is a new feature. | ||
--> | ||
|
||
### 📝 Changelog | ||
|
||
<!-- | ||
Describe changes from the user side, and list all potential break changes or other risks. | ||
---> | ||
|
||
| Language | Changelog | | ||
| ---------- | --------- | | ||
| 🇺🇸 English | | | ||
| 🇨🇳 Chinese | | | ||
|
||
### ☑️ Self-Check before Merge | ||
|
||
⚠️ Please check all items below before review. ⚠️ | ||
|
||
- [ ] Doc is updated/provided or not needed | ||
- [ ] Demo is updated/provided or not needed | ||
- [ ] TypeScript definition is updated/provided or not needed | ||
- [ ] Changelog is provided or not needed |
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 @@ | ||
<!-- | ||
首先,感谢你的贡献!😄 | ||
新特性请提交至 feature 分支,其余可提交至 master 分支。 | ||
在维护者审核通过后会合并。 | ||
请确保填写以下 pull request 的信息,谢谢!~ | ||
--> | ||
|
||
[[English Template / 英文模板](https://github.com/go-admin-team/go-admin/blob/master/.github/PULL_REQUEST_TEMPLATE.md)] | ||
|
||
### 🤔 这个变动的性质是? | ||
|
||
- [ ] 新特性提交 | ||
- [ ] 日常 bug 修复 | ||
- [ ] 站点、文档改进 | ||
- [ ] 演示代码改进 | ||
- [ ] 组件样式/交互改进 | ||
- [ ] TypeScript 定义更新 | ||
- [ ] 包体积优化 | ||
- [ ] 性能优化 | ||
- [ ] 功能增强 | ||
- [ ] 国际化改进 | ||
- [ ] 重构 | ||
- [ ] 代码风格优化 | ||
- [ ] 测试用例 | ||
- [ ] 分支合并 | ||
- [ ] 其他改动(是关于什么的改动?) | ||
|
||
### 🔗 相关 Issue | ||
|
||
<!-- | ||
1. 描述相关需求的来源,如相关的 issue 讨论链接。 | ||
--> | ||
|
||
### 💡 需求背景和解决方案 | ||
|
||
<!-- | ||
1. 要解决的具体问题。 | ||
2. 列出最终的 API 实现和用法。 | ||
3. 涉及UI/交互变动需要有截图或 GIF。 | ||
--> | ||
|
||
### 📝 更新日志 | ||
|
||
<!-- | ||
从用户角度描述具体变化,以及可能的 breaking change 和其他风险。 | ||
--> | ||
|
||
| 语言 | 更新描述 | | ||
| ------- | -------- | | ||
| 🇺🇸 英文 | | | ||
| 🇨🇳 中文 | | | ||
|
||
### ☑️ 请求合并前的自查清单 | ||
|
||
⚠️ 请自检并全部**勾选全部选项**。⚠️ | ||
|
||
- [ ] 文档已补充或无须补充 | ||
- [ ] 代码演示已提供或无须提供 | ||
- [ ] TypeScript 定义已补充或无须补充 | ||
- [ ] Changelog 已提供或无须提供 |
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,57 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
env: | ||
IMAGE_NAME: registry.ap-northeast-1.aliyuncs.com/go-admin/go-admin-api # 镜像名称 | ||
TAG: ${{ github.sha }} | ||
IMAGE_NAME_TAG: registry.ap-northeast-1.aliyuncs.com/go-admin/go-admin-api:${{ github.sha }} | ||
|
||
jobs: | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.18 | ||
|
||
- name: Tidy | ||
run: go mod tidy | ||
|
||
- name: Build | ||
run: env CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -tags "sqlite3,json1" --ldflags "-extldflags -static" -o main . | ||
|
||
- name: Build the Docker image and push | ||
run: | | ||
docker login --username=${{ secrets.DOCKER_USERNAME }} registry.ap-northeast-1.aliyuncs.com --password=${{ secrets.DOCKER_PASSWORD }} | ||
echo "************ docker login end" | ||
docker build -t go-admin-api:latest . | ||
echo "************ docker build end" | ||
docker tag go-admin-api ${{ env.IMAGE_NAME_TAG }} | ||
echo "************ docker tag end" | ||
docker images | ||
echo "************ docker images end" | ||
docker push ${{ env.IMAGE_NAME_TAG }} # 推送 | ||
echo "************ docker push end" | ||
- name: Restart server # 第五步,重启服务 | ||
uses: appleboy/ssh-action@master | ||
env: | ||
GITHUB_SHA_X: ${GITHUB_SHA} | ||
with: | ||
host: ${{ secrets.SSH_HOST }} # 下面三个配置与上一步类似 | ||
username: ${{ secrets.SSH_USERNAME }} | ||
key: ${{ secrets.DEPLOY_KEY }} | ||
# 重启的脚本,根据自身情况做相应改动,一般要做的是migrate数据库以及重启服务器 | ||
script: | | ||
sudo docker rm -f go-admin-api | ||
sudo docker login --username=${{ secrets.DOCKER_USERNAME }} registry.ap-northeast-1.aliyuncs.com --password=${{ secrets.DOCKER_PASSWORD }} | ||
sudo docker run -d -p 8000:8000 --name go-admin-api ${{ env.IMAGE_NAME_TAG }} |
This file was deleted.
Oops, something went wrong.
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,22 @@ | ||
name: Issue Check Inactive | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 */15 * *" | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
issue-check-inactive: | ||
permissions: | ||
issues: write # for actions-cool/issues-helper to update issues | ||
pull-requests: write # for actions-cool/issues-helper to update PRs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: check-inactive | ||
uses: actions-cool/issues-helper@v3 | ||
with: | ||
actions: 'check-inactive' | ||
inactive-label: 'Inactive' | ||
inactive-day: 30 |
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,32 @@ | ||
name: Issue Close Require | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
issue-close-require: | ||
permissions: | ||
issues: write # for actions-cool/issues-helper to update issues | ||
pull-requests: write # for actions-cool/issues-helper to update PRs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: need reproduce | ||
uses: actions-cool/issues-helper@v3 | ||
with: | ||
actions: 'close-issues' | ||
labels: '🤔 Need Reproduce' | ||
inactive-day: 3 | ||
|
||
- name: needs more info | ||
uses: actions-cool/issues-helper@v3 | ||
with: | ||
actions: 'close-issues' | ||
labels: 'needs-more-info' | ||
inactive-day: 3 | ||
body: | | ||
Since the issue was labeled with `needs-more-info`, but no response in 3 days. This issue will be closed. If you have any questions, you can comment and reply. | ||
由于该 issue 被标记为需要更多信息,却 3 天未收到回应。现关闭 issue,若有任何问题,可评论回复。 |
Oops, something went wrong.