8000 Merge pull request #616 from parlarjb/doc-link-fixes · hshercha/github3.py@2efcb11 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2efcb11

Browse files
authored
Merge pull request sigmavirus24#616 from parlarjb/doc-link-fixes
Update a few broken links to Github docs
2 parents e8ff4f4 + d05e294 commit 2efcb11

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

docs/events.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ Having individual handlers as we have now which modify the payload to use our
3434
objects when available is more sensible.
3535

3636
.. links
37-
.. _type: http://developer.github.com/v3/events/types
37+
.. _type: https://developer.github.com/v3/activity/events/types

github3/events.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@
1414
class Event(GitHubCore):
1515

1616
"""The :class:`Event <Event>` object. It structures and handles the data
17-
returned by via the `Events <http://developer.github.com/v3/events>`_
18-
section of the GitHub API.
17+
returned by via the
18+
`Events <https://developer.github.com/v3/activity/events>`_ section
19+
of the GitHub API.
1920
2021
Two events can be compared like so::
2122
@@ -42,7 +43,7 @@ def _update_attributes(self, event):
4243
self.org = None
4344
if event.get('org'):
4445
self.org = Organization(event.get('org'))
45-
#: Event type http://developer.github.com/v3/activity/events/types/
46+
#: Event type https://developer.github.com/v3/activity/events/types/
4647
self.type = event.get('type')
4748
handler = _payload_handlers.get(self.type, identity)
4849
#: Dictionary with the payload. Payload structure is defined by type_.

0 commit comments

Comments
 (0)
0