diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2026-07-15 15:26:20 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2026-07-23 23:45:29 +0200 |
| commit | 2d2a54ae329b82ec2ffbb178c3c53071f12a81a2 (patch) | |
| tree | e274a911ec4ac6682bcd9190549f3997cec06af3 /etc | |
| parent | a1b273e3cc84c5936c6d01e875e2000a823051f3 (diff) | |
teams: Initialize <forgejo-team> ‘id’ to *unspecified*.
* etc/teams.scm (team->forgejo-team): Initialize ‘id’ as *unspecified* so that
it’s the JSON ‘id’ field is not emitted for ‘create-team’ calls.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Merges: #9944
Diffstat (limited to 'etc')
| -rwxr-xr-x | etc/teams.scm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/teams.scm b/etc/teams.scm index cacaa0e47fa..8987b8b9c18 100755 --- a/etc/teams.scm +++ b/etc/teams.scm | |||
| @@ -145,7 +145,7 @@ exec $pre_inst_env_maybe guix repl -- "$0" "$@" | |||
| 145 | forgejo-team forgejo-team? | 145 | forgejo-team forgejo-team? |
| 146 | json->forgejo-team <=> forgejo-team->json | 146 | json->forgejo-team <=> forgejo-team->json |
| 147 | (name forgejo-team-name) | 147 | (name forgejo-team-name) |
| 148 | (id forgejo-team-id) ;integer | 148 | (id forgejo-team-id) ;integer | *unspecified* |
| 149 | (description forgejo-team-description) | 149 | (description forgejo-team-description) |
| 150 | (all-repositories? forgejo-team-all-repositories? | 150 | (all-repositories? forgejo-team-all-repositories? |
| 151 | "includes_all_repositories") | 151 | "includes_all_repositories") |
| @@ -372,7 +372,7 @@ PARAMETERS." | |||
| 372 | (define (team->forgejo-team team) | 372 | (define (team->forgejo-team team) |
| 373 | "Return a Forgejo team derived from TEAM, a <team> record." | 373 | "Return a Forgejo team derived from TEAM, a <team> record." |
| 374 | (forgejo-team (team-id->forgejo-id (team-id team)) | 374 | (forgejo-team (team-id->forgejo-id (team-id team)) |
| 375 | #f | 375 | *unspecified* ;no numeric ID initially |
| 376 | (or (team-description team) "") | 376 | (or (team-description team) "") |
| 377 | #f ;all-repositories? | 377 | #f ;all-repositories? |
| 378 | #f ;can-create-org-repository? | 378 | #f ;can-create-org-repository? |
