#2273 URL consistency on webhook payload

tokarchuk/v1.17
Unknwon 9 years ago
parent 93f03707a7
commit 240fe07287
  1. 2
      models/repo.go
  2. 2
      scripts/mysql.sql

@ -402,7 +402,7 @@ func (repo *Repository) ComposePayload() *api.PayloadRepo {
cl := repo.CloneLink() cl := repo.CloneLink()
return &api.PayloadRepo{ return &api.PayloadRepo{
ID: repo.ID, ID: repo.ID,
Name: repo.LowerName, Name: repo.Name,
URL: repo.FullRepoLink(), URL: repo.FullRepoLink(),
SSHURL: cl.SSH, SSHURL: cl.SSH,
CloneURL: cl.HTTPS, CloneURL: cl.HTTPS,

@ -1,2 +1,2 @@
DROP DATABASE IF EXISTS gogs; DROP DATABASE IF EXISTS gogs;
CREATE DATABASE IF NOT EXISTS gogs CHARACTER SET utf8 COLLATE utf8_general_ci; CREATE DATABASE IF NOT EXISTS gogs CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;

Loading…
Cancel
Save