Skip to content

Updates item archive warning - #7576

Open
milanholemans wants to merge 1 commit into
pnp:mainfrom
milanholemans:archive-cooldwn
Open

Updates item archive warning#7576
milanholemans wants to merge 1 commit into
pnp:mainfrom
milanholemans:archive-cooldwn

Conversation

@milanholemans

Copy link
Copy Markdown
Contributor

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.

Copilot AI lite review requested due to automatic review settings September 5, 2026 23:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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.

Comment thread src/m365/spo/commands/file/file-unarchive.ts Outdated
Comment thread docs/docs/cmd/spo/file/file-archive.mdx Outdated
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.

2 participants