{"action":"created","comment":{"url":"https://api.github.com/repos/gehaxelt/Bash-INWX-DynDNS/pulls/comments/27781438","id":27781438,"diff_hunk":"@@ -2,14 +2,25 @@\n \n USERNAME=\"\" #INWX USERNAME\n PASSWORD=\"\" #INWX PASSWORD\n-DNSID=\"\" #DNS Entry ID\n+DNSIDv4=\"\" #DNS Entry ID\n+DNSIDv6=\"\" #DNS Entry ID\n APIHOST=\"https://api.domrobot.com/xmlrpc/\"\n-OLDIP=$(cat old.ip)\n-NEWIP=$(curl -s curlmyip.com)\n+OLDIPv4=$(cat old.ipv4)\n+OLDIPv6=$(cat old.ipv6)\n+NEWIPv4=$(curl -s curlmyip.com)\n+NEWIPv6=$(curl -s curlmyip6.com)\n \n-if [ ! \"$OLDIP\" == \"$NEWIP\" ]; then\n-    echo $NEWIP > old.ip\n-    DATA=$(cat update.api | sed \"s/%PASSWD%/$PASSWORD/g;s/%USER%/$USERNAME/g;s/%DNSID%/$DNSID/g;s/%NEWIP%/$NEWIP/g\")\n-    curl  -X POST -d \"$DATA\" \"$APIHOST\" --header \"Content-Type:text/xml\" --insecure > update.log\n+if [ ! \"$OLDIPv4\" == \"$NEWIPv4\" ]; then\n+    echo $NEWIP > old.ipv4","path":"dnsupdate.sh","position":null,"original_position":20,"commit_id":"9af95f49dfe129d8af84f1f6ca86c5b3d0917b7d","original_commit_id":"3dcd4b2aeffac3c228bd910542be237223bcc34f","user":{"login":"joker234","id":2878899,"avatar_url":"https://avatars.githubusercontent.com/u/2878899?v=3","gravatar_id":"","url":"https://api.github.com/users/joker234","html_url":"https://github.com/joker234","followers_url":"https://api.github.com/users/joker234/followers","following_url":"https://api.github.com/users/joker234/following{/other_user}","gists_url":"https://api.github.com/users/joker234/gists{/gist_id}","starred_url":"https://api.github.com/users/joker234/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joker234/subscriptions","organizations_url":"https://api.github.com/users/joker234/orgs","repos_url":"https://api.github.com/users/joker234/repos","events_url":"https://api.github.com/users/joker234/events{/privacy}","received_events_url":"https://api.github.com/users/joker234/received_events","type":"User","site_admin":false},"body":"fixed","created_at":"2015-04-05T23:34:45Z","updated_at":"2015-04-05T23:34:45Z","html_url":"https://github.com/gehaxelt/Bash-INWX-DynDNS/pull/2#discussion_r27781438","pull_request_url":"https://api.github.com/repos/gehaxelt/Bash-INWX-DynDNS/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/gehaxelt/Bash-INWX-DynDNS/pulls/comments/27781438"},"html":{"href":"https://github.com/gehaxelt/Bash-INWX-DynDNS/pull/2#discussion_r27781438"},"pull_request":{"href":"https://api.github.com/repos/gehaxelt/Bash-INWX-DynDNS/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/gehaxelt/Bash-INWX-DynDNS/pulls/2","id":32378049,"html_url":"https://github.com/gehaxelt/Bash-INWX-DynDNS/pull/2","diff_url":"https://github.com/gehaxelt/Bash-INWX-DynDNS/pull/2.diff","patch_url":"https://github.com/gehaxelt/Bash-INWX-DynDNS/pull/2.patch","issue_url":"https://api.github.com/repos/gehaxelt/Bash-INWX-DynDNS/issues/2","number":2,"state":"open","locked":false,"title":"Improvements and IPv6 Support","user":{"login":"joker234","id":2878899,"avatar_url":"https://avatars.githubusercontent.com/u/2878899?v=3","gravatar_id":"","url":"https://api.github.com/users/joker234","html_url":"https://github.com/joker234","followers_url":"https://api.github.com/users/joker234/followers","following_url":"https://api.github.com/users/joker234/following{/other_user}","gists_url":"https://api.github.com/users/joker234/gists{/gist_id}","starred_url":"https://api.github.com/users/joker234/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joker234/subscriptions","organizations_url":"https://api.github.com/users/joker234/orgs","repos_url":"https://api.github.com/users/joker234/repos","events_url":"https://api.github.com/users/joker234/events{/privacy}","received_events_url":"https://api.github.com/users/joker234/received_events","type":"User","site_admin":false},"body":"I did some Improvements on your litte script. (btw. thanks for that) I wrote some verbose commit messages where is described why I did what. If you want, I can do patches for each of this commits for you.","created_at":"2015-03-31T23:59:56Z","updated_at":"2015-04-05T23:34:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f23ffc257a46c106d68e14e0a69908c419aae216","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gehaxelt/Bash-INWX-DynDNS/pulls/2/commits","review_comments_url":"https://api.github.com/repos/gehaxelt/Bash-INWX-DynDNS/pulls/2/comments","review_comment_url":"https://api.github.com/repos/gehaxelt/Bash-INWX-DynDNS/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gehaxelt/Bash-INWX-DynDNS/issues/2/comments","statuses_url":"https://api.github.com/repos/gehaxelt/Bash-INWX-DynDNS/statuses/9af95f49dfe129d8af84f1f6ca86c5b3d0917b7d","head":{"label":"joker234:patch-joker","ref":"patch-joker","sha":"9af95f49dfe129d8af84f1f6ca86c5b3d0917b7d","user":{"login":"joker234","id":2878899,"avatar_url":"https://avatars.githubusercontent.com/u/2878899?v=3","gravatar_id":"","url":"https://api.github.com/users/joker234","html_url":"https://github.com/joker234","followers_url":"https://api.github.com/users/joker234/followers","following_url":"https://api.github.com/users/joker234/following{/other_user}","gists_url":"https://api.github.com/users/joker234/gists{/gist_id}","starred_url":"https://api.github.com/users/joker234/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joker234/subscriptions","organizations_url":"https://api.github.com/users/joker234/orgs","repos_url":"https://api.github.com/users/joker234/repos","events_url":"https://api.github.com/users/joker234/events{/privacy}","received_events_url":"https://api.github.com/users/joker234/received_events","type":"User","site_admin":false},"repo":{"id":33216277,"name":"Bash-INWX-DynDNS","full_name":"joker234/Bash-INWX-DynDNS","owner":{"login":"joker234","id":2878899,"avatar_url":"https://avatars.githubusercontent.com/u/2878899?v=3","gravatar_id":"","url":"https://api.github.com/users/joker234","html_url":"https://github.com/joker234","followers_url":"https://api.github.com/users/joker234/followers","following_url":"https://api.github.com/users/joker234/following{/other_user}","gists_url":"https://api.github.com/users/joker234/gists{/gist_id}","starred_url":"https://api.github.com/users/joker234/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joker234/subscriptions","organizations_url":"https://api.github.com/users/joker234/orgs","repos_url":"https://api.github.com/users/joker234/repos","events_url":"https://api.github.com/users/joker234/events{/privacy}","received_events_url":"https://api.github.com/users/joker234/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/joker234/Bash-INWX-DynDNS","description":"Small DynDNS script for domains registered at inwx.de","fork":true,"url":"https://api.github.com/repos/joker234/Bash-INWX-DynDNS","forks_url":"https://api.github.com/repos/joker234/Bash-INWX-DynDNS/forks","keys_url":"https://api.github.com/repos/joker234/Bash-INWX-DynDNS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joker234/Bash-INWX-DynDNS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joker234/Bash-INWX-DynDNS/teams","hooks_url":"https://api.github.com/repos/joker234/Bash-INWX-DynDNS/hooks","issue_events_url":"https://api.github.com/repos/joker234/Bash-INWX-DynDNS/issues/events{/number}","events_url":"https://api.github.com/repos/joker234/Bash-INWX-DynDNS/events","assignees_url":"https://api.github.com/repos/joker234/Bash-INWX-DynDNS/assignees{/user}","branches_url":"https://api.github.com/repos/joker234/Bash-INWX-DynDNS/branches{/branch}","tags_url":"https://api.github.com/repos/joker234/Bash-INWX-DynDNS/tags","blobs_url":"https://api.github.com/repos/joker234/Bash-INWX-DynDNS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joker234/Bash-INWX-DynDNS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joker234/Bash-INWX-DynDNS/git/refs{/sha}","trees_url":"https://api.github.com/repos/joker234/Bash-INWX-DynDNS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joker234/Bash-INWX-DynDNS/statuses/{sha}","languages_url":"https://api.github.com/repos/joker234/Bash-INWX-DynDNS/languages","stargazers_url":"https://api.github.com/repos/joker234/Bash-INWX-DynDNS/stargazers","contributors_url":"https://api.github.com/repos/joker234/Bash-INWX-DynDNS/contributors","subscribers_url":"https://api.github.com/repos/joker234/Bash-INWX-DynDNS/subscribers","subscription_url":"https://api.github.com/repos/joker234/Bash-INWX-DynDNS/subscription","commits_url":"https://api.github.com/repos/joker234/Bash-INWX-DynDNS/commits{/sha}","git_commits_url":"https://api.github.com/repos/joker234/Bash-INWX-DynDNS/git/commits{/sha}","comments_url":"https://api.github.com/repos/joker234/Bash-INWX-DynDNS/comments{/number}","issue_comment_url":"https://api.github.com/repos/joker234/Bash-INWX-DynDNS/issues/comments{/number}","contents_url":"https://api.github.com/repos/joker234/Bash-INWX-DynDNS/contents/{+path}","compare_url":"https://api.github.com/repos/joker234/Bash-INWX-DynDNS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joker234/Bash-INWX-DynDNS/merges","archive_url":"https://api.github.com/repos/joker234/Bash-INWX-DynDNS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joker234/Bash-INWX-DynDNS/downloads","issues_url":"https://api.github.com/repos/joker234/Bash-INWX-DynDNS/issues{/number}","pulls_url":"https://api.github.com/repos/joker234/Bash-INWX-DynDNS/pulls{/number}","milestones_url":"https://api.github.com/repos/joker234/Bash-INWX-DynDNS/milestones{/number}","notifications_url":"https://api.github.com/repos/joker234/Bash-INWX-DynDNS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joker234/Bash-INWX-DynDNS/labels{/name}","releases_url":"https://api.github.com/repos/joker234/Bash-INWX-DynDNS/releases{/id}","created_at":"2015-03-31T23:47:39Z","updated_at":"2015-03-31T23:47:39Z","pushed_at":"2015-04-05T23:34:05Z","git_url":"git://github.com/joker234/Bash-INWX-DynDNS.git","ssh_url":"git@github.com:joker234/Bash-INWX-DynDNS.git","clone_url":"https://github.com/joker234/Bash-INWX-DynDNS.git","svn_url":"https://github.com/joker234/Bash-INWX-DynDNS","homepage":null,"size":80,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"gehaxelt:master","ref":"master","sha":"726509c280379dd5566b850e85f7cb21f9fc0abe","user":{"login":"gehaxelt","id":1652523,"avatar_url":"https://avatars.githubusercontent.com/u/1652523?v=3","gravatar_id":"","url":"https://api.github.com/users/gehaxelt","html_url":"https://github.com/gehaxelt","followers_url":"https://api.github.com/users/gehaxelt/followers","following_url":"https://api.github.com/users/gehaxelt/following{/other_user}","gists_url":"https://api.github.com/users/gehaxelt/gists{/gist_id}","starred_url":"https://api.github.com/users/gehaxelt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gehaxelt/subscriptions","organizations_url":"https://api.github.com/users/gehaxelt/orgs","repos_url":"https://api.github.com/users/gehaxelt/repos","events_url":"https://api.github.com/users/gehaxelt/events{/privacy}","received_events_url":"https://api.github.com/users/gehaxelt/received_events","type":"User","site_admin":false},"repo":{"id":11239525,"name":"Bash-INWX-DynDNS","full_name":"gehaxelt/Bash-INWX-DynDNS","owner":{"login":"gehaxelt","id":1652523,"avatar_url":"https://avatars.githubusercontent.com/u/1652523?v=3","gravatar_id":"","url":"https://api.github.com/users/gehaxelt","html_url":"https://github.com/gehaxelt","followers_url":"https://api.github.com/users/gehaxelt/followers","following_url":"https://api.github.com/users/gehaxelt/following{/other_user}","gists_url":"https://api.github.com/users/gehaxelt/gists{/gist_id}","starred_url":"https://api.github.com/users/gehaxelt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gehaxelt/subscriptions","organizations_url":"https://api.github.com/users/gehaxelt/orgs","repos_url":"https://api.github.com/users/gehaxelt/repos","events_url":"https://api.github.com/users/gehaxelt/events{/privacy}","received_events_url":"https://api.github.com/users/gehaxelt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gehaxelt/Bash-INWX-DynDNS","description":"Small DynDNS script for domains registered at inwx.de","fork":false,"url":"https://api.github.com/repos/gehaxelt/Bash-INWX-DynDNS","forks_url":"https://api.github.com/repos/gehaxelt/Bash-INWX-DynDNS/forks","keys_url":"https://api.github.com/repos/gehaxelt/Bash-INWX-DynDNS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gehaxelt/Bash-INWX-DynDNS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gehaxelt/Bash-INWX-DynDNS/teams","hooks_url":"https://api.github.com/repos/gehaxelt/Bash-INWX-DynDNS/hooks","issue_events_url":"https://api.github.com/repos/gehaxelt/Bash-INWX-DynDNS/issues/events{/number}","events_url":"https://api.github.com/repos/gehaxelt/Bash-INWX-DynDNS/events","assignees_url":"https://api.github.com/repos/gehaxelt/Bash-INWX-DynDNS/assignees{/user}","branches_url":"https://api.github.com/repos/gehaxelt/Bash-INWX-DynDNS/branches{/branch}","tags_url":"https://api.github.com/repos/gehaxelt/Bash-INWX-DynDNS/tags","blobs_url":"https://api.github.com/repos/gehaxelt/Bash-INWX-DynDNS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gehaxelt/Bash-INWX-DynDNS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gehaxelt/Bash-INWX-DynDNS/git/refs{/sha}","trees_url":"https://api.github.com/repos/gehaxelt/Bash-INWX-DynDNS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gehaxelt/Bash-INWX-DynDNS/statuses/{sha}","languages_url":"https://api.github.com/repos/gehaxelt/Bash-INWX-DynDNS/languages","stargazers_url":"https://api.github.com/repos/gehaxelt/Bash-INWX-DynDNS/stargazers","contributors_url":"https://api.github.com/repos/gehaxelt/Bash-INWX-DynDNS/contributors","subscribers_url":"https://api.github.com/repos/gehaxelt/Bash-INWX-DynDNS/subscribers","subscription_url":"https://api.github.com/repos/gehaxelt/Bash-INWX-DynDNS/subscription","commits_url":"https://api.github.com/repos/gehaxelt/Bash-INWX-DynDNS/commits{/sha}","git_commits_url":"https://api.github.com/repos/gehaxelt/Bash-INWX-DynDNS/git/commits{/sha}","comments_url":"https://api.github.com/repos/gehaxelt/Bash-INWX-DynDNS/comments{/number}","issue_comment_url":"https://api.github.com/repos/gehaxelt/Bash-INWX-DynDNS/issues/comments{/number}","contents_url":"https://api.github.com/repos/gehaxelt/Bash-INWX-DynDNS/contents/{+path}","compare_url":"https://api.github.com/repos/gehaxelt/Bash-INWX-DynDNS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gehaxelt/Bash-INWX-DynDNS/merges","archive_url":"https://api.github.com/repos/gehaxelt/Bash-INWX-DynDNS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gehaxelt/Bash-INWX-DynDNS/downloads","issues_url":"https://api.github.com/repos/gehaxelt/Bash-INWX-DynDNS/issues{/number}","pulls_url":"https://api.github.com/repos/gehaxelt/Bash-INWX-DynDNS/pulls{/number}","milestones_url":"https://api.github.com/repos/gehaxelt/Bash-INWX-DynDNS/milestones{/number}","notifications_url":"https://api.github.com/repos/gehaxelt/Bash-INWX-DynDNS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gehaxelt/Bash-INWX-DynDNS/labels{/name}","releases_url":"https://api.github.com/repos/gehaxelt/Bash-INWX-DynDNS/releases{/id}","created_at":"2013-07-07T20:22:40Z","updated_at":"2015-03-12T21:31:34Z","pushed_at":"2015-04-05T23:34:06Z","git_url":"git://github.com/gehaxelt/Bash-INWX-DynDNS.git","ssh_url":"git@github.com:gehaxelt/Bash-INWX-DynDNS.git","clone_url":"https://github.com/gehaxelt/Bash-INWX-DynDNS.git","svn_url":"https://github.com/gehaxelt/Bash-INWX-DynDNS","homepage":null,"size":183,"stargazers_count":7,"watchers_count":7,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gehaxelt/Bash-INWX-DynDNS/pulls/2"},"html":{"href":"https://github.com/gehaxelt/Bash-INWX-DynDNS/pull/2"},"issue":{"href":"https://api.github.com/repos/gehaxelt/Bash-INWX-DynDNS/issues/2"},"comments":{"href":"https://api.github.com/repos/gehaxelt/Bash-INWX-DynDNS/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/gehaxelt/Bash-INWX-DynDNS/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/gehaxelt/Bash-INWX-DynDNS/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gehaxelt/Bash-INWX-DynDNS/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/gehaxelt/Bash-INWX-DynDNS/statuses/9af95f49dfe129d8af84f1f6ca86c5b3d0917b7d"}}}}