Skip to content

Confirm before running git init#1318

Open
adinschmidt wants to merge 1 commit intopingdotgg:mainfrom
adinschmidt:feat/confirm-git-init
Open

Confirm before running git init#1318
adinschmidt wants to merge 1 commit intopingdotgg:mainfrom
adinschmidt:feat/confirm-git-init

Conversation

@adinschmidt
Copy link

@adinschmidt adinschmidt commented Mar 22, 2026

Summary

  • require a confirmation dialog before initializing Git from the header action
  • show the target path and command in the dialog copy

Closes #1316

demo.mp4

Note

Require confirmation before running git init in GitActionsControl

Replaces the direct git init button action with an AlertDialog that shows the command and target path before proceeding. A memoized confirmGitInit callback closes the dialog and triggers the mutation, ignoring clicks if initialization is already pending.

Macroscope summarized fa5b029.

@coderabbitai
Copy link

coderabbitai bot commented Mar 22, 2026

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 28d0a7fc-31d8-4a3f-a986-d4f40f439c34

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Tip

You can validate your CodeRabbit configuration file in your editor.

If your editor has YAML language server, you can enable auto-completion and validation by adding # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json at the top of your CodeRabbit configuration file.

@github-actions github-actions bot added size:M 30-99 changed lines (additions + deletions). vouch:unvouched PR author is not yet trusted in the VOUCHED list. labels Mar 22, 2026
@adinschmidt adinschmidt force-pushed the feat/confirm-git-init branch from 49b5c05 to fa5b029 Compare March 22, 2026 22:49
@adinschmidt adinschmidt marked this pull request as ready for review March 22, 2026 22:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M 30-99 changed lines (additions + deletions). vouch:unvouched PR author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Add confirmation dialog before "Initialize Git" to prevent accidental git init

1 participant