fix: 修复获取 linear webhook 中 issue 信息报错的问题 TUN-52 TUN-53 TUN-54 TUN-55 TUN-56 TUN-57 TUN-58 TUN-59 TUN-60 TUN-61 TUN-62
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
d64e1eedaa
commit
f2d8b30e08
3
app.py
3
app.py
@ -60,7 +60,8 @@ def linear_issue():
|
||||
notify_type = apprise.NotifyType.SUCCESS
|
||||
apobj.notify(body=body, title=title, notify_type=notify_type)
|
||||
elif data['action'] == 'create':
|
||||
if not data.get('data', {}).get('botActor', {}).get('subType') == 'discord':
|
||||
if not (data.get('data', {}).get('botActor')
|
||||
and data.get('data', {}).get('botActor').get('subType') == 'discord'):
|
||||
title = data['data']['identifier'] + ' - ' + data['data']['title']
|
||||
body = f"创建 issue。\n#Status\n{data['data']['state']['name']}"
|
||||
notify_type = apprise.NotifyType.INFO
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user