Skip to content

Conversation

@eyaprak
Copy link
Owner

@eyaprak eyaprak commented Jan 20, 2026

Adds a GitHub Actions workflow that automatically cleans up
template-specific files when the repository is forked:

  • Detects if the repository is a fork
  • Removes Claude PR review workflow and script
  • Removes related devDependencies (@anthropic-ai/sdk, @octokit/rest)
  • Self-destructs after cleanup is complete

This ensures forked repositories only contain the starter kit files.

Adds a GitHub Actions workflow that automatically cleans up
template-specific files when the repository is forked:

- Detects if the repository is a fork
- Removes Claude PR review workflow and script
- Removes related devDependencies (@anthropic-ai/sdk, @octokit/rest)
- Self-destructs after cleanup is complete

This ensures forked repositories only contain the starter kit files.
@github-actions github-actions bot added the reviewing:claude-ai Being reviewed by Claude AI label Jan 20, 2026
@github-actions
Copy link
Contributor

🤖 Claude Code Review

This PR adds a GitHub Actions workflow that automatically cleans up template-specific files when the repository is forked. The workflow correctly checks for fork status, removes appropriate files, and self-destructs. The logic is sound and there are no critical security or functionality issues.

📁 Files reviewed (1 files, 128 changes)
  • 🆕 .github/workflows/template-cleanup.yml (+128/-0)

Issues Found

  • ⚠️ Warnings: 1

Approved - Minor suggestions below, but good to merge.


Powered by Claude AI

Note: Unable to post inline comments

@github-actions github-actions bot added claude:approved Approved by Claude AI and removed reviewing:claude-ai Being reviewed by Claude AI labels Jan 20, 2026
Updated the workflow condition to run when:
- Repository is a fork (github.event.repository.fork == true), OR
- Repository is not the original (github.repository != 'eyaprak/vibe-coding-starter')

This ensures users who clone and push to their own GitHub account
(not using GitHub's fork feature) also get the cleanup.
@github-actions github-actions bot added the reviewing:claude-ai Being reviewed by Claude AI label Jan 20, 2026
@github-actions
Copy link
Contributor

🤖 Claude Code Review

This PR adds a cleanup workflow that automatically removes template-specific files when the repository is forked. The workflow logic is sound and includes proper safety checks. The implementation correctly detects forks, removes the intended files, and self-destructs after completion. No critical bugs or security vulnerabilities identified.

📁 Files reviewed (1 files, 134 changes)
  • 🆕 .github/workflows/template-cleanup.yml (+134/-0)

Approved - No issues found.


Powered by Claude AI

Note: Unable to post inline comments

@github-actions github-actions bot removed the reviewing:claude-ai Being reviewed by Claude AI label Jan 20, 2026
@eyaprak eyaprak merged commit fb77d39 into main Jan 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

claude:approved Approved by Claude AI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants