Merge pull request #971 from brianteeman/typos-1

Fix typos/Spelling
This commit is contained in:
Tal
2024-06-18 18:00:42 +03:00
committed by GitHub
8 changed files with 18 additions and 18 deletions

View File

@ -235,7 +235,7 @@ class BitbucketProvider(GitProvider):
except Exception as e:
get_logger().exception(f"Failed to remove comment, error: {e}")
# funtion to create_inline_comment
# function to create_inline_comment
def create_inline_comment(self, body: str, relevant_file: str, relevant_line_in_file: str, absolute_position: int = None):
position, absolute_position = find_line_number_of_relevant_line_in_file(self.get_diff_files(),
relevant_file.strip('`'),
@ -404,7 +404,7 @@ class BitbucketProvider(GitProvider):
def get_commit_messages(self):
return "" # not implemented yet
# bitbucket does not support labels
def publish_description(self, pr_title: str, description: str):
payload = json.dumps({
@ -424,7 +424,7 @@ class BitbucketProvider(GitProvider):
# bitbucket does not support labels
def publish_labels(self, pr_types: list):
pass
# bitbucket does not support labels
def get_pr_labels(self, update=False):
pass

View File

@ -211,7 +211,7 @@ class BitbucketServerProvider(GitProvider):
def remove_comment(self, comment):
pass
# funtion to create_inline_comment
# function to create_inline_comment
def create_inline_comment(self, body: str, relevant_file: str, relevant_line_in_file: str,
absolute_position: int = None):

View File

@ -107,7 +107,7 @@ class GithubProvider(GitProvider):
git_files = context.get("git_files", None)
if git_files:
return git_files
self.git_files = list(self.pr.get_files()) # 'list' to hanlde pagination
self.git_files = list(self.pr.get_files()) # 'list' to handle pagination
context["git_files"] = self.git_files
return self.git_files
except Exception: