issues-purge
Remove all closed issues from the repository via git rm and commit.
Arguments
None required.
Steps
- •Use the Glob tool to find all
.issues/*.tomlfiles. - •Read each issue file using the Read tool.
- •Identify all issues where
closed = true. - •If no closed issues are found, inform the user and stop.
- •Display the list of closed issues that will be purged (ID and title).
- •Ask the user to confirm the purge.
- •For each closed issue, run
git rm .issues/{id}.tomlusing the Bash tool. - •Run
git commit -m "Purge closed issues: {list of IDs}"using the Bash tool. - •Confirm to the user how many issues were purged.
Allowed tools
- •
Bash(git *)- for git rm and git commit - •
Read- for reading issue files - •
Glob- for finding issue files