[PATCH b4 1/3] review: sashiko: switch to patchset endpoint
"Matthieu Baerts (NGI0)" <[email protected]>
| Newsgroups | org.kernel.linux.tools |
|---|---|
| Message-ID | <[email protected]> |
The 'patch' endpoint also contains the logs [1], which can be huge -- up to a few MBytes -- and not used here. That's why a new 'patchset' endpoint has been introduced with the same content, but without the logs that can be retrieved from 'review_log' if needed [2]. Link: https://github.com/sashiko-dev/sashiko/issues/57 [1] Link: https://github.com/sashiko-dev/sashiko/commit/3dbb448ed0a4 [2] Assisted-by: My-slow-DSL-connection Signed-off-by: Matthieu Baerts (NGI0) <[email protected]> --- src/b4/review/checks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/b4/review/checks.py b/src/b4/review/checks.py index 36c0780..2ff825f 100644 --- a/src/b4/review/checks.py +++ b/src/b4/review/checks.py @@ -361,7 +361,7 @@ def _fetch_sashiko_patchset(msgid: str, sashiko_url: str) -> Optional[Dict[str, if msgid in _sashiko_patchset_cache: return _sashiko_patchset_cache[msgid] - url = f'{sashiko_url.rstrip("/")}/api/patch' + url = f'{sashiko_url.rstrip("/")}/api/patchset' try: session = b4.get_requests_session() resp = session.get(url, params={'id': msgid}, timeout=30) -- 2.53.0