update cli scripts to use REST API
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 2s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 2s
This commit is contained in:
@@ -51,6 +51,7 @@ MAPPING: Dict[str, str] = {
|
||||
class OptionType(Enum):
|
||||
PARAM = auto()
|
||||
ID = auto()
|
||||
URL = auto()
|
||||
|
||||
|
||||
class Option:
|
||||
@@ -174,6 +175,8 @@ def get_logger(level, config: str):
|
||||
match level:
|
||||
case 0:
|
||||
logger.setLevel(logging.CRITICAL)
|
||||
logging.getLogger("requests").setLevel(logging.WARNING)
|
||||
logging.getLogger("urllib3").setLevel(logging.WARNING)
|
||||
case 1:
|
||||
logging.getLogger("requests").setLevel(logging.WARNING)
|
||||
logging.getLogger("urllib3").setLevel(logging.WARNING)
|
||||
|
||||
Reference in New Issue
Block a user