-
Notifications
You must be signed in to change notification settings - Fork 1k
Bitbucket Server Provider Fixes #928
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
Conversation
PR Review 🔍
|
@@ -242,7 +239,7 @@ def publish_inline_comment(self, comment: str, from_line: int, file: str): | |||
} | |||
|
|||
response = requests.post(url=self._get_pr_comments_url(""), json=payload, headers=self.headers) | |||
return response | |||
response.raise_for_status() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return isn't used and is inconsistent with other providers so I removed it
"reviewers": self.pr.reviewers # needs to be sent otherwise gets wiped | ||
} | ||
|
||
self.bitbucket_client.update_pull_request(self.workspace_slug, self.repo_slug, str(self.pr_num), payload) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return isn't used and is inconsistent with other providers so I removed it
PR Code Suggestions ✨
|
thanks @MarkRx have you reviewed the code suggestions ?
|
8b8db5b
to
0f6d505
Compare
…eration, and pr review not working
0f6d505
to
ee90f38
Compare
@MarkRx |
User description
Seems this code hasn't been maintained. Contains the following fixes to minimally get it up and running:
Tested with BB Datacenter ("server" rebranded) v8.9.9
PR Type
Bug fix
Description
This PR includes several bug fixes and improvements for the Bitbucket Server provider:
quote_plus
.get_pr_id
method to retrieve PR ID.publish_description
to use Bitbucket client and include reviewers.Changes walkthrough 📝
bitbucket_server_provider.py
Multiple bug fixes and improvements for Bitbucket Server provider.
pr_agent/git_providers/bitbucket_server_provider.py
quote_plus
.get_pr_id
method to retrieve PR ID.single-line comments.
publish_description
to use Bitbucket client and includereviewers.