Show a patch.

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

{
    "id": 17481,
    "url": "https://patchwork.libcamera.org/api/1.1/patches/17481/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/17481/",
    "project": {
        "id": 1,
        "url": "https://patchwork.libcamera.org/api/1.1/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": "<20220930232826.82753-6-kieran.bingham@ideasonboard.com>",
    "date": "2022-09-30T23:28:26",
    "name": "[libcamera-devel,v2,5/5] utils: Provide a release script",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "568515e9445c0e611910a22664815cc013e3a252",
    "submitter": {
        "id": 4,
        "url": "https://patchwork.libcamera.org/api/1.1/people/4/?format=api",
        "name": "Kieran Bingham",
        "email": "kieran.bingham@ideasonboard.com"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/17481/mbox/",
    "series": [
        {
            "id": 3521,
            "url": "https://patchwork.libcamera.org/api/1.1/series/3521/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=3521",
            "date": "2022-09-30T23:28:21",
            "name": "Add release infrastructure",
            "version": 2,
            "mbox": "https://patchwork.libcamera.org/series/3521/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/17481/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/17481/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 B4130C3280\n\tfor <parsemail@patchwork.libcamera.org>;\n\tFri, 30 Sep 2022 23:28:40 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 7E3A76286A;\n\tSat,  1 Oct 2022 01:28: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 7E6976285B\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tSat,  1 Oct 2022 01:28:36 +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 14C0710BB;\n\tSat,  1 Oct 2022 01:28:36 +0200 (CEST)"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1664580519;\n\tbh=FEgtk/B2rLPZcZ3AJ+/Rz7Qo232MLJGHEyQxaasyDR8=;\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=Y52xQ1jVUxTHOF2J7Du3zvoUJgRXJjgWVfNUbyXhM2Y3Q187Luastlj7YED2ghClj\n\tPoQmftjex4ya+fxL5/lV0e+F88shderQ8huI9mujBebSFU1+pEJNeNZODyWqFz72K3\n\tHGtOIIu9qA3qBLjmIxqKhPiAV0e1oJdNgLIk7rlJq7v8TYPYLt+iKlw7bjRlhkjw3p\n\tZbBAbBt7yYEcJUnIPfAOAnsy4jKXNEgmM6W7bdYjhxhQyOdm5qtWZH3/BWqbHLEqzv\n\tAWSwP6wZju0l2pWWv9mL8bPnmtmfcfdJQB7iWM82PuhI5yW5VUtBt7LvwXeFUN3d0N\n\tgEYn6fJO0wKOg==",
            "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1664580516;\n\tbh=FEgtk/B2rLPZcZ3AJ+/Rz7Qo232MLJGHEyQxaasyDR8=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=cxd+4axOCRLFS3NuAxQkKX4+yzTBTHchq8jh3nSjImI2ZnLUnoz037Ky5+v9qAfEE\n\toFuSAPmTk+up210oFIXeaKatHjIsArrlOW3BXQjBNZWxbAp+Y4RARGpkiQptyRxibh\n\tUYqUaMqOOICxER5JF0ESBA/9eltcF1HsW7hQ9iF4="
        ],
        "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=ideasonboard.com\n\theader.i=@ideasonboard.com\n\theader.b=\"cxd+4axO\"; dkim-atps=neutral",
        "To": "libcamera devel <libcamera-devel@lists.libcamera.org>",
        "Date": "Sat,  1 Oct 2022 00:28:26 +0100",
        "Message-Id": "<20220930232826.82753-6-kieran.bingham@ideasonboard.com>",
        "X-Mailer": "git-send-email 2.34.1",
        "In-Reply-To": "<20220930232826.82753-1-kieran.bingham@ideasonboard.com>",
        "References": "<20220930232826.82753-1-kieran.bingham@ideasonboard.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[libcamera-devel] [PATCH v2 5/5] 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\nReviewed-by: Jacopo Mondi <jacopo@jmondi.org>\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 | 45 +++++++++++++++++++++++++++++++++++++++++++++\n 1 file changed, 45 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..13df8457eaa2\n--- /dev/null\n+++ b/utils/release.sh\n@@ -0,0 +1,45 @@\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 ] || [ ! -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: (major, minor, 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 -sm \"libcamera v$new_version\"\n+\n+# Create a tag\n+git tag \"v$new_version\" -asm \"libcamera v$new_version\"\n",
    "prefixes": [
        "libcamera-devel",
        "v2",
        "5/5"
    ]
}