get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 133502,
    "url": "https://patches.dpdk.org/api/patches/133502/?format=api",
    "web_url": "https://patches.dpdk.org/project/ci/patch/20231027130609.3035396-1-aconole@redhat.com/",
    "project": {
        "id": 5,
        "url": "https://patches.dpdk.org/api/projects/5/?format=api",
        "name": "CI",
        "link_name": "ci",
        "list_id": "ci.dpdk.org",
        "list_email": "ci@dpdk.org",
        "web_url": "",
        "scm_url": "git://dpdk.org/tools/dpdk-ci",
        "webscm_url": "https://git.dpdk.org/tools/dpdk-ci/",
        "list_archive_url": "https://inbox.dpdk.org/ci",
        "list_archive_url_format": "https://inbox.dpdk.org/ci/{}",
        "commit_url_format": ""
    },
    "msgid": "<20231027130609.3035396-1-aconole@redhat.com>",
    "list_archive_url": "https://inbox.dpdk.org/ci/20231027130609.3035396-1-aconole@redhat.com",
    "date": "2023-10-27T13:06:08",
    "name": "[RFC,1/2] pw_mon: improve command line options",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "10c03aafe5717800db6b69544b7423fbd2c9cda9",
    "submitter": {
        "id": 332,
        "url": "https://patches.dpdk.org/api/people/332/?format=api",
        "name": "Aaron Conole",
        "email": "aconole@redhat.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/ci/patch/20231027130609.3035396-1-aconole@redhat.com/mbox/",
    "series": [
        {
            "id": 30027,
            "url": "https://patches.dpdk.org/api/series/30027/?format=api",
            "web_url": "https://patches.dpdk.org/project/ci/list/?series=30027",
            "date": "2023-10-27T13:06:09",
            "name": "[RFC,1/2] pw_mon: improve command line options",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/30027/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/133502/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/133502/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<ci-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 7699A43215;\n\tFri, 27 Oct 2023 15:06:14 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 7028E42DA6;\n\tFri, 27 Oct 2023 15:06:14 +0200 (CEST)",
            "from us-smtp-delivery-124.mimecast.com\n (us-smtp-delivery-124.mimecast.com [170.10.129.124])\n by mails.dpdk.org (Postfix) with ESMTP id B04AA42DA6\n for <ci@dpdk.org>; Fri, 27 Oct 2023 15:06:12 +0200 (CEST)",
            "from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com\n [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS\n (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id\n us-mta-157-o8cVCjOZNliSydVgj1uVyQ-1; Fri, 27 Oct 2023 09:06:10 -0400",
            "from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com\n [10.11.54.9])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 6D047862DCD\n for <ci@dpdk.org>; Fri, 27 Oct 2023 13:06:10 +0000 (UTC)",
            "from RHTPC1VM0NT.lan (unknown [10.22.9.87])\n by smtp.corp.redhat.com (Postfix) with ESMTP id 32A80492BE0;\n Fri, 27 Oct 2023 13:06:10 +0000 (UTC)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1698411972;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:cc:mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding;\n bh=ZD9qcTSFNUT7cTv4j2bpKcpVU+lL66GoVUpXE+RdZxc=;\n b=By1XoTUk/2YcIyvND1tDQtzyIzFmBzLAWSF4ILmVL386lAduUpLr7OY/EJdECU9Lmq1Xy3\n Brx28/T+gz9X1QlPxpQX4TwZmUISSpfgtgHdXEPvZWkDXh6gwcM1win4H6xfId1R0ntrKx\n b20f6Rxw2vaBYIZWqaUaqmGcPNMD/Lw=",
        "X-MC-Unique": "o8cVCjOZNliSydVgj1uVyQ-1",
        "From": "Aaron Conole <aconole@redhat.com>",
        "To": "Michael Santana <msantana@redhat.com>",
        "Cc": "Dumitru Ceara <dceara@redhat.com>, David Marchand <dmarchan@redhat.com>,\n Ilya Maximets <imaximet@redhat.com>, ci@dpdk.org",
        "Subject": "[RFC 1/2] pw_mon: improve command line options",
        "Date": "Fri, 27 Oct 2023 09:06:08 -0400",
        "Message-ID": "<20231027130609.3035396-1-aconole@redhat.com>",
        "MIME-Version": "1.0",
        "X-Scanned-By": "MIMEDefang 3.4.1 on 10.11.54.9",
        "X-Mimecast-Spam-Score": "0",
        "X-Mimecast-Originator": "redhat.com",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain; charset=\"US-ASCII\"; x-default=true",
        "X-BeenThere": "ci@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "DPDK CI discussions <ci.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/ci>,\n <mailto:ci-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/ci/>",
        "List-Post": "<mailto:ci@dpdk.org>",
        "List-Help": "<mailto:ci-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/ci>,\n <mailto:ci-request@dpdk.org?subject=subscribe>",
        "Errors-To": "ci-bounces@dpdk.org"
    },
    "content": "In the future, we'll use this to add support for passing opts into some parts\nof pw_mon.\n\nSigned-off-by: Aaron Conole <aconole@redhat.com>\n---\n pw_mon | 53 +++++++++++++++++++++++++++++++++++++++--------------\n 1 file changed, 39 insertions(+), 14 deletions(-)",
    "diff": "diff --git a/pw_mon b/pw_mon\nindex 28feb8b..01bdd25 100755\n--- a/pw_mon\n+++ b/pw_mon\n@@ -21,34 +21,59 @@\n \n [ -f \"${HOME}/.pwmon-rc\" ] && source \"${HOME}/.pwmon-rc\"\n \n-if [ \"$1\" != \"\" ]; then\n-    pw_project=\"$1\"\n-    shift\n+if [ \"$1\" != \"\"  ]; then\n+    if ! echo \"$1\" | grep -E ^-- >/dev/null 2>&1; then\n+        pw_project=\"$1\"\n+        shift\n+    fi\n fi\n \n if [ \"$1\" != \"\" ]; then\n-    pw_instance=\"$1\"\n-    shift\n-fi\n-\n-if [ \"X$pw_instance\" == \"X\" -o \"X$pw_project\" == \"X\" ]; then\n-   echo \"ERROR: Patchwork instance and project are unset.\"\n-   echo \"Please setup ${HOME}/.pwmon-rc and set pw_project \"\n-   echo \"(or pass it as an argument).\"\n-   echo \"Also either setup pw_instance or pass it as an argument.\"\n-   exit 1\n+    if ! echo \"$1\" | grep -E ^-- >/dev/null 2>&1; then\n+        pw_instance=\"$1\"\n+        shift\n+    fi\n fi\n \n userpw=\"\"\n \n if [ \"$1\" != \"\" ]; then\n-    pw_credential=\"$1\"\n+    if ! echo \"$1\" | grep -E ^-- >/dev/null 2>&1; then\n+        pw_credential=\"$1\"\n+        shift\n+    fi\n fi\n \n+\n+while [ \"$1\" != \"\" ]; do\n+    if echo \"$1\" | grep -E ^--pw-project= >/dev/null 2>&1; then\n+        pw_project=$(echo \"$1\" | sed s/--pw-project=//)\n+        shift\n+    elif echo \"$1\" | grep -E ^--pw-instance= >/dev/null 2>&1; then\n+        pw_instance=$(echo \"$1\" | sed s/--pw-instance=//)\n+        shift\n+    elif echo \"$1\" | grep -E ^--help >/dev/null 2>&1; then\n+        echo \"pw_mon script\"\n+        echo \"$0 [proj|--pw-project=<proj>] [instance|--pw-instance=<inst url] opts..\"\n+        echo \"Options:\"\n+        echo \"    --add-filter-recheck=filter\tAdds a filter to flag that a recheck needs to be done\"\n+        echo \"\"\n+        exit 0\n+    fi\n+done\n+\n if [ \"X$pw_credential\" != \"X\" ]; then\n    userpw=\"-u \\\"${pw_credential}\\\"\"\n fi\n \n+if [ \"X$pw_instance\" == \"X\" -o \"X$pw_project\" == \"X\" ]; then\n+   echo \"ERROR: Patchwork instance and project are unset.\"\n+   echo \"Please setup ${HOME}/.pwmon-rc and set pw_project \"\n+   echo \"(or pass it as an argument).\"\n+   echo \"Also either setup pw_instance or pass it as an argument.\"\n+   exit 1\n+fi\n+\n source $(dirname $0)/series_db_lib.sh\n \n function emit_series() {\n",
    "prefixes": [
        "RFC",
        "1/2"
    ]
}