When doing patch review on a project that uses patchwork, it's useful to be able to see the patchwork page easily for test results or discussion.
The configuration would just consist of the repository needing the right patchwork API URL (e.g. https://patchwork.yoctoproject.org/api).
Then for a specific commit, gitte would need to generate a patchwork hash of the commit using logic from https://github.com/getpatchwork/patchwork/blob/main/patchwork/hasher.py (which is basically the same logic as git but it doesn't look at the commit message). It can then send a request to the API:
GET https://patchwork.yoctoproject.org/api/patches/?hash=5c5c9ac2ca2f16896e7adcef1bc7d12dba0a73fe HTTP/1.1
And that will return a list of patches that match the hash:
{
"id": 90373,
"url": "https://patchwork.yoctoproject.org/api/patches/90373/",
"web_url": "https://patchwork.yoctoproject.org/project/oe-core/patch/20260617093224.56557-1-ross.burton@arm.com/",
"project": {
"id": 6,
"url": "https://patchwork.yoctoproject.org/api/projects/6/",
"name": "OpenEmbedded Core Layer",
"link_name": "oe-core",
"list_id": "openembedded-core.lists.openembedded.org",
"list_email": "openembedded-core@lists.openembedded.org",
"web_url": "http://www.openembedded.org/wiki/Main_Page",
"scm_url": "git://git.openembedded.org/openembedded-core/",
"webscm_url": "https://git.openembedded.org/openembedded-core/",
"list_archive_url": "",
"list_archive_url_format": "",
"commit_url_format": ""
},
"msgid": "<20260617093224.56557-1-ross.burton@arm.com>",
"list_archive_url": null,
"date": "2026年06月17日T09:32:23",
"name": "libaio: update SRC_URI",
"commit_ref": null,
"pull_url": null,
"state": "under-review",
"archived": false,
"hash": "5c5c9ac2ca2f16896e7adcef1bc7d12dba0a73fe",
"submitter": {
"id": 1,
"url": "https://patchwork.yoctoproject.org/api/people/1/",
"name": "Ross Burton",
"email": "ross.burton@arm.com"
},
...
Now you can just open the web_url attribute of the first result in the default browser.