New command: spo file unarchive. Closes #7176#7196
Conversation
|
Thanks @Saurabh7019! Will review it soon. |
|
will wait for #7175 review to be completed before making this ready for review |
|
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
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.
|
hi, due to a patch release, we needed to perform we had to rebase the main branch, which now makes this PR out of sync with the latest state of main. |
Closes #7176