File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -33,22 +33,22 @@ def list_github_apps_in_organization(organization: str):
33
33
list_of_installations = response_json ["installations" ]
34
34
print (f'Found { len (list_of_installations )} GitHub App in { organization } organization' )
35
35
36
- # Convert list of dictionaries to JSON string
37
- json_data = json .dumps (list_of_installations , indent = 4 )
36
+ # Convert list of dictionaries to JSON string
37
+ json_data = json .dumps (list_of_installations , indent = 4 )
38
38
39
- # Write JSON string to a file
40
- with open ("list_of_github_installations.json" , "w" ) as file :
41
- file .write (json_data )
39
+ # Write JSON string to a file
40
+ with open ("list_of_github_installations.json" , "w" ) as file :
41
+ file .write (json_data )
42
42
43
- app_short_list = []
44
- for app in list_of_installations :
45
- app_dict = {}
46
- app_dict ['id' ] = app ['id' ]
47
- app_dict ['app_id' ] = app ['app_id' ]
48
- app_dict ['app_slug' ] = app ['app_slug' ]
49
- app_short_list .append (app_dict )
43
+ app_short_list = []
44
+ for app in list_of_installations :
45
+ app_dict = {}
46
+ app_dict ['id' ] = app ['id' ]
47
+ app_dict ['app_id' ] = app ['app_id' ]
48
+ app_dict ['app_slug' ] = app ['app_slug' ]
49
+ app_short_list .append (app_dict )
50
50
51
- return app_short_list
51
+ return app_short_list
52
52
53
53
def main ():
54
54
""" To test the code """
You can’t perform that action at this time.
0 commit comments