Show a patch.

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

{
    "id": 18807,
    "url": "https://patchwork.libcamera.org/api/patches/18807/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/18807/",
    "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": "<20230711133915.650485-3-kieran.bingham@ideasonboard.com>",
    "date": "2023-07-11T13:39:13",
    "name": "[libcamera-devel,2/4] utils: checkstyle.py: Initialise staged trailers",
    "commit_ref": "37106ba02a699eb485edcc2e5058dcaf25ee92a0",
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "22752a77602a899336ee8f25e3f2445ee1d9f3ec",
    "submitter": {
        "id": 4,
        "url": "https://patchwork.libcamera.org/api/people/4/?format=api",
        "name": "Kieran Bingham",
        "email": "kieran.bingham@ideasonboard.com"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/18807/mbox/",
    "series": [
        {
            "id": 3966,
            "url": "https://patchwork.libcamera.org/api/series/3966/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=3966",
            "date": "2023-07-11T13:39:11",
            "name": "utils: checkstyle.py: Fix Trailer handling",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/3966/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/18807/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/18807/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 661C9BDC71\n\tfor <parsemail@patchwork.libcamera.org>;\n\tTue, 11 Jul 2023 13:39:25 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 5BDD2628C4;\n\tTue, 11 Jul 2023 15:39:23 +0200 (CEST)",
            "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 8CC09628BD\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 11 Jul 2023 15:39:20 +0200 (CEST)",
            "from Monstersaurus.local\n\t(aztw-30-b2-v4wan-166917-cust845.vm26.cable.virginm.net\n\t[82.37.23.78])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id B1DCBDC9;\n\tTue, 11 Jul 2023 15:38:31 +0200 (CEST)"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1689082763;\n\tbh=dwGTKB4Xdctx/L/3EVlsU8sd8d0ACNj3Q86W2ydualk=;\n\th=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe:\n\tList-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:\n\tFrom;\n\tb=kRuEbfGguisfLmfhXvYjUFeY7EtYobVwtvkx3N0hkONSBsVW9FNBnVitciWlYXoTA\n\tuTEIMAWD7vEUZ/V9Hx8a+Yqr7DodLtpRTlbTGfp+eLtHhhLNyaTRKv8G2TNAZ4uCFz\n\txwzru7KyhnvnzvXL91LAG44OgIeS+/jSJT33CDH9Kl6pCot8uJ+0R5af+NUenAngQ2\n\tJDPIJqOVx/NZKpwPxw1XlhPgx8VcV7uPzd3PgJXBiOa7x3dg1+d5EDWlF9DDAj7PyN\n\tKdkIbpQyRtTNc5Z9VWe5OuTP7J90jL9iSfcDXNGt7P3ACTZrTpRUvqI/Bh9W5HCcVJ\n\tPwAwWFqfxNQoQ==",
            "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1689082711;\n\tbh=dwGTKB4Xdctx/L/3EVlsU8sd8d0ACNj3Q86W2ydualk=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=BYt5s24ObadzwqeTt6jyH9bwyY6aDNFqUk9MEV6/RF+GM7kVqFC8poGoc6wccoiQk\n\t3K49H+Wb8LnO3fVe9wLCIoP+shz5z8Yb3m5Mgx5tLZfGMhurAeEv6Evm06cbnQZEfi\n\tJJX1f6oy7/A76aseNsjKkou3mR3abMQmdEgqgINU="
        ],
        "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=ideasonboard.com\n\theader.i=@ideasonboard.com\n\theader.b=\"BYt5s24O\"; dkim-atps=neutral",
        "To": "libcamera devel <libcamera-devel@lists.libcamera.org>",
        "Date": "Tue, 11 Jul 2023 14:39:13 +0100",
        "Message-Id": "<20230711133915.650485-3-kieran.bingham@ideasonboard.com>",
        "X-Mailer": "git-send-email 2.34.1",
        "In-Reply-To": "<20230711133915.650485-1-kieran.bingham@ideasonboard.com>",
        "References": "<20230711133915.650485-1-kieran.bingham@ideasonboard.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[libcamera-devel] [PATCH 2/4] utils: checkstyle.py: Initialise\n\tstaged trailers",
        "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>",
        "From": "Kieran Bingham via libcamera-devel\n\t<libcamera-devel@lists.libcamera.org>",
        "Reply-To": "Kieran Bingham <kieran.bingham@ideasonboard.com>",
        "Errors-To": "libcamera-devel-bounces@lists.libcamera.org",
        "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"
    },
    "content": "There are no possible Trailers for staged changes as the commit message\nhas not yet been written.\n\nInitialise the empty trailers when the commit object is initialised.\n\nSigned-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>\n---\n utils/checkstyle.py | 3 +++\n 1 file changed, 3 insertions(+)",
    "diff": "diff --git a/utils/checkstyle.py b/utils/checkstyle.py\nindex 5a1268064d31..2ba3165b8ecd 100755\n--- a/utils/checkstyle.py\n+++ b/utils/checkstyle.py\n@@ -253,6 +253,9 @@ class StagedChanges(Commit):\n     def __init__(self):\n         Commit.__init__(self, '')\n \n+        # There are no trailers to parse on a Staged Change.\n+        self._trailers = []\n+\n     def _parse(self):\n         ret = subprocess.run(['git', 'diff', '--staged', '--name-status'],\n                              stdout=subprocess.PIPE).stdout.decode('utf-8')\n",
    "prefixes": [
        "libcamera-devel",
        "2/4"
    ]
}