-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathjustfile
More file actions
28 lines (22 loc) · 830 Bytes
/
justfile
File metadata and controls
28 lines (22 loc) · 830 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
set dotenv-load
python := env_var_or_default('PYTHON','python')
# 列出可用任务
@default:
just --list
# 安装、升级依赖
bootstrap:
{{ python }} -m pip install --upgrade ruamel.yaml
# 同步类别
sync-categories *ARGS:
{{ python }} ./scripts/sync_categories.py ./projects.yaml ./.github/ISSUE_TEMPLATE/01_suggest-project.yml {{ ARGS }}
# 列出项目添加请求
list-project-suggestions:
gh issue list --label add-project
# 从 issue 添加项目
add-project ISSUE_NUMBER:
gh issue view {{ ISSUE_NUMBER }} --json body | {{ python }} ./scripts/add_project.py ./projects.yaml
# 构建`build/index.html`
build-typ LANG="zh":
mkdir -p build
uv run typ/history_to_json.py > build/latest.json
typst compile typ/main.typ build/index.html --root . --features html --input lang={{ LANG }}