Skip to content

Commit

Permalink
💥 v2.3.5 再次进行重构,优化结构与文档
Browse files Browse the repository at this point in the history
  • Loading branch information
ANGJustinl committed Feb 14, 2024
1 parent 2ff0a28 commit d469df0
Show file tree
Hide file tree
Showing 53 changed files with 6,014 additions and 1,076 deletions.
473 changes: 0 additions & 473 deletions .dockerignore

This file was deleted.

32 changes: 32 additions & 0 deletions .github/ISSUE_TEMPLATE/issue-template-question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
name: 🐛 问题报告或求助
about: 在使用中遇到问题,希望得到帮助
title: '[问题]标题'
labels: question
assignees: ''

---

### 确认

- 我的Bot版本已更新到最新,且已尝试使用`nb paimon install`更新依赖库
- 我已查阅[文档](https://blog.angforever.top/2023/01/06/ANGANGBOT1/),无相关解决方案
- 我已确认[issue](https://github.com/ANGJustinl/ANGANGBOT/issues)中没有类似的问题或仍然得不到解决

### 环境信息

- 系统版本: Windows10(example)
- Python版本: 3.10.0(example)
- Nonebot2版本: 2.1.0(example)

### 问题描述

简单的描述问题发生过程或表现...

### 问题截图

提供问题或日志截图...

### 复现步骤[可选]

描述问题复现过程...
24 changes: 24 additions & 0 deletions .github/ISSUE_TEMPLATE/issue-template-suggestion.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: ✨ 功能需求或建议
about: 为项目提出一个新的想法或建议
title: '[建议]标题'
labels: enhancement
assignees: ''

---

### 当前不足

简单描述本项目当前存在的不足之处...

### 建议内容

描述你想要的功能或建议...

- 建议一
- 建议二
- ...

### 参考示例[可选]

是否有其他项目或者工具有类似的功能,可提供链接或截图...
21 changes: 21 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
changelog:
categories:
- title: 💥 破坏性更新
labels:
- Semver-Major
- breaking-change
- title: ✨ 新特性
labels:
- enhancement
- title: 🐛 BUG修复
labels:
- bug
- title: 📝 文档更新
labels:
- documentation
- title: 💫 杂项
labels:
- "*"
exclude:
labels:
- dependencies
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Docker Hub Release
on:
push:
tags:
- "v*"
- "v**"

jobs:
docker:
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/dependencies.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Update Dependencies

on:
push:
paths:
- 'poetry.lock'
- 'pyproject.toml'
workflow_dispatch:

jobs:
UpdateDependencies:
runs-on: ubuntu-latest

steps:
- name: Checkout source
uses: actions/checkout@master

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.10

- name: Set up Poetry
uses: Gr1N/setup-poetry@v8

- name: lock poetry.lock
run: poetry lock

- name: export requirements.txt
run: poetry export --without-hashes -f requirements.txt --output requirements.txt

- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
author_name: github-actions[bot]
author_email: github-actions[bot]@users.noreply.github.com
message: ':wrench: 自动更新依赖文件'
add: |
'poetry.lock'
'requirements.txt'
10 changes: 5 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# ANGANGBOT #
/data
/docker
/cache
data
docker
cache
*.log
*.png
*.gif
.env.dev
.env.prod
set.json
setu_perm_cfg.json
dev.*.py
.idea

# Byte-compiled / optimized / DLL files
__pycache__/
Expand Down
7 changes: 1 addition & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,11 @@ ci:
autoupdate_commit_msg: ":arrow_up: auto update by pre-commit hooks"
repos:
- repo: https://github.com/psf/black
rev: 23.3.0
rev: 24.2.0
hooks:
- id: black
stages: [commit]

- repo: https://github.com/pycqa/isort
rev: 5.10.1
hooks:
- id: isort
args: ["--profile", "black", "--filter-files"]

- repo: https://github.com/nonebot/nonemoji
rev: v0.1.4
Expand Down
34 changes: 0 additions & 34 deletions Dockerfile

This file was deleted.

Loading

0 comments on commit d469df0

Please sign in to comment.