forgejo/modules
Laurent Cahour b21b63c61a
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>
2023-08-24 10:03:49 +00:00
..
actions chore(actions): support cron schedule task (#26655) 2023-08-24 03:06:51 +00:00
activitypub
analyze Rename code_langauge.go to code_language.go (#26377) 2023-08-07 15:00:53 -04:00
assetfs
auth
avatar
base
cache improve unit test for caching (#26185) 2023-07-27 22:24:40 +02:00
charset
container
context Fix display problems of members and teams unit (#26363) 2023-08-15 16:00:35 +02:00
csv
doctor
emoji
eventsource
generate Handle base64 decoding correctly to avoid panic (#26483) 2023-08-14 10:30:16 +00:00
git Add merge files files to GetCommitFileStatus (#20515) 2023-08-24 10:03:49 +00:00
gitgraph
graceful Allow the use of alternative net.Listener implementations by downstreams (#25855) 2023-07-24 07:18:17 +00:00
hcaptcha
highlight
hostmatcher
html Refactor backend SVG package and add tests (#26335) 2023-08-05 04:34:59 +00:00
httpcache
httplib
indexer Fix counting and filtering on the dashboard page for issues (#26657) 2023-08-23 02:29:17 +00:00
issue/template
json
label
lfs
log
markup Make user-content-* consistent with github (#26388) 2023-08-09 09:30:31 +00:00
mcaptcha
metrics
migration
mirror
nosql
notification Add missing triggers to update issue indexer (#26539) 2023-08-16 17:36:05 +08:00
options
packages Fix NPM packages name validation (#26595) 2023-08-20 15:06:42 +00:00
paginator
pprof
private
process
proxy
proxyprotocol
public
queue Calculate MAX_WORKERS default value by CPU number (#26177) 2023-07-27 16:40:35 +08:00
recaptcha
references
regexplru
repository Refactor and enhance issue indexer to support both searching, filtering and paging (#26012) 2023-07-31 06:28:53 +00:00
secret
session
setting Update minimum password length requirements (#25946) 2023-08-21 19:27:50 +00:00
sitemap
ssh Fix admin queue page title (#26409) 2023-08-10 02:05:37 +00:00
storage Use correct minio error (#26634) 2023-08-21 16:20:11 +00:00
structs feat(API): update and delete secret for managing organization secrets (#26660) 2023-08-24 02:07:00 +00:00
svg Refactor backend SVG package and add tests (#26335) 2023-08-05 04:34:59 +00:00
sync
system
templates Remove avatarHTML from template helpers (#26598) 2023-08-21 15:00:14 +00:00
test Start using template context function (#26254) 2023-08-08 01:22:47 +00:00
testlogger
timeutil
translation
turnstile
typesniffer Detect ogg mime-type as audio or video (#26494) 2023-08-15 10:31:25 +08:00
updatechecker
upload
uri
user
util Handle base64 decoding correctly to avoid panic (#26483) 2023-08-14 10:30:16 +00:00
validation
web Update tool dependencies (#26607) 2023-08-20 22:59:19 +00:00
webhook