Skip to content

Prefer already-defined endpoint mock #226

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 11, 2025
Merged

Prefer already-defined endpoint mock #226

merged 1 commit into from
Apr 11, 2025

Conversation

jshorty
Copy link
Contributor

@jshorty jshorty commented Apr 11, 2025

Went to cut a PR upstream and realized I missed this pre-defined endpoint pattern when checking for work on #216.

@Copilot Copilot AI review requested due to automatic review settings April 11, 2025 16:07
Copy link
Contributor

@Copilot 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 updates the test for GetCommit to use the pre-defined endpoint pattern from the mock package, eliminating the redundant manual definition.

  • Removed the manually defined endpoint pattern.
  • Replaced its usage with mock.GetReposCommitsByOwnerByRepoByRef in test cases.

Copy link
Collaborator

@juruen juruen left a comment

Choose a reason for hiding this comment

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

I missed that too, sorry!

@jshorty jshorty merged commit 865f9bf into main Apr 11, 2025
16 checks passed
@jshorty jshorty deleted the jshorty/use-mock branch April 11, 2025 18:25
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