get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 17173,
    "url": "http://patches.dpdk.org/api/patches/17173/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1479768194-6255-1-git-send-email-thomas.monjalon@6wind.com/",
    "project": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/projects/1/?format=api",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<1479768194-6255-1-git-send-email-thomas.monjalon@6wind.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1479768194-6255-1-git-send-email-thomas.monjalon@6wind.com",
    "date": "2016-11-21T22:43:14",
    "name": "[dpdk-dev] scripts: check cc stable mailing list in commit",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "df914c2f6f42bf8c26412efab2f61dcae8f75d49",
    "submitter": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/people/1/?format=api",
        "name": "Thomas Monjalon",
        "email": "thomas.monjalon@6wind.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1479768194-6255-1-git-send-email-thomas.monjalon@6wind.com/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/17173/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/17173/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 431A92BD1;\n\tMon, 21 Nov 2016 23:43:39 +0100 (CET)",
            "from mail-wm0-f47.google.com (mail-wm0-f47.google.com\n\t[74.125.82.47]) by dpdk.org (Postfix) with ESMTP id 9F38A2BC8\n\tfor <dev@dpdk.org>; Mon, 21 Nov 2016 23:43:38 +0100 (CET)",
            "by mail-wm0-f47.google.com with SMTP id t79so7176212wmt.0\n\tfor <dev@dpdk.org>; Mon, 21 Nov 2016 14:43:38 -0800 (PST)",
            "from XPS13.localdomain (guy78-1-82-235-116-147.fbx.proxad.net.\n\t[82.235.116.147]) by smtp.gmail.com with ESMTPSA id\n\tg73sm21951318wme.16.2016.11.21.14.43.37 for <dev@dpdk.org>\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tMon, 21 Nov 2016 14:43:37 -0800 (PST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=6wind-com.20150623.gappssmtp.com; s=20150623;\n\th=from:to:subject:date:message-id;\n\tbh=ySutfgo4UcsgVwYcGhJP5Dvk9pqqZh52+8CoREduUWQ=;\n\tb=Qz0rUi8ZqSLOHx3qYR3yqkNwtnlwXJEcMbSDJdsN0oRf71g3Xz8EDUSvhmHDpWEAtG\n\t8j5aVJY+AGmKFIj+OWgndNpSJLMyos3Uu/UgS44uS5gmHYvsozj9Ko/20rAW+A+Uh6D9\n\t+SQR0G30pT/h66KSNIunwQymhLHgn1KDXJbZGUjrqR5Sone3WJKGOxZIPkLuYm/pZhT0\n\t8H38epfm5jfh9kGtbixDeqAIAwYbWdwgHWhIDWC/BMBhAAhLsUTIgOVEAwogqUH6jxb+\n\to7FDJyzskJsP4p3k+CPraUqW+MdxlOIRCC4uzd8Ow7C36R2RhzmxJ4z7gsiHK3sDSC6y\n\tD3rA==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20130820;\n\th=x-gm-message-state:from:to:subject:date:message-id;\n\tbh=ySutfgo4UcsgVwYcGhJP5Dvk9pqqZh52+8CoREduUWQ=;\n\tb=l4TgDBGPYlIuMpX25mINNRMWzs9vj5eaQNAo3hY+cb+SwsRt9C/brM7uqb9EnM31Sc\n\to9u43LMxFtM0pnDz14kqeeoaASep8weK6EHsUpsQxSOSDn9uKs2jqv3NmBlREKdK6+Ly\n\tuJZqJ48CyG95AFj/yt7bNxEV2jVaIr7iBRhhHMDQo1XZUOExxx8ObASiwKxh8qpfV8CW\n\tVD9JwRMZyhP/D4gH5emN0i9K0ssgvRbF00D33g1TkquVVDnGQZU1YHbzFJE1Lil70gJD\n\tI4SQEJNVMeJfn7Ze7SaZAijZwBY1r7MGjFpZYGbldSMq2Ftkl8neLxh1LzZDgbPz9+Vl\n\tusHQ==",
        "X-Gm-Message-State": "AKaTC01Oq2WwJQl5r5bld68N+WBdBML7ilARZIr3fCSGBPt/eP2yNd1VJZ5LZPK4o8F6OVRl",
        "X-Received": "by 10.28.111.138 with SMTP id c10mr16440402wmi.135.1479768218069;\n\tMon, 21 Nov 2016 14:43:38 -0800 (PST)",
        "From": "Thomas Monjalon <thomas.monjalon@6wind.com>",
        "To": "dev@dpdk.org",
        "Date": "Mon, 21 Nov 2016 23:43:14 +0100",
        "Message-Id": "<1479768194-6255-1-git-send-email-thomas.monjalon@6wind.com>",
        "X-Mailer": "git-send-email 2.7.0",
        "Subject": "[dpdk-dev] [PATCH] scripts: check cc stable mailing list in commit",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "patches and discussions about DPDK <dev.dpdk.org>",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Add a check for commits fixing a released bug.\nSuch commits are found thanks to scripts/git-log-fixes.sh.\nThey must be sent CC: stable@dpdk.org.\nIn order to avoid forgetting CC, this mail header can be written\nin the git commit message.\n\nSigned-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>\n---\n scripts/check-git-log.sh | 9 +++++++++\n 1 file changed, 9 insertions(+)",
    "diff": "diff --git a/scripts/check-git-log.sh b/scripts/check-git-log.sh\nindex 5f8a9fc..4f98a7a 100755\n--- a/scripts/check-git-log.sh\n+++ b/scripts/check-git-log.sh\n@@ -47,12 +47,14 @@ if [ \"$1\" = '-h' -o \"$1\" = '--help' ] ; then\n \texit\n fi\n \n+selfdir=$(dirname $(readlink -e $0))\n range=${1:-origin/master..}\n \n commits=$(git log --format='%h' --reverse $range)\n headlines=$(git log --format='%s' --reverse $range)\n bodylines=$(git log --format='%b' --reverse $range)\n fixes=$(git log --format='%h %s' --reverse $range | grep -i ': *fix' | cut -d' ' -f1)\n+stablefixes=$($selfdir/git-log-fixes.sh $range | sed '/(N\\/A)$/d'  | cut -d' ' -f2)\n tags=$(git log --format='%b' --reverse $range | grep -i -e 'by *:' -e 'fix.*:')\n bytag='\\(Reported\\|Suggested\\|Signed-off\\|Acked\\|Reviewed\\|Tested\\)-by:'\n \n@@ -191,3 +193,10 @@ bad=$(for fixtag in $fixtags ; do\n \tprintf \"$fixtag\" | grep -v \"^$good$\"\n done | sed 's,^,\\t,')\n [ -z \"$bad\" ] || printf \"Wrong 'Fixes' reference:\\n$bad\\n\"\n+\n+# check CC:stable for fixes\n+bad=$(for fix in $stablefixes ; do\n+\tgit log --format='%b' -1 $fix | grep -qi '^CC: *stable@dpdk.org' ||\n+\t\tgit log --format='\\t%s' -1 $fix\n+done)\n+[ -z \"$bad\" ] || printf \"Should CC: stable@dpdk.org\\n$bad\\n\"\n",
    "prefixes": [
        "dpdk-dev"
    ]
}