From 129c550d092710808d16b8e54c1461af610040d9 Mon Sep 17 00:00:00 2001 From: Ching Date: Thu, 21 Mar 2024 15:55:40 +0800 Subject: [PATCH] docs: test add link feature TUN-29 --- app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 1155783..b07367d 100644 --- a/app.py +++ b/app.py @@ -71,9 +71,9 @@ def gitea_push(): if request.headers.get('X-Gitea-Event') != 'push': logger.error('Invalid event type: %s' % request.headers.get('X-Gitea-Event')) return jsonify({'message': 'Invalid event type'}), 400 - # check if it's a Linear issue - # linear issue id is like 'TUN-21' headers = {'Authorization': LINEAR_API_KEY} + + # get all workflow states from linear state_query = {'query': '{workflowStates(includeArchived:false) { edges { node { id name type } }}}'} state_resp = requests.post(LINEAR_API_URL, json=state_query, headers=headers) if state_resp.status_code != 200: