From 0c834cee116c61ad3b084cd2935b463d8373e244 Mon Sep 17 00:00:00 2001 From: exilvm Date: Mon, 1 Aug 2022 13:56:00 +0000 Subject: [PATCH 1/2] raise an exception if the query contains errors --- main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.py b/main.py index 6e5c356..5ddadef 100644 --- a/main.py +++ b/main.py @@ -545,6 +545,8 @@ if __name__ == '__main__': g = Github(ghtoken) headers = {"Authorization": "Bearer " + ghtoken} user_data = run_query(userInfoQuery) # Execute the query + if "errors" in user_data: + raise Exception(user_data) username = user_data["data"]["viewer"]["login"] id = user_data["data"]["viewer"]["id"] email = user_data["data"]["viewer"]["email"] From 3664a2fd35ef916bf3aba25b2a427fe9edd64fa4 Mon Sep 17 00:00:00 2001 From: exilvm Date: Mon, 1 Aug 2022 13:58:42 +0000 Subject: [PATCH 2/2] add .env defaults that are required by the app --- .env.example | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.env.example b/.env.example index 25baa83..9822c38 100644 --- a/.env.example +++ b/.env.example @@ -13,3 +13,8 @@ INPUT_SHOW_TOTAL_CODE_TIME="True" INPUT_SHOW_SHORT_INFO="False" INPUT_SHOW_COMMIT="False" INPUT_SHOW_DAYS_OF_WEEK="True" +INPUT_SHOW_LANGUAGE_PER_REPO="True" +INPUT_SHOW_UPDATED_DATE="True" +INPUT_UPDATED_DATE_FORMAT="%d/%m/%Y %H:%M:%S" +INPUT_COMMIT_BY_ME="False" +INPUT_COMMIT_MESSAGE="Updated with Dev Metrics" \ No newline at end of file