Skip to content

Commit d08d7b3

Browse files
committed
Handle ReleaseEvent
1 parent 5999968 commit d08d7b3

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

github3/events.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,14 @@ def _pullreqcomm(payload):
139139
return payload
140140

141141

142+
def _release(payload):
143+
from github3.repos.release import Release
144+
release = payload.get('release')
145+
if release:
146+
payload['release'] = Release(release)
147+
return payload
148+
149+
142150
def _team(payload):
143151
from github3.orgs import Team
144152
from github3.repos import Repository
@@ -172,6 +180,7 @@ def identity(x):
172180
'PullRequestEvent': _pullreqev,
173181
'PullRequestReviewCommentEvent': _pullreqcomm,
174182
'PushEvent': identity,
183+
'ReleaseEvent': _release,
175184
'StatusEvent': identity,
176185
'TeamAddEvent': _team,
177186
'WatchEvent': identity,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy