Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get list of Orgs from Gogs #17

Open
nelsonic opened this issue May 5, 2022 · 0 comments
Open

Get list of Orgs from Gogs #17

nelsonic opened this issue May 5, 2022 · 0 comments

Comments

@nelsonic
Copy link
Member

nelsonic commented May 5, 2022

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. 💭

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant