Skip to content

Commit a110e76

Browse files
winstonsunggithub-actions[bot]
authored andcommitted
Version 0.1.14
Change-Id: I0ed50156553e78fb3e6adb2d796d63151e7011f9
0 parents  commit a110e76

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+11027
-0
lines changed

.coderabbit.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
2+
language: "en-US"
3+
early_access: false
4+
tone_instructions: "You are a smart cat"
5+
reviews:
6+
profile: "assertive"
7+
path_instructions:
8+
- path: "templates/*.html"
9+
instructions:
10+
"All text should follow sparanoid/chinese-copywriting-guidelines. There should be space between English and Chinese."
11+
request_changes_workflow: false
12+
high_level_summary: true
13+
poem: true
14+
review_status: true
15+
collapse_walkthrough: false
16+
auto_review:
17+
enabled: true
18+
drafts: true
19+
base_branches:
20+
- main
21+
- development
22+
chat:
23+
auto_reply: true

.env.example

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# 這是一個範例檔案,請複製一份 .env.example 並命名為 .env
2+
# 並將以下的設定值填入
3+
4+
# Database configuration
5+
MYSQL_USER=資料庫使用者
6+
MYSQL_PASSWORD=資料庫使用者密碼
7+
MYSQL_PORT=資料庫連接埠
8+
MYSQL_DATABASE=資料庫名稱
9+
HOST=資料庫主機位址
10+
11+
# Global configuration
12+
DISCORD_TOKEN=Discord機器人token
13+
GUILD_ID=機器人所在伺服器ID
14+
15+
# Flask configuration
16+
SECRET_KEY=隨機字串,給 flask session 使用
17+
DISCORD_CLIENT_ID=Discord Client ID
18+
DISCORD_CLIENT_SECRET=Discord Client Secret,到 Discord Developer Portal 取得
19+
DISCORD_REDIRECT_URI=商店網址/callback
20+
GITHUB_CLIENT_ID=GitHub Client ID,到 GitHub Developer 取得
21+
GITHUB_CLIENT_SECRET=GitHub Client Secret
22+
GITHUB_REDIRECT_URI=GitHub OAuth Redirect URI
23+
GITHUB_DISCORD_REDIRECT_URI=
24+
SEND_GIFT_ROLE=允許發送禮物的身分組ID,多個身分組ID以逗號分隔

.gitattributes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
*.html eol=lf
2+
*.json eol=lf
3+
*.py eol=lf
4+
*.toml eol=lf

.github/FUNDING.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# If you have any resources like to share with us, feel free to contact us!
2+
3+
custom: [ 'mailto:contact@scaict.org', 'https://scaict.org' ]
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
name: 回報彩蛋 "Feature" report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: 'bug'
6+
assignees: ''
7+
8+
---
9+
10+
**問題說明 Describe the feature**
11+
你有什麼問題? A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
重現錯誤的步驟 Steps to reproduce the behavior:
15+
16+
1. Go to '...'
17+
2. Click on '....'
18+
3. Scroll down to '....'
19+
4. See error
20+
21+
**Expected behavior**
22+
你想要怎樣? A clear and concise description of what you expected to happen.
23+
24+
**Screenshots**
25+
若你覺得有幫助可以截圖 If applicable, add screenshots to help explain your problem.
26+
27+
**Additional context**
28+
還有什麼想說的? Add any other context about the problem here.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
name: 許願池 Feature request
3+
about: 給點建議 Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
## 你想怎樣? What do you want?
11+
12+
## 為什麼? Why?

.github/dependabot.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
version: 2
2+
3+
updates:
4+
- package-ecosystem: "github-actions"
5+
directory: "/"
6+
schedule:
7+
interval: "daily"
8+
open-pull-requests-limit: 10
9+
target-branch: "dev"
10+
- package-ecosystem: "pip"
11+
directory: "/"
12+
schedule:
13+
interval: "daily"
14+
open-pull-requests-limit: 10
15+
target-branch: "dev"

.github/workflows/black.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Black
2+
3+
on:
4+
pull_request:
5+
push:
6+
workflow_dispatch:
7+
8+
jobs:
9+
build:
10+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == true
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
python-version: ["3.12"]
15+
steps:
16+
- if: github.event_name != 'pull_request'
17+
uses: actions/checkout@v6
18+
- if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == true
19+
uses: actions/checkout@v6
20+
with:
21+
ref: ${{ github.event.pull_request.head.ref }}
22+
- name: Set up Python ${{ matrix.python-version }}
23+
uses: actions/setup-python@v6
24+
with:
25+
python-version: ${{ matrix.python-version }}
26+
- name: Install uv
27+
uses: astral-sh/setup-uv@v5
28+
- name: Setup venv
29+
run: |
30+
uv venv
31+
- name: Install dependencies
32+
run: |
33+
uv sync --group dev --locked
34+
- name: Formatting the code with Black
35+
run: |
36+
uv run black $(git ls-files '*.py')
37+
- name: Git config
38+
run: |
39+
git config --local user.name "github-actions[bot]"
40+
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
41+
- name: Git diff
42+
run: |
43+
git diff HEAD || true
44+
- name: Git add
45+
run: |
46+
git add .
47+
- name: Git commit & push
48+
run: |
49+
git diff-index --quiet HEAD || ( git commit -m "Format \"$(git show -s --format=%s)\" using Black" && git push )

.github/workflows/notion.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Sync issues to Notion
2+
3+
on:
4+
issues:
5+
types: [opened, edited, deleted, reopened, closed]
6+
workflow_dispatch:
7+
8+
jobs:
9+
sync:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Notion GitHub Issues Automation
13+
uses: Edit-Mr/GitHub-issue-2-Notion@main
14+
with:
15+
repo: ${{ github.repository }}
16+
NOTION_API_KEY: ${{ secrets.NOTION_API_KEY }}
17+
NOTION_DATABASE_ID: ${{ secrets.NOTION_DATABASE_ID }}

.github/workflows/pylint.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Pylint
2+
3+
on:
4+
pull_request:
5+
push:
6+
workflow_dispatch:
7+
8+
jobs:
9+
build:
10+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == true
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
python-version: ["3.12"]
15+
steps:
16+
- uses: actions/checkout@v6
17+
- name: Set up Python ${{ matrix.python-version }}
18+
uses: actions/setup-python@v6
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
- name: Install uv
22+
uses: astral-sh/setup-uv@v5
23+
- name: Setup venv
24+
run: |
25+
uv venv
26+
- name: Install dependencies
27+
run: |
28+
uv sync --group dev --locked
29+
- name: Analysing the code with Pylint
30+
run: |
31+
uv run pylint $(git ls-files '*.py')

0 commit comments

Comments
 (0)