{"action":"created","comment":{"url":"https://api.github.com/repos/hughsie/fwupd/pulls/comments/212633967","pull_request_review_id":149310757,"id":212633967,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMjYzMzk2Nw==","diff_hunk":"@@ -0,0 +1,411 @@\n+/*\n+ * Copyright (C) 2018 Richard Hughes <richard@hughsie.com>\n+ *\n+ * SPDX-License-Identifier: LGPL-2.1+\n+ */\n+\n+#include \"config.h\"\n+\n+#include <string.h>\n+\n+#include \"fu-chunk.h\"\n+#include \"fu-rts54xx-device.h\"\n+\n+struct _FuRts54xxDevice {\n+\tFuUsbDevice\t\t\t parent_instance;\n+\tgboolean\t\t\t fw_auth;\n+\tgboolean\t\t\t dual_bank;\n+};\n+\n+G_DEFINE_TYPE (FuRts54xxDevice, fu_rts54xx_device, FU_TYPE_USB_DEVICE)\n+\n+#define FU_RTS54XX_DEVICE_TRANSFER_BLOCK_SIZE\t\t0x80\n+#define FU_RTS54XX_DEVICE_SET_REPORT\t\t\t0x09\n+#define FU_RTS54XX_DEVICE_GET_REPORT\t\t\t0x01\n+#define FU_RTS54XX_DEVICE_TIMEOUT\t\t\t1000 /* ms */\n+\n+#define FU_RTS54XX_DEVICE_REPORT_LENGTH\t\t\t0xc0\n+#define FU_RTS54XX_DEVICE_REPORT_CMD_OFFSET\t\t0x00\n+#define FU_RTS54XX_DEVICE_REPORT_DATA_OFFSET\t\t0x40\n+\n+#define FU_RTS54XX_DEVICE_I2C_SPEED_250K\t\t0x00\n+#define FU_RTS54XX_DEVICE_I2C_SPEED_400K\t\t0x01\n+#define FU_RTS54XX_DEVICE_I2C_SPEED_800K\t\t0x02\n+\n+static void\n+fu_rts54xx_device_to_string (FuDevice *device, GString *str)\n+{\n+\tFuRts54xxDevice *self = FU_RTS54XX_DEVICE (device);\n+\tg_string_append (str, \"  FuRts54xxDevice:\\n\");\n+\tg_string_append_printf (str, \"    fw-auth: %i\\n\", self->fw_auth);\n+\tg_string_append_printf (str, \"    dual-bank: %i\\n\", self->dual_bank);\n+}\n+\n+static gboolean\n+fu_rts54xx_device_set_report (FuRts54xxDevice *self,\n+\t\t\t      const guint8 *buf, gsize buf_sz,\n+\t\t\t      GError **error)\n+{\n+\tGUsbDevice *usb_device = fu_usb_device_get_dev (FU_USB_DEVICE (self));\n+\tif (!g_usb_device_control_transfer (usb_device,\n+\t\t\t\t\t    G_USB_DEVICE_DIRECTION_HOST_TO_DEVICE,\n+\t\t\t\t\t    G_USB_DEVICE_REQUEST_TYPE_CLASS,\n+\t\t\t\t\t    G_USB_DEVICE_RECIPIENT_INTERFACE,\n+\t\t\t\t\t    FU_RTS54XX_DEVICE_SET_REPORT,\n+\t\t\t\t\t    0x0200, 0x0000,\n+\t\t\t\t\t    buf, buf_sz,\n+\t\t\t\t\t    NULL, /* actual length */\n+\t\t\t\t\t    FU_RTS54XX_DEVICE_TIMEOUT * 2,\n+\t\t\t\t\t    NULL, error)) {\n+\t\tg_prefix_error (error, \"failed to SetReport: \");\n+\t\treturn FALSE;\n+\t}\n+\treturn TRUE;\n+}\n+\n+static gboolean\n+fu_rts54xx_device_get_report (FuRts54xxDevice *self,\n+\t\t\t      guint8 *buf, gsize buf_sz,\n+\t\t\t      GError **error)\n+{\n+\tGUsbDevice *usb_device = fu_usb_device_get_dev (FU_USB_DEVICE (self));\n+\tif (!g_usb_device_control_transfer (usb_device,\n+\t\t\t\t\t    G_USB_DEVICE_DIRECTION_DEVICE_TO_HOST,\n+\t\t\t\t\t    G_USB_DEVICE_REQUEST_TYPE_CLASS,\n+\t\t\t\t\t    G_USB_DEVICE_RECIPIENT_INTERFACE,\n+\t\t\t\t\t    FU_RTS54XX_DEVICE_GET_REPORT,\n+\t\t\t\t\t    0x0100, 0x0000,\n+\t\t\t\t\t    buf, buf_sz,\n+\t\t\t\t\t    NULL, /* actual length */\n+\t\t\t\t\t    FU_RTS54XX_DEVICE_TIMEOUT,\n+\t\t\t\t\t    NULL, error)) {\n+\t\tg_prefix_error (error, \"failed to GetReport: \");\n+\t\treturn FALSE;\n+\t}\n+\treturn TRUE;\n+}\n+\n+static gboolean\n+fu_rts54xx_device_send_in (FuRts54xxDevice *self,\n+\t\t\t   const guint8 *cmdbuf, gsize cmdbuf_sz,\n+\t\t\t   const guint8 *databuf, gsize databuf_sz,\n+\t\t\t   guint8 *outbuf, gsize outbuf_sz,\n+\t\t\t   guint delay_secs, GError **error)\n+{\n+\tguint8 buf[FU_RTS54XX_DEVICE_REPORT_LENGTH] = { 0 };\n+\n+\tg_return_val_if_fail (cmdbuf != NULL, FALSE);\n+\tg_return_val_if_fail (cmdbuf_sz != 0, FALSE);\n+\n+\t/* create request */\n+\tmemcpy (buf + FU_RTS54XX_DEVICE_REPORT_CMD_OFFSET, cmdbuf, cmdbuf_sz);\n+\tif (databuf != NULL)\n+\t\tmemcpy (buf + FU_RTS54XX_DEVICE_REPORT_DATA_OFFSET, databuf, databuf_sz);\n+\n+\t/* set then get */\n+\tif (!fu_rts54xx_device_set_report (self, buf, sizeof(buf), error))\n+\t\treturn FALSE;\n+\tg_usleep (delay_secs * G_USEC_PER_SEC);\n+\tif (!fu_rts54xx_device_get_report (self, buf, sizeof(buf), error))\n+\t\treturn FALSE;\n+\n+\t/* copy out data */\n+\tif (outbuf != NULL)\n+\t\tmemcpy (outbuf, buf, outbuf_sz);\n+\treturn TRUE;\n+}\n+\n+static gboolean\n+fu_rts54xx_device_set_clock_mode (FuRts54xxDevice *self, gboolean val, GError **error)\n+{\n+\tconst guint8 cmd[] = { 0x40, 0x06, val, 0x00, 0x00, 0x00, 0x00, 0x00 };\n+\tguint8 buf[FU_RTS54XX_DEVICE_REPORT_LENGTH] = { 0 };\n+\tmemcpy (buf + FU_RTS54XX_DEVICE_REPORT_CMD_OFFSET, cmd, sizeof(cmd));\n+\tif (!fu_rts54xx_device_set_report (self, buf, sizeof(buf), error)) {\n+\t\tg_prefix_error (error, \"failed to set clock-mode=%i: \", val);\n+\t\treturn FALSE;\n+\t}\n+\treturn TRUE;\n+}\n+\n+static gboolean\n+fu_rts54xx_device_reset_to_flash (FuRts54xxDevice *self, GError **error)\n+{\n+\tconst guint8 cmd[] = { 0x40, 0xe9, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };\n+\tguint8 buf[FU_RTS54XX_DEVICE_REPORT_LENGTH] = { 0 };\n+\tmemcpy (buf + FU_RTS54XX_DEVICE_REPORT_CMD_OFFSET, cmd, sizeof(cmd));\n+\tif (!fu_rts54xx_device_set_report (self, buf, sizeof(buf), error)) {\n+\t\tg_prefix_error (error, \"failed to soft reset: \");\n+\t\treturn FALSE;\n+\t}\n+\treturn TRUE;\n+}\n+\n+static gboolean\n+fu_rts54xx_device_write_flash (FuRts54xxDevice *self,\n+\t\t\t\t   guint32 addr,\n+\t\t\t\t   const guint8 *data,\n+\t\t\t\t   guint8 data_sz,\n+\t\t\t\t   GError **error)\n+{\n+\tguint8 cmd[] = { 0x40, 0xc8, 0xff, 0xff, 0xff, 0xff, data_sz, 0x00 };\n+\tguint8 buf[FU_RTS54XX_DEVICE_REPORT_LENGTH] = { 0 };\n+\n+\tg_return_val_if_fail (data_sz <= 128, FALSE);\n+\tg_return_val_if_fail (data != NULL, FALSE);\n+\tg_return_val_if_fail (data_sz != 0, FALSE);\n+\n+\tfu_common_write_uint32 (cmd + 2, addr, G_BIG_ENDIAN);\n+\tmemcpy (buf + FU_RTS54XX_DEVICE_REPORT_CMD_OFFSET, cmd, sizeof(cmd));\n+\tmemcpy (buf + FU_RTS54XX_DEVICE_REPORT_DATA_OFFSET, data, data_sz);\n+\tif (!fu_rts54xx_device_set_report (self, buf, sizeof(buf), error)) {\n+\t\tg_prefix_error (error, \"failed to write flash @%08x: \", (guint) addr);\n+\t\treturn FALSE;\n+\t}\n+\treturn TRUE;\n+}\n+\n+static gboolean\n+fu_rts54xx_device_verify_update_fw (FuRts54xxDevice *self, GError **error)\n+{\n+\tconst guint8 cmd[] = { 0x40, 0xd9, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00};\n+\tguint8 outbuf[1];\n+\n+\t/* read command */\n+\tif (!fu_rts54xx_device_send_in (self,\n+\t\t\t\t\tcmd, sizeof(cmd),\n+\t\t\t\t\tNULL, 0, /* data */\n+\t\t\t\t\toutbuf, sizeof(outbuf),\n+\t\t\t\t\t4, error))\n+\t\treturn FALSE;\n+\n+\t/* check device status */\n+\tif (outbuf[0] != 0x00) { /* FIXME, what value? */\n+\t\tg_set_error_literal (error,\n+\t\t\t\t     FWUPD_ERROR,\n+\t\t\t\t     FWUPD_ERROR_WRITE,\n+\t\t\t\t     \"firmware flash failed\");\n+\t\treturn FALSE;\n+\t}\n+\n+\t/* success */\n+\treturn TRUE;\n+}\n+\n+static gboolean\n+fu_rts54xx_device_erase_spare_bank (FuRts54xxDevice *self, GError **error)\n+{\n+\tconst guint8 cmd[] = { 0x40, 0xe8, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00};\n+\tguint8 buf[FU_RTS54XX_DEVICE_REPORT_LENGTH] = { 0 };\n+\tmemcpy (buf + FU_RTS54XX_DEVICE_REPORT_CMD_OFFSET, cmd, sizeof(cmd));\n+\tif (!fu_rts54xx_device_set_report (self, buf, sizeof(buf), error)) {\n+\t\tg_prefix_error (error, \"failed to erase spare bank: \");\n+\t\treturn FALSE;\n+\t}\n+\treturn TRUE;\n+}\n+\n+static gboolean\n+fu_rts54xx_device_ensure_status (FuRts54xxDevice *self, GError **error)\n+{\n+\tconst guint8 cmd[] = { 0xc0, 0x09, 0x00, 0x00, 0x00, 0x00, 12, 0x00 };","path":"plugins/rts54xx/fu-rts54xx-device.c","position":211,"original_position":211,"commit_id":"c00516052e76c255e0db9cea549f52b498c7ee3b","original_commit_id":"c00516052e76c255e0db9cea549f52b498c7ee3b","user":{"login":"superm1","id":494526,"node_id":"MDQ6VXNlcjQ5NDUyNg==","avatar_url":"https://avatars0.githubusercontent.com/u/494526?v=4","gravatar_id":"","url":"https://api.github.com/users/superm1","html_url":"https://github.com/superm1","followers_url":"https://api.github.com/users/superm1/followers","following_url":"https://api.github.com/users/superm1/following{/other_user}","gists_url":"https://api.github.com/users/superm1/gists{/gist_id}","starred_url":"https://api.github.com/users/superm1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superm1/subscriptions","organizations_url":"https://api.github.com/users/superm1/orgs","repos_url":"https://api.github.com/users/superm1/repos","events_url":"https://api.github.com/users/superm1/events{/privacy}","received_events_url":"https://api.github.com/users/superm1/received_events","type":"User","site_admin":false},"body":"I think it would be good to document in this plugin the form of this structure.  (for example looking at this plugin first byte `0xc0` looks like it's only for reading and first byte `0x40` looks like it's used for commands or writing).","created_at":"2018-08-24T13:49:18Z","updated_at":"2018-08-24T13:49:18Z","html_url":"https://github.com/hughsie/fwupd/pull/685#discussion_r212633967","pull_request_url":"https://api.github.com/repos/hughsie/fwupd/pulls/685","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/hughsie/fwupd/pulls/comments/212633967"},"html":{"href":"https://github.com/hughsie/fwupd/pull/685#discussion_r212633967"},"pull_request":{"href":"https://api.github.com/repos/hughsie/fwupd/pulls/685"}},"in_reply_to_id":212585625},"pull_request":{"url":"https://api.github.com/repos/hughsie/fwupd/pulls/685","id":210670853,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEwNjcwODUz","html_url":"https://github.com/hughsie/fwupd/pull/685","diff_url":"https://github.com/hughsie/fwupd/pull/685.diff","patch_url":"https://github.com/hughsie/fwupd/pull/685.patch","issue_url":"https://api.github.com/repos/hughsie/fwupd/issues/685","number":685,"state":"open","locked":false,"title":"rts54xx: Add a plugin to update a Realtek USB hub","user":{"login":"hughsie","id":151380,"node_id":"MDQ6VXNlcjE1MTM4MA==","avatar_url":"https://avatars0.githubusercontent.com/u/151380?v=4","gravatar_id":"","url":"https://api.github.com/users/hughsie","html_url":"https://github.com/hughsie","followers_url":"https://api.github.com/users/hughsie/followers","following_url":"https://api.github.com/users/hughsie/following{/other_user}","gists_url":"https://api.github.com/users/hughsie/gists{/gist_id}","starred_url":"https://api.github.com/users/hughsie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hughsie/subscriptions","organizations_url":"https://api.github.com/users/hughsie/orgs","repos_url":"https://api.github.com/users/hughsie/repos","events_url":"https://api.github.com/users/hughsie/events{/privacy}","received_events_url":"https://api.github.com/users/hughsie/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-08-24T08:19:06Z","updated_at":"2018-08-24T13:49:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"07b46911901044de2e13cffcbfb7b247e18c87dd","assignee":{"login":"hughsie","id":151380,"node_id":"MDQ6VXNlcjE1MTM4MA==","avatar_url":"https://avatars0.githubusercontent.com/u/151380?v=4","gravatar_id":"","url":"https://api.github.com/users/hughsie","html_url":"https://github.com/hughsie","followers_url":"https://api.github.com/users/hughsie/followers","following_url":"https://api.github.com/users/hughsie/following{/other_user}","gists_url":"https://api.github.com/users/hughsie/gists{/gist_id}","starred_url":"https://api.github.com/users/hughsie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hughsie/subscriptions","organizations_url":"https://api.github.com/users/hughsie/orgs","repos_url":"https://api.github.com/users/hughsie/repos","events_url":"https://api.github.com/users/hughsie/events{/privacy}","received_events_url":"https://api.github.com/users/hughsie/received_events","type":"User","site_admin":false},"assignees":[{"login":"hughsie","id":151380,"node_id":"MDQ6VXNlcjE1MTM4MA==","avatar_url":"https://avatars0.githubusercontent.com/u/151380?v=4","gravatar_id":"","url":"https://api.github.com/users/hughsie","html_url":"https://github.com/hughsie","followers_url":"https://api.github.com/users/hughsie/followers","following_url":"https://api.github.com/users/hughsie/following{/other_user}","gists_url":"https://api.github.com/users/hughsie/gists{/gist_id}","starred_url":"https://api.github.com/users/hughsie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hughsie/subscriptions","organizations_url":"https://api.github.com/users/hughsie/orgs","repos_url":"https://api.github.com/users/hughsie/repos","events_url":"https://api.github.com/users/hughsie/events{/privacy}","received_events_url":"https://api.github.com/users/hughsie/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":181181879,"node_id":"MDU6TGFiZWwxODExODE4Nzk=","url":"https://api.github.com/repos/hughsie/fwupd/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"milestone":null,"commits_url":"https://api.github.com/repos/hughsie/fwupd/pulls/685/commits","review_comments_url":"https://api.github.com/repos/hughsie/fwupd/pulls/685/comments","review_comment_url":"https://api.github.com/repos/hughsie/fwupd/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hughsie/fwupd/issues/685/comments","statuses_url":"https://api.github.com/repos/hughsie/fwupd/statuses/c00516052e76c255e0db9cea549f52b498c7ee3b","head":{"label":"hughsie:wip/hughsie/realtek","ref":"wip/hughsie/realtek","sha":"c00516052e76c255e0db9cea549f52b498c7ee3b","user":{"login":"hughsie","id":151380,"node_id":"MDQ6VXNlcjE1MTM4MA==","avatar_url":"https://avatars0.githubusercontent.com/u/151380?v=4","gravatar_id":"","url":"https://api.github.com/users/hughsie","html_url":"https://github.com/hughsie","followers_url":"https://api.github.com/users/hughsie/followers","following_url":"https://api.github.com/users/hughsie/following{/other_user}","gists_url":"https://api.github.com/users/hughsie/gists{/gist_id}","starred_url":"https://api.github.com/users/hughsie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hughsie/subscriptions","organizations_url":"https://api.github.com/users/hughsie/orgs","repos_url":"https://api.github.com/users/hughsie/repos","events_url":"https://api.github.com/users/hughsie/events{/privacy}","received_events_url":"https://api.github.com/users/hughsie/received_events","type":"User","site_admin":false},"repo":{"id":31374735,"node_id":"MDEwOlJlcG9zaXRvcnkzMTM3NDczNQ==","name":"fwupd","full_name":"hughsie/fwupd","owner":{"login":"hughsie","id":151380,"node_id":"MDQ6VXNlcjE1MTM4MA==","avatar_url":"https://avatars0.githubusercontent.com/u/151380?v=4","gravatar_id":"","url":"https://api.github.com/users/hughsie","html_url":"https://github.com/hughsie","followers_url":"https://api.github.com/users/hughsie/followers","following_url":"https://api.github.com/users/hughsie/following{/other_user}","gists_url":"https://api.github.com/users/hughsie/gists{/gist_id}","starred_url":"https://api.github.com/users/hughsie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hughsie/subscriptions","organizations_url":"https://api.github.com/users/hughsie/orgs","repos_url":"https://api.github.com/users/hughsie/repos","events_url":"https://api.github.com/users/hughsie/events{/privacy}","received_events_url":"https://api.github.com/users/hughsie/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hughsie/fwupd","description":"A simple daemon to allow session software to update firmware","fork":false,"url":"https://api.github.com/repos/hughsie/fwupd","forks_url":"https://api.github.com/repos/hughsie/fwupd/forks","keys_url":"https://api.github.com/repos/hughsie/fwupd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hughsie/fwupd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hughsie/fwupd/teams","hooks_url":"https://api.github.com/repos/hughsie/fwupd/hooks","issue_events_url":"https://api.github.com/repos/hughsie/fwupd/issues/events{/number}","events_url":"https://api.github.com/repos/hughsie/fwupd/events","assignees_url":"https://api.github.com/repos/hughsie/fwupd/assignees{/user}","branches_url":"https://api.github.com/repos/hughsie/fwupd/branches{/branch}","tags_url":"https://api.github.com/repos/hughsie/fwupd/tags","blobs_url":"https://api.github.com/repos/hughsie/fwupd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hughsie/fwupd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hughsie/fwupd/git/refs{/sha}","trees_url":"https://api.github.com/repos/hughsie/fwupd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hughsie/fwupd/statuses/{sha}","languages_url":"https://api.github.com/repos/hughsie/fwupd/languages","stargazers_url":"https://api.github.com/repos/hughsie/fwupd/stargazers","contributors_url":"https://api.github.com/repos/hughsie/fwupd/contributors","subscribers_url":"https://api.github.com/repos/hughsie/fwupd/subscribers","subscription_url":"https://api.github.com/repos/hughsie/fwupd/subscription","commits_url":"https://api.github.com/repos/hughsie/fwupd/commits{/sha}","git_commits_url":"https://api.github.com/repos/hughsie/fwupd/git/commits{/sha}","comments_url":"https://api.github.com/repos/hughsie/fwupd/comments{/number}","issue_comment_url":"https://api.github.com/repos/hughsie/fwupd/issues/comments{/number}","contents_url":"https://api.github.com/repos/hughsie/fwupd/contents/{+path}","compare_url":"https://api.github.com/repos/hughsie/fwupd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hughsie/fwupd/merges","archive_url":"https://api.github.com/repos/hughsie/fwupd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hughsie/fwupd/downloads","issues_url":"https://api.github.com/repos/hughsie/fwupd/issues{/number}","pulls_url":"https://api.github.com/repos/hughsie/fwupd/pulls{/number}","milestones_url":"https://api.github.com/repos/hughsie/fwupd/milestones{/number}","notifications_url":"https://api.github.com/repos/hughsie/fwupd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hughsie/fwupd/labels{/name}","releases_url":"https://api.github.com/repos/hughsie/fwupd/releases{/id}","deployments_url":"https://api.github.com/repos/hughsie/fwupd/deployments","created_at":"2015-02-26T15:52:25Z","updated_at":"2018-08-24T09:40:55Z","pushed_at":"2018-08-24T08:27:21Z","git_url":"git://github.com/hughsie/fwupd.git","ssh_url":"git@github.com:hughsie/fwupd.git","clone_url":"https://github.com/hughsie/fwupd.git","svn_url":"https://github.com/hughsie/fwupd","homepage":"","size":8116,"stargazers_count":366,"watchers_count":366,"language":"C","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":73,"mirror_url":null,"archived":false,"open_issues_count":23,"license":{"key":"lgpl-2.1","name":"GNU Lesser General Public License v2.1","spdx_id":"LGPL-2.1","url":"https://api.github.com/licenses/lgpl-2.1","node_id":"MDc6TGljZW5zZTEx"},"forks":73,"open_issues":23,"watchers":366,"default_branch":"master"}},"base":{"label":"hughsie:master","ref":"master","sha":"6d794e2de6b2bc0eadc411c4917506f4b9e447ee","user":{"login":"hughsie","id":151380,"node_id":"MDQ6VXNlcjE1MTM4MA==","avatar_url":"https://avatars0.githubusercontent.com/u/151380?v=4","gravatar_id":"","url":"https://api.github.com/users/hughsie","html_url":"https://github.com/hughsie","followers_url":"https://api.github.com/users/hughsie/followers","following_url":"https://api.github.com/users/hughsie/following{/other_user}","gists_url":"https://api.github.com/users/hughsie/gists{/gist_id}","starred_url":"https://api.github.com/users/hughsie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hughsie/subscriptions","organizations_url":"https://api.github.com/users/hughsie/orgs","repos_url":"https://api.github.com/users/hughsie/repos","events_url":"https://api.github.com/users/hughsie/events{/privacy}","received_events_url":"https://api.github.com/users/hughsie/received_events","type":"User","site_admin":false},"repo":{"id":31374735,"node_id":"MDEwOlJlcG9zaXRvcnkzMTM3NDczNQ==","name":"fwupd","full_name":"hughsie/fwupd","owner":{"login":"hughsie","id":151380,"node_id":"MDQ6VXNlcjE1MTM4MA==","avatar_url":"https://avatars0.githubusercontent.com/u/151380?v=4","gravatar_id":"","url":"https://api.github.com/users/hughsie","html_url":"https://github.com/hughsie","followers_url":"https://api.github.com/users/hughsie/followers","following_url":"https://api.github.com/users/hughsie/following{/other_user}","gists_url":"https://api.github.com/users/hughsie/gists{/gist_id}","starred_url":"https://api.github.com/users/hughsie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hughsie/subscriptions","organizations_url":"https://api.github.com/users/hughsie/orgs","repos_url":"https://api.github.com/users/hughsie/repos","events_url":"https://api.github.com/users/hughsie/events{/privacy}","received_events_url":"https://api.github.com/users/hughsie/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hughsie/fwupd","description":"A simple daemon to allow session software to update firmware","fork":false,"url":"https://api.github.com/repos/hughsie/fwupd","forks_url":"https://api.github.com/repos/hughsie/fwupd/forks","keys_url":"https://api.github.com/repos/hughsie/fwupd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hughsie/fwupd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hughsie/fwupd/teams","hooks_url":"https://api.github.com/repos/hughsie/fwupd/hooks","issue_events_url":"https://api.github.com/repos/hughsie/fwupd/issues/events{/number}","events_url":"https://api.github.com/repos/hughsie/fwupd/events","assignees_url":"https://api.github.com/repos/hughsie/fwupd/assignees{/user}","branches_url":"https://api.github.com/repos/hughsie/fwupd/branches{/branch}","tags_url":"https://api.github.com/repos/hughsie/fwupd/tags","blobs_url":"https://api.github.com/repos/hughsie/fwupd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hughsie/fwupd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hughsie/fwupd/git/refs{/sha}","trees_url":"https://api.github.com/repos/hughsie/fwupd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hughsie/fwupd/statuses/{sha}","languages_url":"https://api.github.com/repos/hughsie/fwupd/languages","stargazers_url":"https://api.github.com/repos/hughsie/fwupd/stargazers","contributors_url":"https://api.github.com/repos/hughsie/fwupd/contributors","subscribers_url":"https://api.github.com/repos/hughsie/fwupd/subscribers","subscription_url":"https://api.github.com/repos/hughsie/fwupd/subscription","commits_url":"https://api.github.com/repos/hughsie/fwupd/commits{/sha}","git_commits_url":"https://api.github.com/repos/hughsie/fwupd/git/commits{/sha}","comments_url":"https://api.github.com/repos/hughsie/fwupd/comments{/number}","issue_comment_url":"https://api.github.com/repos/hughsie/fwupd/issues/comments{/number}","contents_url":"https://api.github.com/repos/hughsie/fwupd/contents/{+path}","compare_url":"https://api.github.com/repos/hughsie/fwupd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hughsie/fwupd/merges","archive_url":"https://api.github.com/repos/hughsie/fwupd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hughsie/fwupd/downloads","issues_url":"https://api.github.com/repos/hughsie/fwupd/issues{/number}","pulls_url":"https://api.github.com/repos/hughsie/fwupd/pulls{/number}","milestones_url":"https://api.github.com/repos/hughsie/fwupd/milestones{/number}","notifications_url":"https://api.github.com/repos/hughsie/fwupd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hughsie/fwupd/labels{/name}","releases_url":"https://api.github.com/repos/hughsie/fwupd/releases{/id}","deployments_url":"https://api.github.com/repos/hughsie/fwupd/deployments","created_at":"2015-02-26T15:52:25Z","updated_at":"2018-08-24T09:40:55Z","pushed_at":"2018-08-24T08:27:21Z","git_url":"git://github.com/hughsie/fwupd.git","ssh_url":"git@github.com:hughsie/fwupd.git","clone_url":"https://github.com/hughsie/fwupd.git","svn_url":"https://github.com/hughsie/fwupd","homepage":"","size":8116,"stargazers_count":366,"watchers_count":366,"language":"C","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":73,"mirror_url":null,"archived":false,"open_issues_count":23,"license":{"key":"lgpl-2.1","name":"GNU Lesser General Public License v2.1","spdx_id":"LGPL-2.1","url":"https://api.github.com/licenses/lgpl-2.1","node_id":"MDc6TGljZW5zZTEx"},"forks":73,"open_issues":23,"watchers":366,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hughsie/fwupd/pulls/685"},"html":{"href":"https://github.com/hughsie/fwupd/pull/685"},"issue":{"href":"https://api.github.com/repos/hughsie/fwupd/issues/685"},"comments":{"href":"https://api.github.com/repos/hughsie/fwupd/issues/685/comments"},"review_comments":{"href":"https://api.github.com/repos/hughsie/fwupd/pulls/685/comments"},"review_comment":{"href":"https://api.github.com/repos/hughsie/fwupd/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hughsie/fwupd/pulls/685/commits"},"statuses":{"href":"https://api.github.com/repos/hughsie/fwupd/statuses/c00516052e76c255e0db9cea549f52b498c7ee3b"}},"author_association":"OWNER"}}
{"actor":{"display_login":"superm1"}}