Skip to content

Commit 5cc2686

Browse files
committed
change the sequence of commit comment save
1 parent 82a7cb9 commit 5cc2686

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

models/action.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -675,8 +675,8 @@ func CommitRepoAction(opts CommitRepoActionOptions) error {
675675
}
676676
}
677677

678-
for _, c := range opts.Commits.Commits {
679-
if err := CreatePullPushComment(pusher, issue.Repo, issue, c); err != nil {
678+
for i := len(opts.Commits.Commits) - 1; i >= 0; i-- {
679+
if err := CreatePullPushComment(pusher, issue.Repo, issue, opts.Commits.Commits[i]); err != nil {
680680
return fmt.Errorf("CreatePullPushComment: %v", err)
681681
}
682682
}

0 commit comments

Comments
 (0)