Skip to content

[GitHub] Fix typos in automation #86886

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
Mar 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions llvm/utils/git/github-automation.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"""


def _get_curent_team(team_name, teams) -> Optional[github.Team.Team]:
def _get_current_team(team_name, teams) -> Optional[github.Team.Team]:
for team in teams:
if team_name == team.name.lower():
return team
Expand Down Expand Up @@ -70,7 +70,7 @@ def __init__(self, token: str, repo: str, issue_number: int, label_name: str):
self._team_name = "issue-subscribers-{}".format(label_name).lower()

def run(self) -> bool:
team = _get_curent_team(self.team_name, self.org.get_teams())
team = _get_current_team(self.team_name, self.org.get_teams())
if not team:
print(f"couldn't find team named {self.team_name}")
return False
Expand Down Expand Up @@ -125,7 +125,7 @@ def get_summary_comment(self) -> github.IssueComment.IssueComment:

def run(self) -> bool:
patch = None
team = _get_curent_team(self.team_name, self.org.get_teams())
team = _get_current_team(self.team_name, self.org.get_teams())
if not team:
print(f"couldn't find team named {self.team_name}")
return False
Expand Down Expand Up @@ -201,7 +201,7 @@ def run(self) -> bool:
)
return True

def _get_curent_team(self) -> Optional[github.Team.Team]:
def _get_current_team(self) -> Optional[github.Team.Team]:
for team in self.org.get_teams():
if self.team_name == team.name.lower():
return team
Expand Down Expand Up @@ -281,7 +281,7 @@ def run(self) -> bool:
@{self.author} Congratulations on having your first Pull Request (PR) merged into the LLVM Project!

Your changes will be combined with recent changes from other authors, then tested
by our [build bots](https://lab.llvm.org/buildbot/). If there is a problem with a build, you may recieve a report in an email or a comment on this PR.
by our [build bots](https://lab.llvm.org/buildbot/). If there is a problem with a build, you may receive a report in an email or a comment on this PR.

Please check whether problems have been caused by your change specifically, as
the builds can include changes from many authors. It is not uncommon for your
Expand Down Expand Up @@ -639,7 +639,7 @@ def execute_command(self) -> bool:

parser = argparse.ArgumentParser()
parser.add_argument(
"--token", type=str, required=True, help="GitHub authentiation token"
"--token", type=str, required=True, help="GitHub authentication token"
)
parser.add_argument(
"--repo",
Expand Down Expand Up @@ -669,7 +669,7 @@ def execute_command(self) -> bool:
"--llvm-project-dir",
type=str,
default=".",
help="directory containing the llvm-project checout",
help="directory containing the llvm-project checkout",
)
release_workflow_parser.add_argument(
"--issue-number", type=int, required=True, help="The issue number to update"
Expand Down