Show a patch.

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

{
    "id": 17467,
    "url": "https://patchwork.libcamera.org/api/patches/17467/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/17467/",
    "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": "<20220929143626.3100668-5-kieran.bingham@ideasonboard.com>",
    "date": "2022-09-29T14:36:26",
    "name": "[libcamera-devel,4/4] utils: Provide a release script",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "87b15e5b85fd2c12f622f4a152cdaa025e9063a1",
    "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/17467/mbox/",
    "series": [
        {
            "id": 3514,
            "url": "https://patchwork.libcamera.org/api/series/3514/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=3514",
            "date": "2022-09-29T14:36:22",
            "name": "Add release infrastructure",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/3514/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/17467/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/17467/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 4BA04C327F\n\tfor <parsemail@patchwork.libcamera.org>;\n\tThu, 29 Sep 2022 14:36:41 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id A731762397;\n\tThu, 29 Sep 2022 16:36:39 +0200 (CEST)",
            "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 9B1FF62391\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 29 Sep 2022 16:36:35 +0200 (CEST)",
            "from Monstersaurus.local\n\t(cpc89244-aztw30-2-0-cust3082.18-1.cable.virginm.net [86.31.172.11])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 34EF087A;\n\tThu, 29 Sep 2022 16:36:35 +0200 (CEST)"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1664462199;\n\tbh=HS6dLeNXvnCWRBvEyRdWJQOq814NQLrD1Jb47TDgnwc=;\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=x6x6T5HODzHKomu3zGqotZXHUMr/bjducUHTFURCfaprL+UkjbIKPaO0OLxMAHMIg\n\thZ9tLFpb/xGDuAxnreqCBi1yeHuL0RGmq+4qiO1AgpqwlOg7LEDFdqdUYS2scE5R1s\n\tUxOjVnoo/bVq30KosZvC3celLE4NRwnrq2juX0GyBklmXfevCeL4kbXalxqVa9M29E\n\tsnrT4577m1J2zHIpT2H5+JowlrOd01+3CYr9zmVfZ8lhs/XBRiYEiBNzxMwuenSX0y\n\tbftBx6GlPPUBdAJCLls1BQC7tgMLg5b9zj/vVGVVzuFOordGVnSQWV9DkE4h29Q3wq\n\tyCT10IM1N+qmQ==",
            "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1664462195;\n\tbh=HS6dLeNXvnCWRBvEyRdWJQOq814NQLrD1Jb47TDgnwc=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=jTXpMd+O9Q3gsE0ayXeoBDNFS0MrwstcTLZ/XRFpAzdwEE7XGM6NONmTM/4lKk3iM\n\tbKWe2f+hV6QWiVbMBFAUwI9sWFg42enVIJdUQYGsyd/44aOPxv9WiITttVbM4xX4nn\n\tMS8prjJXTBo0T1teNWE4YtVT7u80Zvk1B1/yrlM4="
        ],
        "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=ideasonboard.com\n\theader.i=@ideasonboard.com\n\theader.b=\"jTXpMd+O\"; dkim-atps=neutral",
        "To": "libcamera devel <libcamera-devel@lists.libcamera.org>",
        "Date": "Thu, 29 Sep 2022 15:36:26 +0100",
        "Message-Id": "<20220929143626.3100668-5-kieran.bingham@ideasonboard.com>",
        "X-Mailer": "git-send-email 2.34.1",
        "In-Reply-To": "<20220929143626.3100668-1-kieran.bingham@ideasonboard.com>",
        "References": "<20220929143626.3100668-1-kieran.bingham@ideasonboard.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[libcamera-devel] [PATCH 4/4] utils: Provide a release script",
        "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": "Support making releases of libcamera by introducing a helper script\nwhich will facilitate the increment of any release version, along with\ngenerating an associated tag.\n\nSigned-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>\n\n---\nThis can later be extended to support or enforce adding an overview\nchangelog to the commit, and annotated tag.\n\n utils/release.sh | 48 ++++++++++++++++++++++++++++++++++++++++++++++++\n 1 file changed, 48 insertions(+)\n create mode 100755 utils/release.sh",
    "diff": "diff --git a/utils/release.sh b/utils/release.sh\nnew file mode 100755\nindex 000000000000..c1c35dacab8e\n--- /dev/null\n+++ b/utils/release.sh\n@@ -0,0 +1,48 @@\n+#!/bin/sh\n+\n+# SPDX-License-Identifier: GPL-2.0-or-later\n+# Prepare a project release\n+\n+# Abort if we are not within the project root or the tree is not clean.\n+if [ ! -e utils/gen-version.sh -o ! -e .git ]; then\n+\techo \"This release script must be run from the root of libcamera git clone.\"\n+\texit 1\n+fi\n+\n+if ! git diff-index --quiet HEAD; then\n+\techo \"Tree must be clean to release.\"\n+\texit 1\n+fi\n+\n+# Identify current version components\n+version=$(./utils/gen-version.sh)\n+\n+# Decide if we are here to bump major, minor, or patch release.\n+case $1 in\n+\tmajor|minor|patch)\n+\t\tbump=$1;\n+\t\t;;\n+\t*)\n+\t\techo \"You must specify the version bump level:\"\n+\t\techo \" - major\"\n+\t\techo \" - minor\"\n+\t\techo \" - patch\"\n+\t\texit 1\n+\t\t;;\n+esac\n+\n+new_version=$(./utils/semver bump \"$bump\" \"$version\")\n+\n+echo \"Bumping $bump\"\n+echo \"  Existing version is: $version\"\n+echo \"  New version is : $new_version\"\n+\n+# Patch in the version to our meson.build\n+sed -i -E \"s/ version : '.*',/ version : '$new_version',/\" meson.build\n+\n+# Commit the update\n+git add meson.build\n+git commit meson.build -m \"libcamera v$new_version\"\n+\n+# Create a tag\n+git tag v$new_version -am \"libcamera v$new_version\"\n",
    "prefixes": [
        "libcamera-devel",
        "4/4"
    ]
}