Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd08d7b3

Browse files
committed
Handle ReleaseEvent
1 parent5999968 commitd08d7b3

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
returnpayload
140140

141141

142+
def_release(payload):
143+
fromgithub3.repos.releaseimportRelease
144+
release=payload.get('release')
145+
ifrelease:
146+
payload['release']=Release(release)
147+
returnpayload
148+
149+
142150
def_team(payload):
143151
fromgithub3.orgsimportTeam
144152
fromgithub3.reposimportRepository
@@ -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)

[8]ページ先頭

©2009-2025 Movatter.jp