get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2221906,
    "url": "http://patchwork.ozlabs.org/api/1.2/patches/2221906/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/20260410124756.3254639-1-gaiusmod2@gmail.com/",
    "project": {
        "id": 17,
        "url": "http://patchwork.ozlabs.org/api/1.2/projects/17/?format=api",
        "name": "GNU Compiler Collection",
        "link_name": "gcc",
        "list_id": "gcc-patches.gcc.gnu.org",
        "list_email": "gcc-patches@gcc.gnu.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260410124756.3254639-1-gaiusmod2@gmail.com>",
    "list_archive_url": null,
    "date": "2026-04-10T12:47:56",
    "name": "[pushed] PR modula2/124840 library module BinDict.Key returns value",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "0b72c5b123ee4b18fac304f0a30c7e01e8b69ad0",
    "submitter": {
        "id": 80961,
        "url": "http://patchwork.ozlabs.org/api/1.2/people/80961/?format=api",
        "name": "Gaius Mulley",
        "email": "gaiusmod2@gmail.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/20260410124756.3254639-1-gaiusmod2@gmail.com/mbox/",
    "series": [
        {
            "id": 499454,
            "url": "http://patchwork.ozlabs.org/api/1.2/series/499454/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=499454",
            "date": "2026-04-10T12:47:56",
            "name": "[pushed] PR modula2/124840 library module BinDict.Key returns value",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/499454/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2221906/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2221906/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "gcc-patches@gcc.gnu.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@legolas.ozlabs.org",
            "gcc-patches@gcc.gnu.org"
        ],
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=rnPfQPpR;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org\n (client-ip=2620:52:6:3111::32; helo=vm01.sourceware.org;\n envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org;\n receiver=patchwork.ozlabs.org)",
            "sourceware.org;\n\tdkim=pass (2048-bit key,\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=rnPfQPpR",
            "sourceware.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com",
            "sourceware.org; spf=pass smtp.mailfrom=gmail.com",
            "server2.sourceware.org;\n arc=none smtp.remote-ip=209.85.128.50"
        ],
        "Received": [
            "from vm01.sourceware.org (vm01.sourceware.org\n [IPv6:2620:52:6:3111::32])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fsc6t0qNrz1yGS\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 10 Apr 2026 22:48:38 +1000 (AEST)",
            "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 22E934BA2E1E\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 10 Apr 2026 12:48:36 +0000 (GMT)",
            "from mail-wm1-f50.google.com (mail-wm1-f50.google.com\n [209.85.128.50])\n by sourceware.org (Postfix) with ESMTPS id C57F94BA2E0F\n for <gcc-patches@gcc.gnu.org>; Fri, 10 Apr 2026 12:48:09 +0000 (GMT)",
            "by mail-wm1-f50.google.com with SMTP id\n 5b1f17b1804b1-4838c15e3cbso17546505e9.3\n for <gcc-patches@gcc.gnu.org>; Fri, 10 Apr 2026 05:48:09 -0700 (PDT)",
            "from gawain ([82.153.81.65]) by smtp.gmail.com with ESMTPSA id\n 5b1f17b1804b1-488d532ed4dsm68198295e9.4.2026.04.10.05.48.07\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Fri, 10 Apr 2026 05:48:08 -0700 (PDT)",
            "from gaius by gawain with local (Exim 4.98.2)\n (envelope-from <gaius@gawain>) id 1wBBHL-0000000Deh1-1E5K;\n Fri, 10 Apr 2026 13:48:07 +0100"
        ],
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 sourceware.org 22E934BA2E1E",
            "OpenDKIM Filter v2.11.0 sourceware.org C57F94BA2E0F"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org C57F94BA2E0F",
        "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org C57F94BA2E0F",
        "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1775825290; cv=none;\n b=iC++GtScD1U8+pTSzSQ/wYNi+0PyDF69GM+4q48hH4kVeklwScinoIe58c7KYioxW/+58oFzuUPuh4gtIJC4YHKkTPVGB78qhN0SKUuFHsvEuIGLERbH7AhoaFixqoaMg3Iabn2+3SV2ll/fZeISr1NtsPPZ+opTTsIDPampR0g=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1775825290; c=relaxed/simple;\n bh=enBtHWTnRSz7jhv1Njn3f33EpziHzbNpGWqrlFU8+Y4=;\n h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version;\n b=HVkPKNZraXutBVIkeRl+eAn9794ZZugyBXaJnVJPBtWcA0aWwwtzrb2eO7IJpS/SBXQ86DDsn3TDxmyi0fV5c78tfXWYZUXPlIY5eeH5cFtEGVzsfD6P5128xwFmyPx8iTs8k08h2rKpUvKQrhRZ7x7vxIR88LW1U2IgeSmFL0Y=",
        "ARC-Authentication-Results": "i=1; server2.sourceware.org",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1775825289; x=1776430089; darn=gcc.gnu.org;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:from:to:cc:subject:date:message-id:reply-to;\n bh=b7xhUTWmYFLukCZEFkoSEOmUgZNQzPI2gIjagMK980k=;\n b=rnPfQPpRUEJxiPjzifkd70wEEDyDtPWYbOaNeRB1ioSGj8Nyt+ODlO9p1Orm+f4C+2\n v+lV2XuxAeRS37BBs4GPK3pDZan0/2fhujnNoydTkEueSp+njadcQb4v8ypTWtwqrar6\n MaAhE4bOpFiNGdyvtKrlGF2Ho5zBIFl1a8A0zpXIuJ+CLUyiUbACnPKAUVA8gNepigQD\n r2Slp+Px7c4zlLH5CwTiA3T1HpnonHMJgOk21AMP3DOS+dt4vwaBYRtofOS9aLijUyuM\n q6IzEJE0GqQ2J/L/OVyn+w7t2vh9RjZra7wT11skt1v6J8SOIgcwh7X/BmLnXLTSn7dp\n xlpQ==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1775825289; x=1776430089;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=b7xhUTWmYFLukCZEFkoSEOmUgZNQzPI2gIjagMK980k=;\n b=E+WcxWfndqqxuIWmayjHgwKEWfLwwBv+cBwTfmhxFA+YCkcFOx+W2Db3g8wTqKk200\n CXMAEBejKOi267ZhAD7m4z/fZKCJfwbfcf+y4SQxyn2F2svF48zyFlGFcZ//cCU8AG5w\n tiwRiIm6GQNuLQ7YuosYTFfW4dvDtfR+cw152LlkqMP12V08NaOAX4ffIk6q4ZGOmge4\n N7XSoVcKSuX/jwK5q31lHqdKZMVfq3kKiSCUMA6TE5nDIIobIn3ptH2J4vyBSRgGJVbB\n J3YjxCX5MhfoCIo6sQRPVCPJeCfiv9mYRi8mHRdOVc6ayVRNYGSiqmvSSCpMfrh6HKqJ\n yLbg==",
        "X-Gm-Message-State": "AOJu0YxYLQTy5vaB4mMBOJhlYxS4AFESvRG9fR31ffBdZ+5LqI9cNKms\n qZhT8rmcVQ4TAX0XduId5grxxqbTEhyW2YlsoXgx0t2gtIbrHWdOgTRL/VTgdg==",
        "X-Gm-Gg": "AeBDieuCINoCv6tKT7DoHWQUpPAhc+5BqAPETVPlb+3NaXXR3Y+aoLtmPnsVEyjYWqw\n aUgGDjK2OqG7Jnq4+1L3pe2LGBdAJwEcWVqBA24nGWChyZ2hhGlRYgCtPnVpQyHq7LhOSua5VWA\n b0Y0meS9l58bKZI2wAkkVq3EM3hQbeooXAsTEniG/VMp5wxw2G2lqR5Pl01LZik5oCYH3FC1ZJn\n Twb8BpS+T4lgo51mIBv9hFU8YYMA7egaxJv+ETt3OZk2frj1xp8HiJHX7iNBwY6SYPYL+mhu7+q\n yFH+pI+ktDzgUZwpEF0didL4GEgUos4Eb78iO5PKp1TUtdOKzmwdt73Hb/BcJIQI95E+hjlaa3X\n FOWXZD90VHsqiiRsSsrhz5YkYPgUd1Itu6G1jdmKXskbRg3BcEFUiFJ2DR8ObCCpJYfd03Q3nNj\n qtMLy1EcqkicuXZA==",
        "X-Received": "by 2002:a05:600c:45c9:b0:488:bc6a:5285 with SMTP id\n 5b1f17b1804b1-488d689d277mr35527345e9.30.1775825288394;\n Fri, 10 Apr 2026 05:48:08 -0700 (PDT)",
        "From": "Gaius Mulley <gaiusmod2@gmail.com>",
        "To": "gcc-patches@gcc.gnu.org",
        "Cc": "Gaius Mulley <gaiusmod2@gmail.com>",
        "Subject": "[pushed]PR modula2/124840 library module BinDict.Key returns value",
        "Date": "Fri, 10 Apr 2026 13:47:56 +0100",
        "Message-ID": "<20260410124756.3254639-1-gaiusmod2@gmail.com>",
        "X-Mailer": "git-send-email 2.47.3",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-BeenThere": "gcc-patches@gcc.gnu.org",
        "X-Mailman-Version": "2.1.30",
        "Precedence": "list",
        "List-Id": "Gcc-patches mailing list <gcc-patches.gcc.gnu.org>",
        "List-Unsubscribe": "<https://gcc.gnu.org/mailman/options/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe>",
        "List-Archive": "<https://gcc.gnu.org/pipermail/gcc-patches/>",
        "List-Post": "<mailto:gcc-patches@gcc.gnu.org>",
        "List-Help": "<mailto:gcc-patches-request@gcc.gnu.org?subject=help>",
        "List-Subscribe": "<https://gcc.gnu.org/mailman/listinfo/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe>",
        "Errors-To": "gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org"
    },
    "content": "This obvious bug fix returns the correct field of the node.\nProcedure function BinDict.Key should return key.\n\ngcc/m2/ChangeLog:\n\n\tPR modula2/124840\n\t* gm2-libs/BinDict.mod (Key): Return field key.\n\nSigned-off-by: Gaius Mulley <gaiusmod2@gmail.com>\n---\n gcc/m2/gm2-libs/BinDict.mod | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)",
    "diff": "diff --git a/gcc/m2/gm2-libs/BinDict.mod b/gcc/m2/gm2-libs/BinDict.mod\nindex 8b245af1e5b..44cf825f47c 100644\n--- a/gcc/m2/gm2-libs/BinDict.mod\n+++ b/gcc/m2/gm2-libs/BinDict.mod\n@@ -205,7 +205,7 @@ END Value ;\n \n PROCEDURE Key (node: Node) : ADDRESS ;\n BEGIN\n-   RETURN node^.value\n+   RETURN node^.key\n END Key ;\n \n \n",
    "prefixes": [
        "pushed"
    ]
}