mirror of
https://github.com/go-gitea/gitea
synced 2024-12-22 09:07:54 +01:00
Merge pull request #108 from go-gitea/go-sdk
Replaced gogits go-gogs-client with go-sdk
This commit is contained in:
commit
5d430c9e68
3
.gitignore
vendored
3
.gitignore
vendored
@ -24,11 +24,12 @@ _testmain.go
|
|||||||
*.prof
|
*.prof
|
||||||
|
|
||||||
coverage.out
|
coverage.out
|
||||||
gitea
|
|
||||||
|
|
||||||
*.db
|
*.db
|
||||||
*.log
|
*.log
|
||||||
|
|
||||||
|
/gitea
|
||||||
|
|
||||||
/bin
|
/bin
|
||||||
/dist
|
/dist
|
||||||
/custom
|
/custom
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
2. Due to testing purpose, data of [try.gogs.io](https://try.gogs.io) was reset in **Jan 28, 2015** and will reset multiple times after. Please do **NOT** put your important data on the site.
|
2. Due to testing purpose, data of [try.gogs.io](https://try.gogs.io) was reset in **Jan 28, 2015** and will reset multiple times after. Please do **NOT** put your important data on the site.
|
||||||
3. The demo site [try.gogs.io](https://try.gogs.io) is running under `develop` branch.
|
3. The demo site [try.gogs.io](https://try.gogs.io) is running under `develop` branch.
|
||||||
4. If you think there are vulnerabilities in the project, please talk privately to **u@gogs.io**. Thanks!
|
4. If you think there are vulnerabilities in the project, please talk privately to **u@gogs.io**. Thanks!
|
||||||
5. If you're interested in using APIs, we have experimental support with [documentation](https://github.com/gogits/go-gogs-client/wiki).
|
5. If you're interested in using APIs, we have experimental support with [documentation](https://godoc.org/github.com/go-gitea/go-sdk).
|
||||||
6. If your team/company is using Gogs and would like to put your logo on [our website](https://gogs.io), contact us by any means.
|
6. If your team/company is using Gogs and would like to put your logo on [our website](https://gogs.io), contact us by any means.
|
||||||
|
|
||||||
## Purpose
|
## Purpose
|
||||||
|
@ -39,7 +39,6 @@ import (
|
|||||||
"github.com/go-macaron/toolbox"
|
"github.com/go-macaron/toolbox"
|
||||||
"github.com/go-xorm/xorm"
|
"github.com/go-xorm/xorm"
|
||||||
"github.com/go-gitea/git"
|
"github.com/go-gitea/git"
|
||||||
gogs "github.com/gogits/go-gogs-client"
|
|
||||||
version "github.com/mcuadros/go-version"
|
version "github.com/mcuadros/go-version"
|
||||||
"github.com/urfave/cli"
|
"github.com/urfave/cli"
|
||||||
ini "gopkg.in/ini.v1"
|
ini "gopkg.in/ini.v1"
|
||||||
@ -94,7 +93,6 @@ func checkVersion() {
|
|||||||
{"gopkg.in/ini.v1", ini.Version, "1.8.4"},
|
{"gopkg.in/ini.v1", ini.Version, "1.8.4"},
|
||||||
{"gopkg.in/macaron.v1", macaron.Version, "1.1.7"},
|
{"gopkg.in/macaron.v1", macaron.Version, "1.1.7"},
|
||||||
{"github.com/go-gitea/git", git.Version, "0.4.1"},
|
{"github.com/go-gitea/git", git.Version, "0.4.1"},
|
||||||
{"github.com/gogits/go-gogs-client", gogs.Version, "0.12.1"},
|
|
||||||
}
|
}
|
||||||
for _, c := range checkers {
|
for _, c := range checkers {
|
||||||
if !version.Compare(c.Version(), c.Expected, ">=") {
|
if !version.Compare(c.Version(), c.Expected, ">=") {
|
||||||
|
@ -17,7 +17,7 @@ import (
|
|||||||
"github.com/go-xorm/xorm"
|
"github.com/go-xorm/xorm"
|
||||||
|
|
||||||
"github.com/go-gitea/git"
|
"github.com/go-gitea/git"
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/go-gitea/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/modules/base"
|
"github.com/go-gitea/gitea/modules/base"
|
||||||
"github.com/go-gitea/gitea/modules/log"
|
"github.com/go-gitea/gitea/modules/log"
|
||||||
|
@ -16,7 +16,7 @@ import (
|
|||||||
|
|
||||||
"github.com/Unknwon/com"
|
"github.com/Unknwon/com"
|
||||||
"github.com/go-xorm/xorm"
|
"github.com/go-xorm/xorm"
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/go-gitea/go-sdk/gitea"
|
||||||
gouuid "github.com/satori/go.uuid"
|
gouuid "github.com/satori/go.uuid"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/modules/base"
|
"github.com/go-gitea/gitea/modules/base"
|
||||||
|
@ -12,7 +12,7 @@ import (
|
|||||||
"github.com/Unknwon/com"
|
"github.com/Unknwon/com"
|
||||||
"github.com/go-xorm/xorm"
|
"github.com/go-xorm/xorm"
|
||||||
|
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/go-gitea/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/modules/log"
|
"github.com/go-gitea/gitea/modules/log"
|
||||||
"github.com/go-gitea/gitea/modules/markdown"
|
"github.com/go-gitea/gitea/modules/markdown"
|
||||||
|
@ -13,7 +13,7 @@ import (
|
|||||||
|
|
||||||
"github.com/go-xorm/xorm"
|
"github.com/go-xorm/xorm"
|
||||||
|
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/go-gitea/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/modules/base"
|
"github.com/go-gitea/gitea/modules/base"
|
||||||
)
|
)
|
||||||
|
@ -18,7 +18,7 @@ import (
|
|||||||
"github.com/go-gitea/gitea/modules/sync"
|
"github.com/go-gitea/gitea/modules/sync"
|
||||||
"github.com/go-xorm/xorm"
|
"github.com/go-xorm/xorm"
|
||||||
"github.com/go-gitea/git"
|
"github.com/go-gitea/git"
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/go-gitea/go-sdk/gitea"
|
||||||
)
|
)
|
||||||
|
|
||||||
var PullRequestQueue = sync.NewUniqueQueue(setting.Repository.PullRequestQueueLength)
|
var PullRequestQueue = sync.NewUniqueQueue(setting.Repository.PullRequestQueueLength)
|
||||||
|
@ -29,7 +29,7 @@ import (
|
|||||||
"github.com/go-gitea/gitea/modules/sync"
|
"github.com/go-gitea/gitea/modules/sync"
|
||||||
"github.com/go-xorm/xorm"
|
"github.com/go-xorm/xorm"
|
||||||
"github.com/go-gitea/git"
|
"github.com/go-gitea/git"
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/go-gitea/go-sdk/gitea"
|
||||||
version "github.com/mcuadros/go-version"
|
version "github.com/mcuadros/go-version"
|
||||||
ini "gopkg.in/ini.v1"
|
ini "gopkg.in/ini.v1"
|
||||||
)
|
)
|
||||||
|
@ -25,7 +25,7 @@ import (
|
|||||||
"github.com/nfnt/resize"
|
"github.com/nfnt/resize"
|
||||||
|
|
||||||
"github.com/go-gitea/git"
|
"github.com/go-gitea/git"
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/go-gitea/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/modules/avatar"
|
"github.com/go-gitea/gitea/modules/avatar"
|
||||||
"github.com/go-gitea/gitea/modules/base"
|
"github.com/go-gitea/gitea/modules/base"
|
||||||
|
@ -15,7 +15,7 @@ import (
|
|||||||
"github.com/go-xorm/xorm"
|
"github.com/go-xorm/xorm"
|
||||||
gouuid "github.com/satori/go.uuid"
|
gouuid "github.com/satori/go.uuid"
|
||||||
|
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/go-gitea/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/modules/httplib"
|
"github.com/go-gitea/gitea/modules/httplib"
|
||||||
"github.com/go-gitea/gitea/modules/log"
|
"github.com/go-gitea/gitea/modules/log"
|
||||||
|
@ -11,7 +11,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/go-gitea/git"
|
"github.com/go-gitea/git"
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/go-gitea/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"github.com/go-gitea/gitea/modules/setting"
|
||||||
)
|
)
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
package base
|
package base
|
||||||
|
|
||||||
const DOC_URL = "https://github.com/gogits/go-gogs-client/wiki"
|
const DocURL = "https://godoc.org/github.com/go-gitea/go-sdk/gitea"
|
||||||
|
|
||||||
type (
|
type (
|
||||||
TplName string
|
TplName string
|
||||||
|
@ -36,7 +36,7 @@ func (ctx *APIContext) Error(status int, title string, obj interface{}) {
|
|||||||
|
|
||||||
ctx.JSON(status, map[string]string{
|
ctx.JSON(status, map[string]string{
|
||||||
"message": message,
|
"message": message,
|
||||||
"url": base.DOC_URL,
|
"url": base.DocURL,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
package admin
|
package admin
|
||||||
|
|
||||||
import (
|
import (
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/go-gitea/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
package admin
|
package admin
|
||||||
|
|
||||||
import (
|
import (
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/go-gitea/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
package admin
|
package admin
|
||||||
|
|
||||||
import (
|
import (
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/go-gitea/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
"github.com/go-gitea/gitea/routers/api/v1/repo"
|
"github.com/go-gitea/gitea/routers/api/v1/repo"
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
package admin
|
package admin
|
||||||
|
|
||||||
import (
|
import (
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/go-gitea/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
|
@ -10,7 +10,7 @@ import (
|
|||||||
"github.com/go-macaron/binding"
|
"github.com/go-macaron/binding"
|
||||||
"gopkg.in/macaron.v1"
|
"gopkg.in/macaron.v1"
|
||||||
|
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/go-gitea/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/auth"
|
"github.com/go-gitea/gitea/modules/auth"
|
||||||
|
@ -10,7 +10,7 @@ import (
|
|||||||
"github.com/Unknwon/com"
|
"github.com/Unknwon/com"
|
||||||
|
|
||||||
"github.com/go-gitea/git"
|
"github.com/go-gitea/git"
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/go-gitea/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
)
|
)
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
package misc
|
package misc
|
||||||
|
|
||||||
import (
|
import (
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/go-gitea/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
"github.com/go-gitea/gitea/modules/markdown"
|
"github.com/go-gitea/gitea/modules/markdown"
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
package org
|
package org
|
||||||
|
|
||||||
import (
|
import (
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/go-gitea/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
package org
|
package org
|
||||||
|
|
||||||
import (
|
import (
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/go-gitea/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
"github.com/go-gitea/gitea/routers/api/v1/convert"
|
"github.com/go-gitea/gitea/routers/api/v1/convert"
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
package repo
|
package repo
|
||||||
|
|
||||||
import (
|
import (
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/go-gitea/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
"github.com/go-gitea/gitea/routers/api/v1/convert"
|
"github.com/go-gitea/gitea/routers/api/v1/convert"
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
package repo
|
package repo
|
||||||
|
|
||||||
import (
|
import (
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/go-gitea/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
|
@ -9,7 +9,7 @@ import (
|
|||||||
|
|
||||||
"github.com/Unknwon/com"
|
"github.com/Unknwon/com"
|
||||||
|
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/go-gitea/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
|
@ -8,7 +8,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/go-gitea/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
|
@ -6,7 +6,7 @@ package repo
|
|||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/go-gitea/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
package repo
|
package repo
|
||||||
|
|
||||||
import (
|
import (
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/go-gitea/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
|
@ -7,7 +7,7 @@ package repo
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/go-gitea/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
package repo
|
package repo
|
||||||
|
|
||||||
import (
|
import (
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/go-gitea/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
|
@ -7,7 +7,7 @@ package repo
|
|||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/go-gitea/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
|
@ -7,7 +7,7 @@ package repo
|
|||||||
import (
|
import (
|
||||||
"path"
|
"path"
|
||||||
|
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/go-gitea/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/auth"
|
"github.com/go-gitea/gitea/modules/auth"
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
package user
|
package user
|
||||||
|
|
||||||
import (
|
import (
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/go-gitea/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
package user
|
package user
|
||||||
|
|
||||||
import (
|
import (
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/go-gitea/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
package user
|
package user
|
||||||
|
|
||||||
import (
|
import (
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/go-gitea/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
package user
|
package user
|
||||||
|
|
||||||
import (
|
import (
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/go-gitea/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
|
@ -7,7 +7,7 @@ package user
|
|||||||
import (
|
import (
|
||||||
"github.com/Unknwon/com"
|
"github.com/Unknwon/com"
|
||||||
|
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/go-gitea/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
|
@ -13,7 +13,7 @@ import (
|
|||||||
"github.com/Unknwon/com"
|
"github.com/Unknwon/com"
|
||||||
|
|
||||||
"github.com/go-gitea/git"
|
"github.com/go-gitea/git"
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/go-gitea/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/auth"
|
"github.com/go-gitea/gitea/modules/auth"
|
||||||
@ -32,7 +32,7 @@ func Webhooks(ctx *context.Context) {
|
|||||||
ctx.Data["Title"] = ctx.Tr("repo.settings.hooks")
|
ctx.Data["Title"] = ctx.Tr("repo.settings.hooks")
|
||||||
ctx.Data["PageIsSettingsHooks"] = true
|
ctx.Data["PageIsSettingsHooks"] = true
|
||||||
ctx.Data["BaseLink"] = ctx.Repo.RepoLink
|
ctx.Data["BaseLink"] = ctx.Repo.RepoLink
|
||||||
ctx.Data["Description"] = ctx.Tr("repo.settings.hooks_desc", "https://github.com/gogits/go-gogs-client/wiki/Repositories-Webhooks")
|
ctx.Data["Description"] = ctx.Tr("repo.settings.hooks_desc", "https://godoc.org/github.com/go-gitea/go-sdk/gitea")
|
||||||
|
|
||||||
ws, err := models.GetWebhooksByRepoID(ctx.Repo.Repository.ID)
|
ws, err := models.GetWebhooksByRepoID(ctx.Repo.Repository.ID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -83,7 +83,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="inline field">
|
<div class="inline field">
|
||||||
<label>{{.i18n.Tr "repo.readme"}} <a target="_blank" href="https://github.com/gogits/go-gogs-client/wiki/Repositories#litte-notes-on-readme-template"><span class="octicon octicon-question"></span></a></label>
|
<label>{{.i18n.Tr "repo.readme"}}</label>
|
||||||
<div class="ui selection dropdown">
|
<div class="ui selection dropdown">
|
||||||
<input type="hidden" name="readme" value="{{.readme}}">
|
<input type="hidden" name="readme" value="{{.readme}}">
|
||||||
<div class="default text">{{.i18n.Tr "repo.readme_helper"}}</div>
|
<div class="default text">{{.i18n.Tr "repo.readme_helper"}}</div>
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
The MIT License (MIT)
|
Copyright (c) 2016 The Gitea Authors
|
||||||
|
Copyright (c) 2014 The Gogs Authors
|
||||||
Copyright (c) 2014 Go Git Service
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
@ -9,14 +8,13 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|||||||
copies of the Software, and to permit persons to whom the Software is
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
furnished to do so, subject to the following conditions:
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all
|
The above copyright notice and this permission notice shall be included in
|
||||||
copies or substantial portions of the Software.
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
SOFTWARE.
|
THE SOFTWARE.
|
||||||
|
|
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a MIT-style
|
// Use of this source code is governed by a MIT-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package gogs
|
package gitea
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a MIT-style
|
// Use of this source code is governed by a MIT-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package gogs
|
package gitea
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a MIT-style
|
// Use of this source code is governed by a MIT-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package gogs
|
package gitea
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a MIT-style
|
// Use of this source code is governed by a MIT-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package gogs
|
package gitea
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a MIT-style
|
// Use of this source code is governed by a MIT-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package gogs
|
package gitea
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a MIT-style
|
// Use of this source code is governed by a MIT-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package gogs
|
package gitea
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a MIT-style
|
// Use of this source code is governed by a MIT-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package gogs
|
package gitea
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a MIT-style
|
// Use of this source code is governed by a MIT-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package gogs
|
package gitea
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a MIT-style
|
// Use of this source code is governed by a MIT-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package gogs
|
package gitea
|
||||||
|
|
||||||
type MarkdownOption struct {
|
type MarkdownOption struct {
|
||||||
Text string
|
Text string
|
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a MIT-style
|
// Use of this source code is governed by a MIT-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package gogs
|
package gitea
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a MIT-style
|
// Use of this source code is governed by a MIT-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package gogs
|
package gitea
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a MIT-style
|
// Use of this source code is governed by a MIT-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package gogs
|
package gitea
|
||||||
|
|
||||||
type Team struct {
|
type Team struct {
|
||||||
ID int64 `json:"id"`
|
ID int64 `json:"id"`
|
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a MIT-style
|
// Use of this source code is governed by a MIT-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package gogs
|
package gitea
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a MIT-style
|
// Use of this source code is governed by a MIT-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package gogs
|
package gitea
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a MIT-style
|
// Use of this source code is governed by a MIT-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package gogs
|
package gitea
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a MIT-style
|
// Use of this source code is governed by a MIT-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package gogs
|
package gitea
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a MIT-style
|
// Use of this source code is governed by a MIT-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package gogs
|
package gitea
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a MIT-style
|
// Use of this source code is governed by a MIT-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package gogs
|
package gitea
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a MIT-style
|
// Use of this source code is governed by a MIT-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package gogs
|
package gitea
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a MIT-style
|
// Use of this source code is governed by a MIT-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package gogs
|
package gitea
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a MIT-style
|
// Use of this source code is governed by a MIT-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package gogs
|
package gitea
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a MIT-style
|
// Use of this source code is governed by a MIT-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package gogs
|
package gitea
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a MIT-style
|
// Use of this source code is governed by a MIT-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package gogs
|
package gitea
|
||||||
|
|
||||||
import "fmt"
|
import "fmt"
|
||||||
|
|
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a MIT-style
|
// Use of this source code is governed by a MIT-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package gogs
|
package gitea
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a MIT-style
|
// Use of this source code is governed by a MIT-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package gogs
|
package gitea
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
8
vendor/github.com/gogits/go-gogs-client/README.md
generated
vendored
8
vendor/github.com/gogits/go-gogs-client/README.md
generated
vendored
@ -1,8 +0,0 @@
|
|||||||
Gogs API client in Go
|
|
||||||
=====================
|
|
||||||
|
|
||||||
This package is still in experiment, see [Wiki](https://github.com/gogits/go-gogs-client/wiki) for documentation.
|
|
||||||
|
|
||||||
## License
|
|
||||||
|
|
||||||
This project is under the MIT License. See the [LICENSE](https://github.com/gogits/gogs/blob/master/LICENSE) file for the full license text.
|
|
12
vendor/vendor.json
vendored
12
vendor/vendor.json
vendored
@ -44,6 +44,12 @@
|
|||||||
"revision": "766747ef8b271a2b1142edd0a40735f556ec2c1d",
|
"revision": "766747ef8b271a2b1142edd0a40735f556ec2c1d",
|
||||||
"revisionTime": "2016-11-06T09:52:37Z"
|
"revisionTime": "2016-11-06T09:52:37Z"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"checksumSHA1": "/uhZZppDeb3Rbp3h8C0ALR3hdrA=",
|
||||||
|
"path": "github.com/go-gitea/go-sdk/gitea",
|
||||||
|
"revision": "0a0a04ccf7a5e6b93d9a5507701635330cf4579c",
|
||||||
|
"revisionTime": "2016-11-07T15:06:50Z"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"checksumSHA1": "qM/kf31cT2cxjtHxdzbu8q8jPq0=",
|
"checksumSHA1": "qM/kf31cT2cxjtHxdzbu8q8jPq0=",
|
||||||
"path": "github.com/go-macaron/binding",
|
"path": "github.com/go-macaron/binding",
|
||||||
@ -152,12 +158,6 @@
|
|||||||
"revision": "7f3990acf1833faa5ebd0e86f0a4c72a4b5eba3c",
|
"revision": "7f3990acf1833faa5ebd0e86f0a4c72a4b5eba3c",
|
||||||
"revisionTime": "2016-08-10T03:50:02Z"
|
"revisionTime": "2016-08-10T03:50:02Z"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"checksumSHA1": "5P4i69584LOvCooguu2D/pNxU14=",
|
|
||||||
"path": "github.com/gogits/go-gogs-client",
|
|
||||||
"revision": "d8aff570fa22d4e38954c753ec8b21862239b31d",
|
|
||||||
"revisionTime": "2016-08-30T12:34:33Z"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"checksumSHA1": "MLO0PyrK2MUO6A7Z9PxWuu43C/A=",
|
"checksumSHA1": "MLO0PyrK2MUO6A7Z9PxWuu43C/A=",
|
||||||
"path": "github.com/issue9/identicon",
|
"path": "github.com/issue9/identicon",
|
||||||
|
Loading…
Reference in New Issue
Block a user