@@ -198,7 +198,7 @@ func getExpectedFileResponseForRepoFilesCreate(commitID string, lastCommit *git.
198
198
SHA : "65f1bf27bc3bf70f64657658635e66094edbcb4d" ,
199
199
},
200
200
},
201
- Message : "Updates README.md \n " ,
201
+ Message : "Creates new/file.txt \n " ,
202
202
Tree : & api.CommitMeta {
203
203
URL : setting .AppURL + "api/v1/repos/user2/repo1/git/trees/f93e3a1a1525fb5b91020da86e44810c87a2d7bc" ,
204
204
SHA : "f93e3a1a1525fb5b91020git dda86e44810c87a2d7bc" ,
@@ -228,6 +228,7 @@ func getExpectedFileResponseForRepoFilesUpdate(commitID, filename, lastCommitSHA
228
228
LastCommitSHA : lastCommitSHA ,
229
229
LastCommitterDate : lastCommitterWhen ,
230
230
LastAuthorDate : lastAuthorWhen ,
231
+ LastCommitMessage : "Updates README.md\n " ,
231
232
Type : "file" ,
232
233
Size : 43 ,
233
234
Encoding : & encoding ,
@@ -328,18 +329,19 @@ func getExpectedFileResponseForRepoFilesUpdateRename(commitID, lastCommitSHA str
328
329
downloadURL := setting .AppURL + "user2/lfs/raw/branch/master/" + detail .filename
329
330
// don't set time related fields because there might be different time in one operation
330
331
responses = append (responses , & api.ContentsResponse {
331
- Name : detail .filename ,
332
- Path : detail .filename ,
333
- SHA : detail .sha ,
334
- LastCommitSHA : lastCommitSHA ,
335
- Type : "file" ,
336
- Size : detail .size ,
337
- Encoding : util .ToPointer ("base64" ),
338
- Content : & detail .content ,
339
- URL : & selfURL ,
340
- HTMLURL : & htmlURL ,
341
- GitURL : & gitURL ,
342
- DownloadURL : & downloadURL ,
332
+ Name : detail .filename ,
333
+ Path : detail .filename ,
334
+ SHA : detail .sha ,
335
+ LastCommitSHA : lastCommitSHA ,
336
+ LastCommitMessage : "Rename files\n " ,
337
+ Type : "file" ,
338
+ Size : detail .size ,
339
+ Encoding : util .ToPointer ("base64" ),
340
+ Content : & detail .content ,
341
+ URL : & selfURL ,
342
+ HTMLURL : & htmlURL ,
343
+ GitURL : & gitURL ,
344
+ DownloadURL : & downloadURL ,
343
345
Links : & api.FileLinksResponse {
344
346
Self : & selfURL ,
345
347
GitURL : & gitURL ,
0 commit comments