Skip to content

Get list of Orgs from Gogs #17

Open
@nelsonic

Description

@nelsonic

Sadly, creating a new Organisation on the Gogs Server via the REST API doesn't appear to be possible: #8 (comment) so the next best thing is to:
a) create the org that we need manually via the Web UI: https://gogs-server.fly.dev/org/create
b) list all the orgs we have access to via REST API e.g: GET /user/orgs
c) if the org we need already exists, then we create the repo in that org.
otherwise we create the repo in the "global" org but name-space it to the desired org.
This isn't ideal, obviously, but I think it might be better than nothing. 💭

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions