Updates item archive warning - #7576
Open
milanholemans wants to merge 1 commit into
Open
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The updated CLI confirmation text is currently too vague to be useful and one of the new doc warnings uses ambiguous wording that should be aligned before merge.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
This PR updates the user-facing archive/unarchive warnings for SharePoint file/folder commands and moves time-based guidance into the command reference docs to reduce the risk of CLI prompts becoming outdated.
Changes:
- Updated confirmation prompts to refer to “file”/“folder” rather than the generic “item”.
- Made the file unarchive prompt less time-specific and added/expanded warning callouts in the corresponding docs pages.
- Added warning admonitions to the file/folder archive docs and introduced a Remarks section where needed.
File summaries
| File | Description |
|---|---|
| src/m365/spo/commands/folder/folder-archive.ts | Updates confirmation prompt wording to “folder”. |
| src/m365/spo/commands/file/file-unarchive.ts | Rewords confirmation prompt to avoid hardcoding the cooldown duration. |
| src/m365/spo/commands/file/file-archive.ts | Updates confirmation prompt wording to “file”. |
| docs/docs/cmd/spo/folder/folder-archive.mdx | Adds a warning admonition about reactivation timing. |
| docs/docs/cmd/spo/file/file-unarchive.mdx | Adds Remarks + warning admonition including the current cooldown duration. |
| docs/docs/cmd/spo/file/file-archive.mdx | Adds Remarks + warning admonition about reactivation timing. |
Review details
- Files reviewed: 6/6 changed files
- Comments generated: 2
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
milanholemans
force-pushed
the
archive-cooldwn
branch
from
September 5, 2026 23:38
855f938 to
6377aee
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The cooldown time for file-level archiving seems to be changing quite frequently. Therefore, let's pull the warning with the exact amount of dates to the docs so the CLI warning is not getting outdated.