mirror of
https://staging.allspice.dev/AllSpice-Demos/Actions-demo.git
synced 2025-04-23 17:03:42 +00:00
Add attribute string builder
This commit is contained in:
parent
e0a38c17d1
commit
a99d9a9a02
@ -61,8 +61,13 @@ def write_to_file(file_name, string):
|
||||
f.write("\n")
|
||||
f.close()
|
||||
|
||||
|
||||
# Get the repository object
|
||||
repository = Repository.request(allspice, "AllSpice-Demos", "Actions-demo")
|
||||
write_to_file(file_name, get_attributes(repository))
|
||||
|
||||
# Get the attributes of the repository object
|
||||
attributes_string = ", ".join(f"Repository.{attribute}" for attribute in get_attributes(repository))
|
||||
|
||||
# Write the attributes to the file
|
||||
write_to_file(file_name, attributes_string)
|
||||
|
||||
print("End-of-file")
|
Loading…
Reference in New Issue
Block a user