dwyl / dwyl/gogs

Get list of Orgs from Gogs

Open
#17 0 comments 2 reactions 0 assignees View on GitHub
discuss enhancement priority-2 T1h technical
Dominant language
Elixir
Stars
10
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Sadly, _creating_ a **`new`** Organisation on the Gogs Server via the **`REST API`** doesn't appear to be possible: https://github.com/dwyl/gogs/issues/8#issuecomment-1115464858 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. 💭

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.