feat: list orgs in joj3-check-gitea-token
All checks were successful
build / trigger-build-image (push) Successful in 8s
All checks were successful
build / trigger-build-image (push) Successful in 8s
This commit is contained in:
parent
e24545324d
commit
aa33dcc2f1
|
@ -540,8 +540,8 @@ def joj3_check_gitea_token(
|
||||||
app.pretty_exceptions_enable = False
|
app.pretty_exceptions_enable = False
|
||||||
set_settings(Settings(_env_file=env_path))
|
set_settings(Settings(_env_file=env_path))
|
||||||
set_logger(settings.stderr_log_level)
|
set_logger(settings.stderr_log_level)
|
||||||
user = tea.pot.gitea.get_user()
|
repos = tea.pot.gitea.organization_api.org_list_repos(settings.gitea_org_name)
|
||||||
echo(user)
|
echo(repos)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
|
@ -110,9 +110,6 @@ class Gitea:
|
||||||
+ "but not found in Canvas students"
|
+ "but not found in Canvas students"
|
||||||
)
|
)
|
||||||
|
|
||||||
def get_user(self) -> Any:
|
|
||||||
return self.user_api.user_get_current()
|
|
||||||
|
|
||||||
def create_personal_repos_for_canvas_students(
|
def create_personal_repos_for_canvas_students(
|
||||||
self,
|
self,
|
||||||
students: PaginatedList,
|
students: PaginatedList,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user