Spaces:
Build error
Build error
add comment
Browse files
src/gradio_space_ci/webhook.py
CHANGED
|
@@ -386,6 +386,12 @@ def create_ephemeral_space(space_id: str, pr_num: int) -> bool:
|
|
| 386 |
raise
|
| 387 |
|
| 388 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 389 |
def configure_ephemeral_space(space_id: str, pr_num: int, trusted_pr=False) -> bool:
|
| 390 |
# Config values
|
| 391 |
ci_space_id = _get_ci_space_id(space_id=space_id, pr_num=pr_num)
|
|
|
|
| 386 |
raise
|
| 387 |
|
| 388 |
|
| 389 |
+
##
|
| 390 |
+
# configure_ephemeral_space logic
|
| 391 |
+
# if a pr is made by a trusted author or an author trusts a pr
|
| 392 |
+
# => we configure the ephemeral space
|
| 393 |
+
##
|
| 394 |
+
|
| 395 |
def configure_ephemeral_space(space_id: str, pr_num: int, trusted_pr=False) -> bool:
|
| 396 |
# Config values
|
| 397 |
ci_space_id = _get_ci_space_id(space_id=space_id, pr_num=pr_num)
|