forked from kevadesu/forgejo
Backport #27483 by @msantos
Fixes https://github.com/go-gitea/gitea/issues/27481
---
Patch tested:
```json
[
{
"url": "http://100.115.92.198:9292/api/v1/repos/msantos/test/git/commits/7664dcb44167e0f9efd994e4ca6a9164694adc27",
"sha": "7664dcb44167e0f9efd994e4ca6a9164694adc27",
"created": "2023-10-06T09:57:08-04:00",
"html_url": "7664dcb441
",
...
"files": [
{
"filename": "README.md",
"status": "modified"
}
],
"stats": {
"total": 2,
"additions": 2,
"deletions": 0
}
}
]
```
Co-authored-by: Michael Santos <michael.santos@gmail.com>
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
parent
a1ee172fb0
commit
4c9f7d0710
5 changed files with 65 additions and 2 deletions
|
@ -37,5 +37,7 @@ func TestAPIReposGitNotes(t *testing.T) {
|
|||
var apiData api.Note
|
||||
DecodeJSON(t, resp, &apiData)
|
||||
assert.Equal(t, "This is a test note\n", apiData.Message)
|
||||
assert.NotEmpty(t, apiData.Commit.Files)
|
||||
assert.NotNil(t, apiData.Commit.RepoCommit.Verification)
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue