{"action":"reopened","number":162,"pull_request":{"url":"https://api.github.com/repos/python-openxml/python-docx/pulls/162","id":31383045,"html_url":"https://github.com/python-openxml/python-docx/pull/162","diff_url":"https://github.com/python-openxml/python-docx/pull/162.diff","patch_url":"https://github.com/python-openxml/python-docx/pull/162.patch","issue_url":"https://api.github.com/repos/python-openxml/python-docx/issues/162","number":162,"state":"open","locked":false,"title":"add feature: Paragraph.add_hyperlink() #74","user":{"login":"tanyunshi","id":3141946,"avatar_url":"https://avatars.githubusercontent.com/u/3141946?v=3","gravatar_id":"","url":"https://api.github.com/users/tanyunshi","html_url":"https://github.com/tanyunshi","followers_url":"https://api.github.com/users/tanyunshi/followers","following_url":"https://api.github.com/users/tanyunshi/following{/other_user}","gists_url":"https://api.github.com/users/tanyunshi/gists{/gist_id}","starred_url":"https://api.github.com/users/tanyunshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tanyunshi/subscriptions","organizations_url":"https://api.github.com/users/tanyunshi/orgs","repos_url":"https://api.github.com/users/tanyunshi/repos","events_url":"https://api.github.com/users/tanyunshi/events{/privacy}","received_events_url":"https://api.github.com/users/tanyunshi/received_events","type":"User","site_admin":false},"body":"I continued robertdodd's work to implement the p.add_hyperlink() method:\r\n- to add links to paragraphs\r\n- to add multiple texts into a link\r\n- style the link text(run)\r\n\r\nDocumentations are also available for the dev part.\r\n\r\n> from docx import Document\r\n> document = Document()\r\n> p = document.add_paragraph('some text')\r\n> link = p.add_hyperlink('google','http://www.google.com')\r\ngoogle\r\n> link.add_run('run1')\r\n  < docx.text.run.Run object at 0x7fec7cabe908>\r\n> link.add_run('formatted').italic = True\r\n3\r\n","created_at":"2015-03-17T22:08:20Z","updated_at":"2016-03-09T20:44:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d6d8a85ebbb8167e70b480f71ab521ceea405a9e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/python-openxml/python-docx/pulls/162/commits","review_comments_url":"https://api.github.com/repos/python-openxml/python-docx/pulls/162/comments","review_comment_url":"https://api.github.com/repos/python-openxml/python-docx/pulls/comments{/number}","comments_url":"https://api.github.com/repos/python-openxml/python-docx/issues/162/comments","statuses_url":"https://api.github.com/repos/python-openxml/python-docx/statuses/90237e81a61810c7272c73fbef8edeb6b8be63bd","head":{"label":"tanyunshi:master","ref":"master","sha":"90237e81a61810c7272c73fbef8edeb6b8be63bd","user":{"login":"tanyunshi","id":3141946,"avatar_url":"https://avatars.githubusercontent.com/u/3141946?v=3","gravatar_id":"","url":"https://api.github.com/users/tanyunshi","html_url":"https://github.com/tanyunshi","followers_url":"https://api.github.com/users/tanyunshi/followers","following_url":"https://api.github.com/users/tanyunshi/following{/other_user}","gists_url":"https://api.github.com/users/tanyunshi/gists{/gist_id}","starred_url":"https://api.github.com/users/tanyunshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tanyunshi/subscriptions","organizations_url":"https://api.github.com/users/tanyunshi/orgs","repos_url":"https://api.github.com/users/tanyunshi/repos","events_url":"https://api.github.com/users/tanyunshi/events{/privacy}","received_events_url":"https://api.github.com/users/tanyunshi/received_events","type":"User","site_admin":false},"repo":{"id":29584403,"name":"python-docx","full_name":"tanyunshi/python-docx","owner":{"login":"tanyunshi","id":3141946,"avatar_url":"https://avatars.githubusercontent.com/u/3141946?v=3","gravatar_id":"","url":"https://api.github.com/users/tanyunshi","html_url":"https://github.com/tanyunshi","followers_url":"https://api.github.com/users/tanyunshi/followers","following_url":"https://api.github.com/users/tanyunshi/following{/other_user}","gists_url":"https://api.github.com/users/tanyunshi/gists{/gist_id}","starred_url":"https://api.github.com/users/tanyunshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tanyunshi/subscriptions","organizations_url":"https://api.github.com/users/tanyunshi/orgs","repos_url":"https://api.github.com/users/tanyunshi/repos","events_url":"https://api.github.com/users/tanyunshi/events{/privacy}","received_events_url":"https://api.github.com/users/tanyunshi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tanyunshi/python-docx","description":"Create and modify Word documents with Python","fork":true,"url":"https://api.github.com/repos/tanyunshi/python-docx","forks_url":"https://api.github.com/repos/tanyunshi/python-docx/forks","keys_url":"https://api.github.com/repos/tanyunshi/python-docx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tanyunshi/python-docx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tanyunshi/python-docx/teams","hooks_url":"https://api.github.com/repos/tanyunshi/python-docx/hooks","issue_events_url":"https://api.github.com/repos/tanyunshi/python-docx/issues/events{/number}","events_url":"https://api.github.com/repos/tanyunshi/python-docx/events","assignees_url":"https://api.github.com/repos/tanyunshi/python-docx/assignees{/user}","branches_url":"https://api.github.com/repos/tanyunshi/python-docx/branches{/branch}","tags_url":"https://api.github.com/repos/tanyunshi/python-docx/tags","blobs_url":"https://api.github.com/repos/tanyunshi/python-docx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tanyunshi/python-docx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tanyunshi/python-docx/git/refs{/sha}","trees_url":"https://api.github.com/repos/tanyunshi/python-docx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tanyunshi/python-docx/statuses/{sha}","languages_url":"https://api.github.com/repos/tanyunshi/python-docx/languages","stargazers_url":"https://api.github.com/repos/tanyunshi/python-docx/stargazers","contributors_url":"https://api.github.com/repos/tanyunshi/python-docx/contributors","subscribers_url":"https://api.github.com/repos/tanyunshi/python-docx/subscribers","subscription_url":"https://api.github.com/repos/tanyunshi/python-docx/subscription","commits_url":"https://api.github.com/repos/tanyunshi/python-docx/commits{/sha}","git_commits_url":"https://api.github.com/repos/tanyunshi/python-docx/git/commits{/sha}","comments_url":"https://api.github.com/repos/tanyunshi/python-docx/comments{/number}","issue_comment_url":"https://api.github.com/repos/tanyunshi/python-docx/issues/comments{/number}","contents_url":"https://api.github.com/repos/tanyunshi/python-docx/contents/{+path}","compare_url":"https://api.github.com/repos/tanyunshi/python-docx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tanyunshi/python-docx/merges","archive_url":"https://api.github.com/repos/tanyunshi/python-docx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tanyunshi/python-docx/downloads","issues_url":"https://api.github.com/repos/tanyunshi/python-docx/issues{/number}","pulls_url":"https://api.github.com/repos/tanyunshi/python-docx/pulls{/number}","milestones_url":"https://api.github.com/repos/tanyunshi/python-docx/milestones{/number}","notifications_url":"https://api.github.com/repos/tanyunshi/python-docx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tanyunshi/python-docx/labels{/name}","releases_url":"https://api.github.com/repos/tanyunshi/python-docx/releases{/id}","deployments_url":"https://api.github.com/repos/tanyunshi/python-docx/deployments","created_at":"2015-01-21T10:25:07Z","updated_at":"2015-10-14T12:23:37Z","pushed_at":"2015-03-17T21:50:55Z","git_url":"git://github.com/tanyunshi/python-docx.git","ssh_url":"git@github.com:tanyunshi/python-docx.git","clone_url":"https://github.com/tanyunshi/python-docx.git","svn_url":"https://github.com/tanyunshi/python-docx","homepage":null,"size":44103,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":0,"forks":2,"open_issues":0,"watchers":2,"default_branch":"master"}},"base":{"label":"python-openxml:master","ref":"master","sha":"bc34ec95a9e7bdff01f5b43b1070bbc0c018ab25","user":{"login":"python-openxml","id":3403760,"avatar_url":"https://avatars.githubusercontent.com/u/3403760?v=3","gravatar_id":"","url":"https://api.github.com/users/python-openxml","html_url":"https://github.com/python-openxml","followers_url":"https://api.github.com/users/python-openxml/followers","following_url":"https://api.github.com/users/python-openxml/following{/other_user}","gists_url":"https://api.github.com/users/python-openxml/gists{/gist_id}","starred_url":"https://api.github.com/users/python-openxml/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/python-openxml/subscriptions","organizations_url":"https://api.github.com/users/python-openxml/orgs","repos_url":"https://api.github.com/users/python-openxml/repos","events_url":"https://api.github.com/users/python-openxml/events{/privacy}","received_events_url":"https://api.github.com/users/python-openxml/received_events","type":"Organization","site_admin":false},"repo":{"id":13592924,"name":"python-docx","full_name":"python-openxml/python-docx","owner":{"login":"python-openxml","id":3403760,"avatar_url":"https://avatars.githubusercontent.com/u/3403760?v=3","gravatar_id":"","url":"https://api.github.com/users/python-openxml","html_url":"https://github.com/python-openxml","followers_url":"https://api.github.com/users/python-openxml/followers","following_url":"https://api.github.com/users/python-openxml/following{/other_user}","gists_url":"https://api.github.com/users/python-openxml/gists{/gist_id}","starred_url":"https://api.github.com/users/python-openxml/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/python-openxml/subscriptions","organizations_url":"https://api.github.com/users/python-openxml/orgs","repos_url":"https://api.github.com/users/python-openxml/repos","events_url":"https://api.github.com/users/python-openxml/events{/privacy}","received_events_url":"https://api.github.com/users/python-openxml/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/python-openxml/python-docx","description":"Create and modify Word documents with Python","fork":false,"url":"https://api.github.com/repos/python-openxml/python-docx","forks_url":"https://api.github.com/repos/python-openxml/python-docx/forks","keys_url":"https://api.github.com/repos/python-openxml/python-docx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/python-openxml/python-docx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/python-openxml/python-docx/teams","hooks_url":"https://api.github.com/repos/python-openxml/python-docx/hooks","issue_events_url":"https://api.github.com/repos/python-openxml/python-docx/issues/events{/number}","events_url":"https://api.github.com/repos/python-openxml/python-docx/events","assignees_url":"https://api.github.com/repos/python-openxml/python-docx/assignees{/user}","branches_url":"https://api.github.com/repos/python-openxml/python-docx/branches{/branch}","tags_url":"https://api.github.com/repos/python-openxml/python-docx/tags","blobs_url":"https://api.github.com/repos/python-openxml/python-docx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/python-openxml/python-docx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/python-openxml/python-docx/git/refs{/sha}","trees_url":"https://api.github.com/repos/python-openxml/python-docx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/python-openxml/python-docx/statuses/{sha}","languages_url":"https://api.github.com/repos/python-openxml/python-docx/languages","stargazers_url":"https://api.github.com/repos/python-openxml/python-docx/stargazers","contributors_url":"https://api.github.com/repos/python-openxml/python-docx/contributors","subscribers_url":"https://api.github.com/repos/python-openxml/python-docx/subscribers","subscription_url":"https://api.github.com/repos/python-openxml/python-docx/subscription","commits_url":"https://api.github.com/repos/python-openxml/python-docx/commits{/sha}","git_commits_url":"https://api.github.com/repos/python-openxml/python-docx/git/commits{/sha}","comments_url":"https://api.github.com/repos/python-openxml/python-docx/comments{/number}","issue_comment_url":"https://api.github.com/repos/python-openxml/python-docx/issues/comments{/number}","contents_url":"https://api.github.com/repos/python-openxml/python-docx/contents/{+path}","compare_url":"https://api.github.com/repos/python-openxml/python-docx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/python-openxml/python-docx/merges","archive_url":"https://api.github.com/repos/python-openxml/python-docx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/python-openxml/python-docx/downloads","issues_url":"https://api.github.com/repos/python-openxml/python-docx/issues{/number}","pulls_url":"https://api.github.com/repos/python-openxml/python-docx/pulls{/number}","milestones_url":"https://api.github.com/repos/python-openxml/python-docx/milestones{/number}","notifications_url":"https://api.github.com/repos/python-openxml/python-docx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/python-openxml/python-docx/labels{/name}","releases_url":"https://api.github.com/repos/python-openxml/python-docx/releases{/id}","deployments_url":"https://api.github.com/repos/python-openxml/python-docx/deployments","created_at":"2013-10-15T14:50:41Z","updated_at":"2016-03-08T07:25:20Z","pushed_at":"2016-03-08T22:43:36Z","git_url":"git://github.com/python-openxml/python-docx.git","ssh_url":"git@github.com:python-openxml/python-docx.git","clone_url":"https://github.com/python-openxml/python-docx.git","svn_url":"https://github.com/python-openxml/python-docx","homepage":null,"size":44555,"stargazers_count":480,"watchers_count":480,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":179,"mirror_url":null,"open_issues_count":134,"forks":179,"open_issues":134,"watchers":480,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/python-openxml/python-docx/pulls/162"},"html":{"href":"https://github.com/python-openxml/python-docx/pull/162"},"issue":{"href":"https://api.github.com/repos/python-openxml/python-docx/issues/162"},"comments":{"href":"https://api.github.com/repos/python-openxml/python-docx/issues/162/comments"},"review_comments":{"href":"https://api.github.com/repos/python-openxml/python-docx/pulls/162/comments"},"review_comment":{"href":"https://api.github.com/repos/python-openxml/python-docx/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/python-openxml/python-docx/pulls/162/commits"},"statuses":{"href":"https://api.github.com/repos/python-openxml/python-docx/statuses/90237e81a61810c7272c73fbef8edeb6b8be63bd"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":3,"review_comments":0,"commits":1,"additions":333,"deletions":0,"changed_files":8}}