fix: Fix condition to check botActor subtype in create action
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
be4472d4ee
commit
d64e1eedaa
2
app.py
2
app.py
@ -60,7 +60,7 @@ 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['data'].get('botActor', {}).get('subType') == 'discord':
|
||||
if not 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