Studis sehen bei Einzel-Assignments nur noch ihre eigenen Repos.
This commit is contained in:
parent
950bcf516c
commit
0c64366710
@ -32,7 +32,7 @@ from gitea import Gitea, Organization, Team
|
||||
# ──────────────────────────────────────────────
|
||||
# Konfiguration
|
||||
# ──────────────────────────────────────────────
|
||||
GITEA_URL = os.environ.get("GITEA_URL", "https://gitea.meine-uni.de")
|
||||
GITEA_URL = os.environ.get("GITEA_URL", "https://git.efi.th-nuernberg.de")
|
||||
GITEA_TOKEN = os.environ.get("GITEA_TOKEN", "DEIN_API_TOKEN_HIER")
|
||||
|
||||
SEPARATOR = "-" # Trennzeichen: ueb01-max.mustermann / proj01-team-a
|
||||
@ -315,8 +315,7 @@ def cmd_add_students(args):
|
||||
def cmd_create_assignment(args):
|
||||
"""Erstellt pro Student ein eigenes Repo (Kopie des Templates)."""
|
||||
g = get_gitea()
|
||||
org = get_org(g, args.org)
|
||||
team = ensure_org_team(org, "students")
|
||||
get_org(g, args.org)
|
||||
|
||||
students = read_students_csv(args.csv)
|
||||
template_owner = args.template_owner or args.org
|
||||
@ -338,7 +337,6 @@ def cmd_create_assignment(args):
|
||||
if copy_repo(template_owner, args.template, args.org, rname,
|
||||
private=not args.public):
|
||||
add_collaborator(args.org, rname, username)
|
||||
add_repo_to_team(team, args.org, rname)
|
||||
pr_ok = create_feedback_pr(args.org, rname)
|
||||
print(f" ✓ {rname}" + (" (inkl. Feedback-PR)" if pr_ok else ""))
|
||||
ok += 1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user