mirror of https://github.com/go-gitea/gitea
Add merge files files to GetCommitFileStatus (#20515)
Hi, We'd like to add merge files files to GetCommitFileStatus fucntions so API returns the list of all the files associated to a merged pull request commit, like GitHub API does. The list of affectedFiles for an API commit is fetched from toCommit() function in routers/api/v1/repo/commits.go, and API was returning no file in case of a pull request with no conflict, or just files associated to the confict resolution, but NOT the full list of merged files. This would lead to situations where a CI polling a repo for changes could miss some file changes due to API returning an empty / partial list in case of such merged pull requests. (Hope this makes sense :) ) NOTE: I'd like to add a unittest in integrations/api_repo_git_commits_test.go but failed to understand how to add my own test bare repo so I can make a test on a merged pull request commit to check for affectedFiles. Is there a merged pull request in there that I could use maybe? Could someone please direct me to the relevant ressources with informations on how to do that please? Thanks for your time, Laurent. --------- Co-authored-by: Thomas Desveaux <desveaux.thomas@gmail.com>pull/26663/head^2
parent
86ee5b4b1b
commit
b21b63c61a
@ -0,0 +1 @@ |
||||
ref: refs/heads/main |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1 @@ |
||||
022f4ce6214973e018f02bf363bf8a2e3691f699 |
@ -0,0 +1 @@ |
||||
ae4b035e7c4afbc000576cee3f713ea0c2f1e1e2 |
@ -0,0 +1 @@ |
||||
d1792641396ff7630d35fbb0b74b86b0c71bca77 |
@ -0,0 +1 @@ |
||||
38ec3e0cdc88bde01014bda4a5dd9fc835f41439 |
Loading…
Reference in new issue