mirror of
https://staging.allspice.dev/AllSpice-Demos/Actions-demo.git
synced 2025-04-23 17:03:42 +00:00
Change get_repo to Repository.request()
This commit is contained in:
parent
2bc07445cd
commit
a2efd1e29d
@ -1,6 +1,6 @@
|
||||
# save_design_review.py
|
||||
# Uses py-allspice + AllSpice API to save all design review comments to a markdown file
|
||||
from allspice import AllSpice, DesignReview
|
||||
from allspice import AllSpice, DesignReview, Repository
|
||||
import argparse
|
||||
import sys
|
||||
|
||||
@ -62,7 +62,7 @@ def write_to_file(file_name, string):
|
||||
f.close()
|
||||
|
||||
|
||||
repository = allspice.get_repository("AllSpice-Demos", "API-Demo")
|
||||
write_to_file(get_attributes())
|
||||
repository = Repository.request(allspice, "AllSpice-Demos", "API-Demo")
|
||||
write_to_file(get_attributes(repository))
|
||||
|
||||
print("End-of-file")
|
Loading…
Reference in New Issue
Block a user