Automate cleanup of completed issue specs in docs/issues with a non-interactive script
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 54/100
Hướng nghiên cứu
Read .github/skills/dev/planning/cleanup-completed-issues/SKILL.md and inspect the existing docs/issues/open/ and docs/issues/closed/ layout to understand the documented Stage 1 workflow. Start by locating the project’s conventions for scripts and tests; the issue does not name a specific implementation language or test location. Done means the Stage 1 archive flow is non-interactive, verifies GitHub issue state, defaults to dry-run, emits JSON results with diagnostics on stderr, and has basic validation for key paths.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
Create an automation script for the skill at .github/skills/dev/planning/cleanup-completed-issues/SKILL.md to reduce manual work and mistakes when cleaning completed issues.
The script should support the two-stage lifecycle already documented:
- Stage 1: move closed issue specs from
docs/issues/open/todocs/issues/closed/ - Stage 2: delete old specs from
docs/issues/closed/only when no longer referenced
Motivation
The current process is repetitive and easy to get wrong in batch operations.
Automating it would make maintenance faster and safer while keeping behavior aligned with the skill.
Proposed scope (phase 1)
Implement a script for Stage 1 archive with a strict, agent-friendly interface:
- Non-interactive CLI only (no prompts)
- Verify issue state on GitHub before moving
- Support dry run by default
- Support apply mode for real changes
- Produce structured JSON on stdout
- Send diagnostics to stderr
- Return meaningful non-zero exit codes on failure
Suggested flags:
--issues 1042,1178,...--all-closed-in-open(optional)--dry-run(default)--apply--json
Proposed scope (phase 2)
Add Stage 2 delete with stronger safeguards:
- Check references before delete (filename and issue references in docs)
- Refuse deletion if references are found unless explicit override is provided
- Keep
--dry-rundefault and require explicit confirmation flag for destructive actions
Acceptance criteria
- Script is added under the cleanup skill folder (for example
scripts/) -
SKILL.mddocuments the script(s), usage, examples, and prerequisites - Stage 1 move flow is fully automated and idempotent
- Script never blocks on interactive input
- Output is parseable JSON for results; diagnostics are separate
- Dry-run behavior is default
- Errors are explicit and actionable (invalid issue, open issue, missing file, ambiguous file)
- Basic tests or fixture-based validation for key paths are included
Notes
Reference guidance used for script design:
Key recommendations to follow:
- avoid interactive prompts
- provide clear
--help - use structured output
- separate stdout data from stderr diagnostics
- use safe defaults (
--dry-run) - support idempotent retries
- Ngôn ngữ chính
- Rust
- Star
- 532
- Fork
- 56
- Merge trung bình
- 11 giờ 20 phút
- Pull request đã merge (30 ngày)
- 282
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của torrust/torrust-tracker
-
Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
torrust/torrust-tracker#3080 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
torrust/torrust-tracker#3069 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
torrust/torrust-tracker#3058 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
torrust/torrust-tracker#2978 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
torrust/torrust-tracker#2332 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của torrust/torrust-tracker
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
Maintainer thường phản hồi trong vòng 1 ngày
-
marketing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Start here: how to contributeĐang mởdifficulty: easy docs help wanted tooling
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
-
bug help wanted ui
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
userFRM/egui-charts#4386 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
eliasstravik/herdr-projects#1605 · 1 bình luận ·