New command: spo file unarchive. Closes #7176#7196
Open
Saurabh7019 wants to merge 3 commits intopnp:mainfrom
Open
New command: spo file unarchive. Closes #7176#7196Saurabh7019 wants to merge 3 commits intopnp:mainfrom
Saurabh7019 wants to merge 3 commits intopnp:mainfrom
Conversation
Contributor
|
Thanks @Saurabh7019! Will review it soon. |
Contributor
Author
|
will wait for #7175 review to be completed before making this ready for review |
Contributor
Author
|
This PR is now aligned with #7192 and ready for review. |
There was a problem hiding this comment.
Pull request overview
Adds a new SharePoint Online command to unarchive archived files, aligning with existing spo file archive patterns and documentation/testing structure.
Changes:
- Introduces
m365 spo file unarchivecommand implementation using either fileidorurl, with optional confirmation prompting. - Adds Mocha test coverage for validation, prompting behavior, and request construction.
- Updates documentation, sidebar navigation, command constants, and Dev Proxy SharePoint API spec entries for the new endpoints.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/m365/spo/commands/file/file-unarchive.ts | Implements the new SPO file unarchive command (schema, prompt, request flow). |
| src/m365/spo/commands/file/file-unarchive.spec.ts | Adds unit tests for validation, prompting, request URL construction, and error handling. |
| src/m365/spo/commands.ts | Registers the new FILE_UNARCHIVE command name. |
| docs/src/config/sidebars.ts | Adds the command to the SPO file docs navigation. |
| docs/docs/cmd/spo/file/file-unarchive.mdx | Adds command reference documentation (usage/options/examples/permissions). |
| .devproxy/api-specs/sharepoint.yaml | Adds API spec entries used by Dev Proxy for UnArchive and GetFileById. |
milanholemans
requested changes
May 7, 2026
Contributor
milanholemans
left a comment
There was a problem hiding this comment.
Nice work @Saurabh7019! With a few tiny with a few minor adjustments, we are ready to merge it.
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.
Closes #7176