Visitar URL original
Fix typo in checks module · pythonthings/github3.py@3f43b7e · GitHub
Skip to content

Commit 3f43b7e

Browse files
committed
Fix typo in checks module
1 parent 0b51a66 commit 3f43b7e

2 files changed

Lines changed: 5 additions & 9 deletions

File tree

‎src/github3/checks.py‎

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ class CheckSuite(models.GitHubCore):
170170
A representation of the repository the suite belongs to as
171171
:class:`~github3.repos.repo.ShortRepository`.
172172
173-
.. attribute:: origional_pull_requests
173+
.. attribute:: original_pull_requests
174174
175175
A list of representations of the pull requests the suite belongs to as
176176
:class:`~github3.checks.CheckPullRequest`.
@@ -207,9 +207,7 @@ def _update_attributes(self, suite):
207207
self.before = suite["before"]
208208
self.after = suite["after"]
209209
prs = suite.get("pull_requests", [])
210-
self.origional_pull_requests = [
211-
CheckPullRequest(p, self) for p in prs
212-
]
210+
self.original_pull_requests = [CheckPullRequest(p, self) for p in prs]
213211
self.repository = repos.ShortRepository(suite["repository"], self)
214212
self.id = suite["id"]
215213
self.app = CheckApp(suite["app"], self)
@@ -281,7 +279,7 @@ class CheckRun(models.GitHubCore):
281279
when this check run completed. If this run is not completed it will
282280
be ``None``.
283281
284-
.. attribute:: origional_pull_requests
282+
.. attribute:: original_pull_requests
285283
286284
A list of representations of the pull requests the run belongs to as
287285
:class:`~github3.checks.CheckPullRequest`.
@@ -334,9 +332,7 @@ def _update_attributes(self, run):
334332
self.head_sha = run["head_sha"]
335333
self.name = run["name"]
336334
prs = run.get("pull_requests", [])
337-
self.origional_pull_requests = [
338-
CheckPullRequest(p, self) for p in prs
339-
]
335+
self.original_pull_requests = [CheckPullRequest(p, self) for p in prs]
340336
self.id = run["id"]
341337
self.external_id = run["external_id"]
342338
self.app = CheckApp(run["app"], self)

‎tests/unit/test_checks.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def test_check_run_types(self):
5353
assert isinstance(self.instance.app, github3.checks.CheckApp)
5454

5555
assert isinstance(
56-
self.instance.origional_pull_requests[0],
56+
self.instance.original_pull_requests[0],
5757
github3.checks.CheckPullRequest,
5858
)
5959

0 commit comments

Comments
 (0)