Skip to content

Add warning at delete contents for Linux users on @fedify/init - #997

Open
lego37yoon wants to merge 5 commits into
fedify-dev:2.0-maintenancefrom
lego37yoon:fix/init-per-delete-mt
Open

Add warning at delete contents for Linux users on @fedify/init#997
lego37yoon wants to merge 5 commits into
fedify-dev:2.0-maintenancefrom
lego37yoon:fix/init-per-delete-mt

Conversation

@lego37yoon

Copy link
Copy Markdown

Summary

This pull request is rebased version of the original request for 2.0-maintenance branch.

@fedify/init project initialization asks users to use non-empty directory, and confirm to move existing contents to Trash. However, its behavior actually permanently delete all of existing contents without back up for Linux or UNIX-like system users.

This pull request notices users who are using Linux or UNIX-like systems that this action deletes existing data permanently. Furthermore, refactored messages and action structure in dir.ts file to easily add conditions or supported systems.

Test Plan

  • mise run check-each init
  • mise run test-each init

@coderabbitai

coderabbitai Bot commented Aug 14, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

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: ASSERTIVE

Plan: Pro Plus

Run ID: 173f1a2e-23c9-4ebb-b768-d13d8c065430

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

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.

@lego37yoon
lego37yoon marked this pull request as draft August 14, 2026 15:54
@lego37yoon
lego37yoon marked this pull request as ready for review August 14, 2026 15:55
@lego37yoon

Copy link
Copy Markdown
Author

As @dahlia fixed formatting issues on writing changes, I did following actions:

  • Didn't add any extra excludes at .hongdown.toml file. Just rebase, mise install and commit to trigger pre-commit hook.
  • Rebased the branch, tested again before open this pull request.

Pre-commit hook also passed after this rebase.

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.

1 participant