diff options
Diffstat (limited to '.github')
-rw-r--r-- | .github/FUNDING.yml | 2 | ||||
-rw-r--r-- | .github/ISSUE_TEMPLATE/----------bug-report.md | 33 | ||||
-rw-r--r-- | .github/ISSUE_TEMPLATE/-------feature-request.md | 22 | ||||
-rw-r--r-- | .github/ISSUE_TEMPLATE/-------question-consulting.md | 14 | ||||
-rw-r--r-- | .github/workflows/lint.yml | 50 |
5 files changed, 79 insertions, 42 deletions
diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..8110394 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,2 @@ +open_collective: atri +custom: ["https://afdian.net/@Kyomotoi"] diff --git a/.github/ISSUE_TEMPLATE/----------bug-report.md b/.github/ISSUE_TEMPLATE/----------bug-report.md new file mode 100644 index 0000000..2bbca4e --- /dev/null +++ b/.github/ISSUE_TEMPLATE/----------bug-report.md @@ -0,0 +1,33 @@ +--- +name: 漏洞/错误报告 | Bug report +about: 提交在运行本项目时出现的问题,以便我们进行改进. +title: '' +labels: bug +assignees: Kyomotoi + +--- + +**描述错误 | Describe the bug** +请尽可能地使用简洁语言描述,以方便开发者快速定位重点. + +**如何复现 | To Reproduce** +告诉我们该错误是如何触发的: +1. Go to '...' +2. Click on '....' +3. Scroll down to '....' +4. See error + +**错误预期行为 | Expected behavior** +请尽可能地使用简洁语言描述,以方便开发者快速定位重点. + +**截图 | Screenshots** +可以的话,请提供相关截图. + +**操作环境 | Desktop:** + - OS: [e.g. Linux] + - Platform Info: [e.g. 2c2g 30g (2 core cpu 2g memories 30g storage)] + - ATRI Version: [e.g. YHN-001-A05.fix1] + - Runtime Area: [e.g. HongKong] + +**补充内容 | Additional context** +你可以在此添加其它说明,或向我们提供你的解决方案. diff --git a/.github/ISSUE_TEMPLATE/-------feature-request.md b/.github/ISSUE_TEMPLATE/-------feature-request.md new file mode 100644 index 0000000..9ecd370 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/-------feature-request.md @@ -0,0 +1,22 @@ +--- +name: 功能需求 | Feature request +about: 向我们提供你的创意. +title: '' +labels: enhancement +assignees: Kyomotoi + +--- + +**描述你的大致想法 | Describe your idea** +请尽可能地使用简洁的语言,以便我们快速定位重点. + +**描述你想要的解决方案 | Describe the solution you'd like** +请尽可能地使用简洁的语言,以便我们快速定位重点. + +**操作环境 | Desktop:** + - OS: [e.g. Linux] + - Platform Info: [e.g. 2c2g 30g (2 core cpu 2g memories 30g storage)] + - Runtime Area: [e.g. HongKong] + +**补充内容 | Additional context** +你可以在此添加其它说明,或向我们提供你的解决方案. diff --git a/.github/ISSUE_TEMPLATE/-------question-consulting.md b/.github/ISSUE_TEMPLATE/-------question-consulting.md new file mode 100644 index 0000000..0d334a3 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/-------question-consulting.md @@ -0,0 +1,14 @@ +--- +name: 问题咨询 | Question consulting +about: 描述你所困惑,我们很可能解答. +title: '' +labels: question +assignees: Kyomotoi + +--- + +**描述问题 | Describe the question** +请尽可能地使用简洁语言描述,以方便开发者快速定位重点. + +**补充内容 | Additional context** +你可以在此添加其它说明. diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 32499dd..0e113ec 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -17,67 +17,33 @@ jobs: steps: - name: Checkout 🛎️ - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Setup Python 🐍 - uses: actions/setup-python@v2 + uses: actions/[email protected] with: python-version: 3.8 - - uses: Gr1N/setup-poetry@v4 + - uses: Gr1N/setup-poetry@v7 - - uses: actions/cache@v2 + - uses: actions/[email protected] with: path: ~/.cache/pypoetry key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }} - name: Install Dependencies 🔧 env: - POETRY_VIRTUALENVS_CREATE: "false" + POETRY_VIRTUALENVS_CREATE: "true" run: | poetry install python -m pip install --upgrade pip - pip install flake8 + pip install black + - name: Run Linters uses: wearerequired/[email protected] with: auto_fix: true black: true + black_auto_fix: true commit_message: ":rotating_light: 自动进行代码格式化" git_email: [email protected] - - analyze: - runs-on: ubuntu-latest - name: CodeQL Analyze - - steps: - - name: Checkout 🛎️ - uses: actions/checkout@v2 - - - name: Setup Python 🐍 - uses: actions/setup-python@v2 - with: - python-version: 3.8 - - - uses: Gr1N/setup-poetry@v4 - - - uses: actions/cache@v2 - with: - path: ~/.cache/pypoetry - key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }} - - - name: Install Dependencies 🔧 - env: - POETRY_VIRTUALENVS_CREATE: "false" - run: | - poetry install - - name: Initialize CodeQL - uses: github/codeql-action/init@v1 - with: - languages: python - # Override the default behavior so that the action doesn't attempt - # to auto-install Python dependencies - setup-python-dependencies: false - - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v1 |