Browse Source

#2639 add branch prefix for test webhook

master
Unknwon 9 years ago
parent
commit
d5ca913b2f
4 changed files with 5 additions and 4 deletions
  1. +1
    -1
      .gopmfile
  2. +1
    -1
      gogs.go
  3. +2
    -1
      routers/repo/webhook.go
  4. +1
    -1
      templates/.VERSION

+ 1
- 1
.gopmfile View File

@@ -15,7 +15,7 @@ github.com/go-macaron/session = commit:66031fc
github.com/go-macaron/toolbox = commit:82b5115 github.com/go-macaron/toolbox = commit:82b5115
github.com/go-sql-driver/mysql = commit:b4db83c github.com/go-sql-driver/mysql = commit:b4db83c
github.com/go-xorm/core = commit:1e2868c github.com/go-xorm/core = commit:1e2868c
github.com/go-xorm/xorm = commit:24c1f3c
github.com/go-xorm/xorm =
github.com/gogits/chardet = commit:2404f77725 github.com/gogits/chardet = commit:2404f77725
github.com/gogits/git-module = commit:3b40eae github.com/gogits/git-module = commit:3b40eae
github.com/gogits/go-gogs-client = github.com/gogits/go-gogs-client =


+ 1
- 1
gogs.go View File

@@ -17,7 +17,7 @@ import (
"github.com/gogits/gogs/modules/setting" "github.com/gogits/gogs/modules/setting"
) )


const APP_VER = "0.8.37.0215"
const APP_VER = "0.8.37.0217"


func init() { func init() {
runtime.GOMAXPROCS(runtime.NumCPU()) runtime.GOMAXPROCS(runtime.NumCPU())


+ 2
- 1
routers/repo/webhook.go View File

@@ -12,6 +12,7 @@ import (


"github.com/Unknwon/com" "github.com/Unknwon/com"


git "github.com/gogits/git-module"
api "github.com/gogits/go-gogs-client" api "github.com/gogits/go-gogs-client"


"github.com/gogits/gogs/models" "github.com/gogits/gogs/models"
@@ -341,7 +342,7 @@ func SlackHooksEditPost(ctx *middleware.Context, form auth.NewSlackHookForm) {


func TestWebhook(ctx *middleware.Context) { func TestWebhook(ctx *middleware.Context) {
p := &api.PushPayload{ p := &api.PushPayload{
Ref: ctx.Repo.Repository.DefaultBranch,
Ref: git.BRANCH_PREFIX + ctx.Repo.Repository.DefaultBranch,
Before: ctx.Repo.CommitID, Before: ctx.Repo.CommitID,
After: ctx.Repo.CommitID, After: ctx.Repo.CommitID,
Commits: []*api.PayloadCommit{ Commits: []*api.PayloadCommit{


+ 1
- 1
templates/.VERSION View File

@@ -1 +1 @@
0.8.37.0215
0.8.37.0217

Loading…
Cancel
Save