* checkpoint

* finish adding assignee support

* test

* use test command

* use test command

* skip build check

* add state to common options, move version check

* cleanup ok-check

* undo dylink change
This commit is contained in:
Pheenoh
2023-08-11 00:51:32 -06:00
committed by GitHub
parent 380f00f331
commit c8bb857b13
9 changed files with 254 additions and 79 deletions
+9
View File
@@ -56,5 +56,14 @@ class GraphQLClient:
else:
LOG.error(f"Fail. Error: {error_message}")
return None
if data.get('extensions', ''):
warning_message = data['extensions']['warnings'][0]['message']
LOG.warning(warning_message)
if 'Bad credentials' in data.get('message', ''):
LOG.error(data['message'])
LOG.error('Invalid personal access token. Please provide a valid one with the --personal-access-token flag.')
sys.exit(1)
return data