Show a patch.

GET /api/patches/20806/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 20806,
    "url": "https://patchwork.libcamera.org/api/patches/20806/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/20806/",
    "project": {
        "id": 1,
        "url": "https://patchwork.libcamera.org/api/projects/1/?format=api",
        "name": "libcamera",
        "link_name": "libcamera",
        "list_id": "libcamera_core",
        "list_email": "libcamera-devel@lists.libcamera.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": ""
    },
    "msgid": "<20240805174807.10125-2-laurent.pinchart@ideasonboard.com>",
    "date": "2024-08-05T17:48:07",
    "name": "[2/2] utils: checkstyle.py: Validate SoB trailer against author",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "74bc70409e8ee7d8d19c6558822dd2b4c4ddacc0",
    "submitter": {
        "id": 2,
        "url": "https://patchwork.libcamera.org/api/people/2/?format=api",
        "name": "Laurent Pinchart",
        "email": "laurent.pinchart@ideasonboard.com"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/20806/mbox/",
    "series": [
        {
            "id": 4489,
            "url": "https://patchwork.libcamera.org/api/series/4489/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=4489",
            "date": "2024-08-05T17:48:06",
            "name": "[1/2] utils: checkstyle.py: Add author property to Commit class",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/4489/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/20806/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/20806/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<libcamera-devel-bounces@lists.libcamera.org>",
        "X-Original-To": "parsemail@patchwork.libcamera.org",
        "Delivered-To": "parsemail@patchwork.libcamera.org",
        "Received": [
            "from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 9AE3EC323E\n\tfor <parsemail@patchwork.libcamera.org>;\n\tMon,  5 Aug 2024 17:48:36 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id A581E63384;\n\tMon,  5 Aug 2024 19:48:34 +0200 (CEST)",
            "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id A8EDB6195D\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon,  5 Aug 2024 19:48:31 +0200 (CEST)",
            "from pendragon.ideasonboard.com (81-175-209-231.bb.dnainternet.fi\n\t[81.175.209.231])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 08D19581\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon,  5 Aug 2024 19:47:39 +0200 (CEST)"
        ],
        "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"F0X1vU6N\"; dkim-atps=neutral",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1722880060;\n\tbh=NkWhutWDdCpRFzx15RqJNGTOtBw9RoG9PwqCrkKTHU0=;\n\th=From:To:Subject:Date:In-Reply-To:References:From;\n\tb=F0X1vU6N8C8yDHCrfrCbIZ+dazzws+H5Unh7LBUiSWSHqpL/AGcVaeB1Rf2NztQCK\n\tZB1T9/ChkNJIYOWlZT/2gf/ctfBD5bsjHpXidAIOkqiUGD809ap5QoS/kTtTxqXkbf\n\tXq8JFwtJmRTjAXSPxbRcuJLhW2w18en1bEAu/lxY=",
        "From": "Laurent Pinchart <laurent.pinchart@ideasonboard.com>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Subject": "[PATCH 2/2] utils: checkstyle.py: Validate SoB trailer against\n\tauthor",
        "Date": "Mon,  5 Aug 2024 20:48:07 +0300",
        "Message-ID": "<20240805174807.10125-2-laurent.pinchart@ideasonboard.com>",
        "X-Mailer": "git-send-email 2.44.2",
        "In-Reply-To": "<20240805174807.10125-1-laurent.pinchart@ideasonboard.com>",
        "References": "<20240805174807.10125-1-laurent.pinchart@ideasonboard.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-BeenThere": "libcamera-devel@lists.libcamera.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "<libcamera-devel.lists.libcamera.org>",
        "List-Unsubscribe": "<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>",
        "List-Archive": "<https://lists.libcamera.org/pipermail/libcamera-devel/>",
        "List-Post": "<mailto:libcamera-devel@lists.libcamera.org>",
        "List-Help": "<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>",
        "List-Subscribe": "<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>",
        "Errors-To": "libcamera-devel-bounces@lists.libcamera.org",
        "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"
    },
    "content": "The TrailersChecker enforces the presence of a Signed-off-by tag in the\ntrailer, but doesn't verify that the tag matches the commit's author.\nAdd that verification, as required by the libcamera contribution\nprocess.\n\nSigned-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n---\n utils/checkstyle.py | 5 +++--\n 1 file changed, 3 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/utils/checkstyle.py b/utils/checkstyle.py\nindex 1eeb3809f7fe..722b59920062 100755\n--- a/utils/checkstyle.py\n+++ b/utils/checkstyle.py\n@@ -524,10 +524,11 @@ class TrailersChecker(CommitChecker):\n                 continue\n \n             if key == 'Signed-off-by':\n-                sob_found = True\n+                if value == commit.author:\n+                    sob_found = True\n \n         if not sob_found:\n-            issues.append(CommitIssue(f\"No valid 'Signed-off-by' trailer found, see Documentation/contributing.rst\"))\n+            issues.append(CommitIssue(f\"No 'Signed-off-by' trailer matching author '{commit.author}', see Documentation/contributing.rst\"))\n \n         return issues\n \n",
    "prefixes": [
        "2/2"
    ]
}