Skip to content

New command: spo file unarchive. Closes #7176#7196

Open
Saurabh7019 wants to merge 3 commits intopnp:mainfrom
Saurabh7019:issue-7176
Open

New command: spo file unarchive. Closes #7176#7196
Saurabh7019 wants to merge 3 commits intopnp:mainfrom
Saurabh7019:issue-7176

Conversation

@Saurabh7019
Copy link
Copy Markdown
Contributor

Closes #7176

@Saurabh7019 Saurabh7019 marked this pull request as ready for review April 6, 2026 18:29
@milanholemans
Copy link
Copy Markdown
Contributor

Thanks @Saurabh7019! Will review it soon.

@milanholemans milanholemans self-assigned this Apr 6, 2026
@Saurabh7019 Saurabh7019 marked this pull request as draft April 9, 2026 19:28
@Saurabh7019
Copy link
Copy Markdown
Contributor Author

will wait for #7175 review to be completed before making this ready for review

@Saurabh7019 Saurabh7019 marked this pull request as ready for review April 29, 2026 12:09
@Saurabh7019
Copy link
Copy Markdown
Contributor Author

This PR is now aligned with #7192 and ready for review.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

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 unarchive command implementation using either file id or url, 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.

Comment thread .devproxy/api-specs/sharepoint.yaml
Comment thread .devproxy/api-specs/sharepoint.yaml Outdated
Copy link
Copy Markdown
Contributor

@milanholemans milanholemans left a comment

Choose a reason for hiding this comment

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

Nice work @Saurabh7019! With a few tiny with a few minor adjustments, we are ready to merge it.

Comment thread docs/src/config/sidebars.ts Outdated
Comment thread src/m365/spo/commands/file/file-unarchive.ts Outdated
Comment thread src/m365/spo/commands/file/file-unarchive.spec.ts Outdated
@milanholemans milanholemans marked this pull request as draft May 7, 2026 17:55
@Saurabh7019 Saurabh7019 marked this pull request as ready for review May 8, 2026 08:06
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.

New command: spo file unarchive

3 participants