woodpecker/server/forge/github
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
..
fixtures Change master to main (#2044) 2023-07-31 05:47:23 +02:00
convert.go Remove default branch fallbacks (#2065) 2023-07-30 18:28:52 +02:00
convert_test.go Change master to main (#2044) 2023-07-31 05:47:23 +02:00
github.go Forge Github Org: Use login instead of name (#2104) 2023-08-03 17:30:56 +02:00
github_test.go Add Forge Metadata (#1789) 2023-05-31 18:30:41 +02:00
parse.go Remove default branch fallbacks (#2065) 2023-07-30 18:28:52 +02:00
parse_test.go let HookParse func explicit ignore events (#1942) 2023-07-14 02:03:54 +02:00