[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#74769] [PATCH Cuirass 2/4] forgejo: Add module for Forgejo JSON obj
From: |
Ludovic Courtès |
Subject: |
[bug#74769] [PATCH Cuirass 2/4] forgejo: Add module for Forgejo JSON objects definition. |
Date: |
Thu, 12 Dec 2024 14:34:10 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Hi!
Very nice! :-)
Romain GARBAGE <romain.garbage@inria.fr> skribis:
> * Makefile.am: Add src/cuirass/forgejo.scm and tests/forgejo.scm.
> * src/cuirass/forgejo.scm: Add <forgejo-repository>,
> <forgejo-pull-request-event>, <forgejo-pull-request>,
> <forgejo-repository-reference> and <forgejo-repo> record types.
> (forgejo-pull-request->specification): New variable.
> * tests/forgejo.scm: Add tests.
>
> fixup tests
Leftover?
One thing, though:
> +(define* (forgejo-pull-request->specification pull-request #:optional
> (cuirass-options #f))
> + "Returns a SPECIFICATION built out of a FORGEJO-PULL-REQUEST."
> + (let* ((source-repo-reference (forgejo-pull-request-head pull-request))
> + (project-name (forgejo-repository-name
> + (forgejo-repository-reference-repository
> + (forgejo-pull-request-base pull-request))))
> + (source-branch (forgejo-repository-reference-ref
> source-repo-reference))
> + (source-url (forgejo-repository-url
> + (forgejo-repository-reference-repository
> source-repo-reference)))
> + (id (forgejo-pull-request-number pull-request))
> + (name-prefix (if (and cuirass-options
> + (jobset-options-name-prefix cuirass-options))
> + (jobset-options-name-prefix cuirass-options)
The ‘jobset-options-*’ variables are unbound. I understand the goal is
to share <jobset-options> as defined in (cuirass gitlab), but perhaps
that should either be made clearly, or just left out for now.
Thanks!
Ludo’.
- [bug#74769] [PATCH Cuirass 0/4] Forgejo event support, Romain GARBAGE, 2024/12/10
- [bug#74769] [PATCH Cuirass 1/4] tests: Move procedure definition., Romain GARBAGE, 2024/12/10
- [bug#74769] [PATCH Cuirass v2 1/7] tests: Move procedure definition., Romain GARBAGE, 2024/12/12
- [bug#74769] [PATCH Cuirass v2 2/7] tests: Rename specifications-equal? procedure., Romain GARBAGE, 2024/12/12
- [bug#74769] [PATCH Cuirass v2 3/7] forges: Add module for common forges utilities., Romain GARBAGE, 2024/12/12
- [bug#74769] [PATCH Cuirass v2 5/7] forgejo: Add module for Forgejo JSON objects definition., Romain GARBAGE, 2024/12/12
- [bug#74769] [PATCH Cuirass v2 7/7] http: Add admin/forgejo/event., Romain GARBAGE, 2024/12/12
- [bug#74769] [PATCH Cuirass v2 4/7] forges: Define default values for specifications., Romain GARBAGE, 2024/12/12
- [bug#74769] [PATCH Cuirass v2 6/7] tests: Explicit Gitlab endpoint related variables., Romain GARBAGE, 2024/12/12
- bug#74769: [PATCH Cuirass v2 1/7] tests: Move procedure definition., Ludovic Courtès, 2024/12/13