Skip to content

feat: add reviewers parameter to UpdatePullRequest and update tests #285

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 4 commits into
base: main
Choose a base branch
from

Conversation

MayorFaj
Copy link
Contributor

This pull request introduces the ability to request reviewers when updating a pull request. The changes include updates to the UpdatePullRequest function to handle reviewers, modifications to the test cases to cover the new functionality, and updates to the documentation.

Enhancements to UpdatePullRequest function:

  • Added support for specifying GitHub usernames to request reviews from in the UpdatePullRequest function. (pkg/github/pullrequests.go) [1] [2] [3]
  • Ensured the function handles cases where no update is needed but reviewers are specified. (pkg/github/pullrequests.go)

Documentation updates:

  • Updated README.md to include the new reviewers parameter in the documentation for updating pull requests. (README.md)

Test case updates:

  • Added new test cases to cover scenarios with reviewers, including successful updates and failure cases. (pkg/github/pullrequests_test.go) [1] [2] [3] [4] [5]

updatereview

Closes: #259

@Copilot Copilot AI review requested due to automatic review settings April 15, 2025 23:15
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.

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

@MayorFaj MayorFaj requested a review from a team as a code owner April 17, 2025 11:26
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.

Add functionality to assign reviewers to pull requests
1 participant