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: