File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -705,7 +705,8 @@ Gitea or set your environment appropriately.`, "")
705
705
706
706
if err == nil {
707
707
for _ , res := range resp .Results {
708
- hookPrintResult (res .ShouldShowMessage , res .IsCreatePR , res .HeadBranch , res .URL )
708
+ // AGit always creates a pull request so there is no point is prompting user to create one
709
+ hookPrintResult (res .ShouldShowMessage , false , res .HeadBranch , res .URL )
709
710
}
710
711
}
711
712
Original file line number Diff line number Diff line change @@ -1356,6 +1356,7 @@ func CompareAndPullRequestPost(ctx *context.Context) {
1356
1356
flashError , err := ctx .RenderToHTML (tplAlertDetails , map [string ]any {
1357
1357
"Message" : ctx .Tr ("repo.pulls.push_rejected" ),
1358
1358
"Summary" : ctx .Tr ("repo.pulls.new.blocked_user" ),
1359
+ "Details" : "" ,
1359
1360
})
1360
1361
if err != nil {
1361
1362
ctx .ServerError ("CompareAndPullRequest.HTMLString" , err )
@@ -1366,6 +1367,7 @@ func CompareAndPullRequestPost(ctx *context.Context) {
1366
1367
flashError , err := ctx .RenderToHTML (tplAlertDetails , map [string ]any {
1367
1368
"Message" : ctx .Tr ("repo.pulls.push_rejected" ),
1368
1369
"Summary" : ctx .Tr ("repo.pulls.new.must_collaborator" ),
1370
+ "Details" : "" ,
1369
1371
})
1370
1372
if err != nil {
1371
1373
ctx .ServerError ("CompareAndPullRequest.HTMLString" , err )
You can’t perform that action at this time.
0 commit comments