project-archive-done
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chineseproject-archive-done
project-archive-done
プロジェクト内の完了済み(Done)アイテムをアーカイブし、ボードを整理します。ビルトインの Auto-archive が設定済みの場合はその状況も確認します。
Archive completed (Done) items in the project to organize the board. Also checks the status if the built-in Auto-archive is configured.
前提条件
Prerequisites
- 対象の GitHub Project に完了アイテムが存在すること
- CLI がインストールされ、認証済みであること(
ghスコープ付き)project
- Completed items exist in the target GitHub Project
- The CLI is installed and authenticated (with the
ghscope)project
フロー
Flow
Step 1: Auto-archive の状況を確認する
Step 1: Check Auto-archive status
ビルトインの Auto-archive ワークフローが有効な場合は自動でアーカイブされる。設定状況をユーザーに確認する。
設定 URL:
(個人プロジェクトの場合: )
https://github.com/orgs/<owner>/projects/<number>/workflowshttps://github.com/users/<owner>/projects/<number>/workflows- Auto-archive が有効 → 基本的にスキルの実行は不要。即時アーカイブしたい場合のみ続行
- Auto-archive が無効 → このスキルで手動アーカイブを実行。必要に応じて Auto-archive の有効化も案内
If the built-in Auto-archive workflow is enabled, items will be archived automatically. Confirm the configuration status with the user.
Configuration URL:
(For personal projects: )
https://github.com/orgs/<owner>/projects/<number>/workflowshttps://github.com/users/<owner>/projects/<number>/workflows- Auto-archive enabled → Execution of this skill is basically unnecessary. Continue only if you want to archive immediately
- Auto-archive disabled → Perform manual archiving with this skill. Guide users to enable Auto-archive if needed
Step 2: プロジェクトアイテムを取得する
Step 2: Retrieve project items
bash
gh project item-list <number> \
--owner <owner> \
--format json \
--limit 999bash
gh project item-list <number> \
--owner <owner> \
--format json \
--limit 999Step 3: フィールドメタデータを取得する
Step 3: Retrieve field metadata
bash
gh project field-list <number> \
--owner <owner> \
--format jsonStatus フィールドの ID と "Done" オプションの ID を特定する。
bash
gh project field-list <number> \
--owner <owner> \
--format jsonIdentify the ID of the Status field and the ID of the "Done" option.
Step 4: 完了アイテムをフィルタする
Step 4: Filter completed items
Step 2 の結果から、Status が "Done" のアイテムを抽出する。
--querybash
gh project item-list <number> \
--owner <owner> \
--query "status:Done" \
--format jsonExtract items with Status set to "Done" from the results of Step 2.
If is available:
--querybash
gh project item-list <number> \
--owner <owner> \
--query "status:Done" \
--format jsonStep 5: ユーザーに確認する
Step 5: Confirm with the user
アーカイブ対象を表示:
以下の N 件の完了アイテムをアーカイブします:
- #42: feat: ソーシャルログイン(Done)
- #43: fix: バリデーションエラー(Done)
- #44: docs: API ドキュメント更新(Done)
実行しますか?Display items to be archived:
The following N completed items will be archived:
- #42: feat: Social Login (Done)
- #43: fix: Validation Error (Done)
- #44: docs: API Documentation Update (Done)
Do you want to proceed?Step 6: アーカイブを実行する
Step 6: Execute archiving
各アイテムをアーカイブ:
bash
gh project item-archive <number> \
--owner <owner> \
--id <item-id>Archive each item:
bash
gh project item-archive <number> \
--owner <owner> \
--id <item-id>Step 7: 結果を報告する
Step 7: Report results
undefinedundefinedアーカイブ結果
Archiving Results
- アーカイブ済み: N 件
- 残りアクティブアイテム: M 件
- ボード上の完了アイテム: 0 件
Auto-archive が無効の場合は有効化を推奨:💡 Auto-archive を有効にすると、Done から N 日経過したアイテムが自動でアーカイブされます。
設定: <workflows URL>
undefined- Archived: N items
- Remaining active items: M items
- Completed items on board: 0 items
If Auto-archive is disabled, recommend enabling it:💡 Enabling Auto-archive will automatically archive items N days after they are marked Done.
Configuration: <workflows URL>
undefined注意事項
Notes
- アーカイブ前に必ずユーザーの確認を得る
- アーカイブは元に戻せる()
gh project item-archive --undo - アーカイブされたアイテムはプロジェクトビューから非表示になるが、削除はされない
- Auto-archive ビルトインワークフローとの併用で手動実行の頻度を減らせる
- 特定の条件(日付範囲、ラベル等)でフィルタしてアーカイブすることも可能
- sandbox 環境での 併用:詳細は後述の「sandbox 環境での実行」節を参照
GIT_SSL_NO_VERIFY=1
- Always obtain user confirmation before archiving
- Archiving can be undone ()
gh project item-archive --undo - Archived items are hidden from the project view but not deleted
- Using together with the Auto-archive built-in workflow reduces the frequency of manual execution
- It is also possible to filter and archive items based on specific conditions (date range, labels, etc.)
- Using in sandbox environments: Refer to the "Execution in sandbox environments" section below for details
GIT_SSL_NO_VERIFY=1
sandbox 環境での実行
Execution in sandbox environments
sandbox で本スキルを実行する場合、ネットワーク越しの GitHub 操作には の併用を検討してください。本スキルの主なリモート操作は で、「リモート書き込み」判定は 要(本スキルは主に API 経由) です。コマンド分類の詳細と TLS 検証無効化の注意事項は を参照してください。
GIT_SSL_NO_VERIFY=1gh project item-archivedocs/sandbox-tls.mdWhen running this skill in a sandbox environment, consider using for GitHub operations over the network. The main remote operation of this skill is , and the "remote write" determination is Required (this skill mainly uses APIs). For details on command classification and precautions for disabling TLS verification, refer to .
GIT_SSL_NO_VERIFY=1gh project item-archivedocs/sandbox-tls.md