mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	@@ -5,7 +5,7 @@ Gogs - Go Git Service [
 | 
			
		||||
 | 
			
		||||
##### Current version: 0.7.6 Beta
 | 
			
		||||
##### Current version: 0.7.7 Beta
 | 
			
		||||
 | 
			
		||||
<table>
 | 
			
		||||
    <tr>
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								gogs.go
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								gogs.go
									
									
									
									
									
								
							@@ -17,7 +17,7 @@ import (
 | 
			
		||||
	"github.com/gogits/gogs/modules/setting"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
const APP_VER = "0.7.6.1112 Beta"
 | 
			
		||||
const APP_VER = "0.7.7.1113 Beta"
 | 
			
		||||
 | 
			
		||||
func init() {
 | 
			
		||||
	runtime.GOMAXPROCS(runtime.NumCPU())
 | 
			
		||||
 
 | 
			
		||||
@@ -14,8 +14,8 @@ import (
 | 
			
		||||
	"time"
 | 
			
		||||
	"unicode"
 | 
			
		||||
 | 
			
		||||
	"github.com/go-xorm/xorm"
 | 
			
		||||
	"github.com/Unknwon/com"
 | 
			
		||||
	"github.com/go-xorm/xorm"
 | 
			
		||||
 | 
			
		||||
	api "github.com/gogits/go-gogs-client"
 | 
			
		||||
 | 
			
		||||
@@ -138,10 +138,10 @@ func (a Action) GetIssueInfos() []string {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (a Action) GetIssueTitle() string {
 | 
			
		||||
	issueIndex := com.StrTo(a.GetIssueInfos()[0]).MustInt64()
 | 
			
		||||
	issue, err := GetIssueByIndex(a.RepoID, issueIndex)
 | 
			
		||||
	index := com.StrTo(a.GetIssueInfos()[0]).MustInt64()
 | 
			
		||||
	issue, err := GetIssueByIndex(a.RepoID, index)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		log.Error(4, "GetIssueByID: %v", err)
 | 
			
		||||
		log.Error(4, "GetIssueByIndex: %v", err)
 | 
			
		||||
		return "500 when get title"
 | 
			
		||||
	}
 | 
			
		||||
	return issue.Name
 | 
			
		||||
 
 | 
			
		||||
@@ -1 +1 @@
 | 
			
		||||
0.7.6.1112 Beta
 | 
			
		||||
0.7.7.1113 Beta
 | 
			
		||||
		Reference in New Issue
	
	Block a user