woodpecker/server/forge
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
..
bitbucket Add some testsvfor bitbucket forge (#2097) 2023-08-03 02:06:03 +02:00
common Add own workflow model (#1784) 2023-06-27 18:01:18 +02:00
gitea Change master to main (#2044) 2023-07-31 05:47:23 +02:00
github Forge Github Org: Use login instead of name (#2104) 2023-08-03 17:30:56 +02:00
gitlab Forge Github Org: Use login instead of name (#2104) 2023-08-03 17:30:56 +02:00
mocks Use id to access orgs (#1873) 2023-07-21 19:45:32 +02:00
types let HookParse func explicit ignore events (#1942) 2023-07-14 02:03:54 +02:00
configFetcher.go Some small code refactorings (#1727) 2023-04-30 17:02:47 +02:00
configFetcher_test.go Drop ".drone.yml" as default pipeline config (#1795) 2023-05-31 16:02:20 +02:00
forge.go Use id to access orgs (#1873) 2023-07-21 19:45:32 +02:00