Skip to content

Add ListPullRequestCommits #143

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

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

EyalDelarea
Copy link
Contributor

@EyalDelarea EyalDelarea commented Jan 15, 2025

  • All tests passed. If this feature is not already covered by the tests, I added new tests.
  • I used go fmt ./... for formatting the code before submitting the pull request.
  • This feature is included on all supported VCS providers - GitHub, Bitbucket cloud, Bitbucket server, GitLab and Azure Repos.
  • I added the relevant documentation for the new feature.

// Go context
ctx := context.Background()
// Organization or username
owner := "jfrog"
// VCS repository
repository := "jfrog-cli"
// Pull Request ID
pullRequestID := 1

// List commits for a pull request
commitsInfo, err := client.ListPullRequestCommits(ctx, owner, repository, pullRequestID)

📊 Feature Matrix – ListPullRequestCommits Support

Provider Supported Notes
GitHub Uses official API with retry
GitLab Uses MergeRequests.GetCommits
Azure Repos Uses GetPullRequestCommits
Bitbucket Cloud Uses PullRequests.Commits
Bitbucket Server 🚧 Not supported

@EyalDelarea EyalDelarea marked this pull request as ready for review January 16, 2025 13:16
@EyalDelarea EyalDelarea changed the title Add Pull Request new APIs Add `ListPullRequestCommits Feb 24, 2025
@EyalDelarea EyalDelarea changed the title Add `ListPullRequestCommits Add ListPullRequestCommits Feb 24, 2025
@EyalDelarea EyalDelarea added the new feature Automatically generated release notes label Mar 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature Automatically generated release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant