Skip to content

Commit 8a7f021

Browse files
authored
[GitHub] Fix typos in automation (llvm#86886)
1 parent 8963a47 commit 8a7f021

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

llvm/utils/git/github-automation.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"""
3737

3838

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

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

126126
def run(self) -> bool:
127127
patch = None
128-
team = _get_curent_team(self.team_name, self.org.get_teams())
128+
team = _get_current_team(self.team_name, self.org.get_teams())
129129
if not team:
130130
print(f"couldn't find team named {self.team_name}")
131131
return False
@@ -201,7 +201,7 @@ def run(self) -> bool:
201201
)
202202
return True
203203

204-
def _get_curent_team(self) -> Optional[github.Team.Team]:
204+
def _get_current_team(self) -> Optional[github.Team.Team]:
205205
for team in self.org.get_teams():
206206
if self.team_name == team.name.lower():
207207
return team
@@ -281,7 +281,7 @@ def run(self) -> bool:
281281
@{self.author} Congratulations on having your first Pull Request (PR) merged into the LLVM Project!
282282
283283
Your changes will be combined with recent changes from other authors, then tested
284-
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.
284+
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.
285285
286286
Please check whether problems have been caused by your change specifically, as
287287
the builds can include changes from many authors. It is not uncommon for your
@@ -639,7 +639,7 @@ def execute_command(self) -> bool:
639639

640640
parser = argparse.ArgumentParser()
641641
parser.add_argument(
642-
"--token", type=str, required=True, help="GitHub authentiation token"
642+
"--token", type=str, required=True, help="GitHub authentication token"
643643
)
644644
parser.add_argument(
645645
"--repo",
@@ -669,7 +669,7 @@ def execute_command(self) -> bool:
669669
"--llvm-project-dir",
670670
type=str,
671671
default=".",
672-
help="directory containing the llvm-project checout",
672+
help="directory containing the llvm-project checkout",
673673
)
674674
release_workflow_parser.add_argument(
675675
"--issue-number", type=int, required=True, help="The issue number to update"

0 commit comments

Comments
 (0)