Skip to content

Fix Approve method to call ApproveAsync, not CheckinAsync#1712

Merged
gautamdsheth merged 1 commit intopnp:devfrom
gautamdsheth:fix/approve-issue
Dec 13, 2025
Merged

Fix Approve method to call ApproveAsync, not CheckinAsync#1712
gautamdsheth merged 1 commit intopnp:devfrom
gautamdsheth:fix/approve-issue

Conversation

@gautamdsheth
Copy link
Copy Markdown
Collaborator

The Approve method now correctly invokes ApproveAsync instead of CheckinAsync, ensuring the synchronous and asynchronous methods are properly aligned.

The Approve method now correctly invokes ApproveAsync instead of CheckinAsync, ensuring the synchronous and asynchronous methods are properly aligned.
Copilot AI review requested due to automatic review settings December 13, 2025 17:46
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

This PR fixes a critical bug in the Approve method where it was incorrectly calling CheckinAsync instead of ApproveAsync. This misalignment caused the synchronous Approve() method to perform a checkin operation instead of approving the file, leading to incorrect behavior.

Key Changes:

  • Fixed the Approve method to call the correct async counterpart (ApproveAsync instead of CheckinAsync)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@gautamdsheth gautamdsheth merged commit c6f0655 into pnp:dev Dec 13, 2025
8 checks passed
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