fix: 修复获取 issue 参数不正确的问题 TUN-24
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
06023b79f2
commit
c7d4fe3c58
2
app.py
2
app.py
@ -95,7 +95,7 @@ def gitea_push():
|
||||
issue = re.search(r'TUN-\d+', commit['message'])
|
||||
if issue:
|
||||
issue_id = issue.group()
|
||||
data_ = {'query': '{ issue(id: "%s") { title state { name }}}' % issue_id}
|
||||
data_ = {'query': '{ issue(id: "%s") { title state { name type }}}' % issue_id}
|
||||
resp = requests.post(LINEAR_API_URL, json=data_, headers=headers)
|
||||
if resp.status_code != 200:
|
||||
logger.error('Failed to get issue: %s' % resp.text)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user