woodpecker/server
runephilosof-karnovgroup 8487ed92cd
Forge Github Org: Use login instead of name (#2104)
For "woodpecker-ci" the `name` is "Woodpecker CI"
 and the `login` is "woodpecker-ci"

Fixes #2092

This was causing the organization lookup to fail, because it looks up
using the `login`, when it did not find the organization, it would try
to create it. The creation would fail, because it uses the `name`, and
an organization with that `name` already exists.
Resulting in:

```
pq: duplicate key value violates unique constraint "UQE_orgs_name"
```
2023-08-03 17:30:56 +02:00
..
api Handle case where there is no latest pipeline for GetBadge (#2042) 2023-07-28 00:34:22 +02:00
badges Rename build to pipeline in code (#1224) 2022-10-18 03:24:12 +02:00
cache Use id to access orgs (#1873) 2023-07-21 19:45:32 +02:00
ccmenu Rename build to pipeline in code (#1224) 2022-10-18 03:24:12 +02:00
cron Use modern error handling and enforce it via lint (#1327) 2023-02-02 00:08:02 +01:00
forge Forge Github Org: Use login instead of name (#2104) 2023-08-03 17:30:56 +02:00
grpc Fix agent auth (#1952) 2023-07-08 18:09:34 +02:00
logging Fix log view (#1874) 2023-07-01 18:55:00 +02:00
model Use id to access orgs (#1873) 2023-07-21 19:45:32 +02:00
pipeline Fix repo gate protection (#1969) 2023-07-11 17:34:50 +02:00
plugins Use id to access orgs (#1873) 2023-07-21 19:45:32 +02:00
pubsub Update Go dependencies and minimal Go version to 1.20 (#1650) 2023-03-21 00:48:15 +01:00
queue Add own workflow model (#1784) 2023-06-27 18:01:18 +02:00
router Allow to disable swagger (#2093) 2023-08-03 02:42:30 +02:00
store Change master to main (#2044) 2023-07-31 05:47:23 +02:00
web Allow to disable swagger (#2093) 2023-08-03 02:42:30 +02:00
config.go Allow to disable swagger (#2093) 2023-08-03 02:42:30 +02:00