Skip to content

Add recreate workflow for stuck issues via CLI and GitHub comments#319

Merged
nicobistolfi merged 1 commit intomainfrom
vigilante/issue-299-add-a-recreate-workflow-for-stuck-issues-via-cli-and-github-comments
Mar 26, 2026
Merged

Add recreate workflow for stuck issues via CLI and GitHub comments#319
nicobistolfi merged 1 commit intomainfrom
vigilante/issue-299-add-a-recreate-workflow-for-stuck-issues-via-cli-and-github-comments

Conversation

@nicobistolfi
Copy link
Copy Markdown
Collaborator

Summary

  • Adds vigilante recreate --repo <owner/name> --issue <n> CLI command and @vigilanteai recreate GitHub comment command to duplicate a stuck issue as a fresh one, close the original as not planned, and clean up stale PR/branch/session artifacts.
  • Adds GitHub API helpers for issue creation, issue closure with not_planned reason, PR closure, and remote branch deletion.
  • Integrates recreate comment detection into the daemon scan loop alongside existing cleanup and resume processing.
  • Updates help text and shell completions (bash, fish, zsh) with the new command.

Validation

  • All existing tests pass (go test ./..., gofmt, go vet).
  • 9 new tests cover: CLI parsing/help, comment detection (FindRecreateComment, IsKnownVigilanteCommandComment), successful recreation, unwatched repo failure, issue details failure, partial cleanup errors, and recreation without an existing session.

Closes #299

🤖 Generated with Claude Code

Introduces `vigilante recreate --repo <owner/name> --issue <n>` and
`@vigilanteai recreate` comment detection to duplicate a stuck issue as
a fresh one, close the original as not planned, and tear down stale
PR/branch/session artifacts.
@nicobistolfi nicobistolfi merged commit 7afe00b into main Mar 26, 2026
1 check passed
@nicobistolfi nicobistolfi deleted the vigilante/issue-299-add-a-recreate-workflow-for-stuck-issues-via-cli-and-github-comments branch March 26, 2026 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a recreate workflow for stuck issues via CLI and GitHub comments

1 participant