{"action":"created","comment":{"url":"https://api.github.com/repos/git-for-windows/build-extra/pulls/comments/63038599","id":63038599,"diff_hunk":"@@ -0,0 +1,174 @@\n+#!/bin/bash\n+\n+me=$(basename $0)\n+\n+function showUsage() {\n+\tcat<<-EOF\n+Usage: $me --installer <msi|inno|nuget>\n+   or: $me [--output <dir> [--css <path>]]\n+\n+    --installer <inno|msi|nuget>, -i <inno|msi|nuget>\n+        The installer for which you are generating release notes.\n+        Valid values are msi, inno, and nuget. This option cannot be used with\n+        the --output or --css arguments.\n+\n+        This option causes release notes to be generated for the specified\n+        installer in the installer's source directory. This option also sets a\n+        default relative location for where the ReleaseNotes.html file expects\n+        to find it's CSS file.\n+\n+    --output <dir>, -o <dir>\n+        An optional argument specifying the output directory for the generated\n+        ReleaseNotes.html file. This is useful when running this script inde-\n+        pendently of creating any installer via a `release.sh` script.\n+\n+        If this argument is not specified, the file will be generated in the\n+        same location as this script file.\n+\n+        If this argument is specified, you can also use the --css option to\n+        specify the location to use for the Release Notes CSS style sheet.\n+\n+    --css <path>, -c <path>\n+        When using --output, use this argument to specify the filepath location\n+        for where the Release Notes expects to find its CSS stylsheet, relative\n+        to the location of the generated ReleaseNotes.html file itself (unless\n+        an absolute path is used). If this argument is not used, the CSS style\n+        sheet path will default to the path specified for the --output switch.\n+\n+        For example:\n+\n+            $me -o ~/ -c styles\n+\n+        would result in the ReleaseNotes.html file being generated in the\n+        user's home directory with a generated CSS href relative path of\n+        'styles/ReleaseNotes.css' for the link element in the head section of\n+        the release notes HTML file. Finally, ReleaseNotes.css will be copied\n+        to ~/styles.\n+EOF\n+\texit 1\n+}\n+\n+function die() {\n+\techo \"$*\" >&2\n+\tpopd >/dev/null","path":"render-release-notes.sh","position":53,"original_position":53,"commit_id":"93c4869c39db410f9263eea2e7f34424818ecf74","original_commit_id":"a25a997be01093b0edfb0883b572f5c4d28230d0","user":{"login":"dscho","id":127790,"avatar_url":"https://avatars.githubusercontent.com/u/127790?v=3","gravatar_id":"","url":"https://api.github.com/users/dscho","html_url":"https://github.com/dscho","followers_url":"https://api.github.com/users/dscho/followers","following_url":"https://api.github.com/users/dscho/following{/other_user}","gists_url":"https://api.github.com/users/dscho/gists{/gist_id}","starred_url":"https://api.github.com/users/dscho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dscho/subscriptions","organizations_url":"https://api.github.com/users/dscho/orgs","repos_url":"https://api.github.com/users/dscho/repos","events_url":"https://api.github.com/users/dscho/events{/privacy}","received_events_url":"https://api.github.com/users/dscho/received_events","type":"User","site_admin":false},"body":"Let's not use `pushd`/`popd`. They are not necessary...","created_at":"2016-05-12T15:15:24Z","updated_at":"2016-05-12T15:15:24Z","html_url":"https://github.com/git-for-windows/build-extra/pull/113#discussion_r63038599","pull_request_url":"https://api.github.com/repos/git-for-windows/build-extra/pulls/113","_links":{"self":{"href":"https://api.github.com/repos/git-for-windows/build-extra/pulls/comments/63038599"},"html":{"href":"https://github.com/git-for-windows/build-extra/pull/113#discussion_r63038599"},"pull_request":{"href":"https://api.github.com/repos/git-for-windows/build-extra/pulls/113"}}},"pull_request":{"url":"https://api.github.com/repos/git-for-windows/build-extra/pulls/113","id":67465887,"html_url":"https://github.com/git-for-windows/build-extra/pull/113","diff_url":"https://github.com/git-for-windows/build-extra/pull/113.diff","patch_url":"https://github.com/git-for-windows/build-extra/pull/113.patch","issue_url":"https://api.github.com/repos/git-for-windows/build-extra/issues/113","number":113,"state":"open","locked":false,"title":"Feature/git for windows msi [DO NOT MERGE]","user":{"login":"fourpastmidnight","id":6895593,"avatar_url":"https://avatars.githubusercontent.com/u/6895593?v=3","gravatar_id":"","url":"https://api.github.com/users/fourpastmidnight","html_url":"https://github.com/fourpastmidnight","followers_url":"https://api.github.com/users/fourpastmidnight/followers","following_url":"https://api.github.com/users/fourpastmidnight/following{/other_user}","gists_url":"https://api.github.com/users/fourpastmidnight/gists{/gist_id}","starred_url":"https://api.github.com/users/fourpastmidnight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fourpastmidnight/subscriptions","organizations_url":"https://api.github.com/users/fourpastmidnight/orgs","repos_url":"https://api.github.com/users/fourpastmidnight/repos","events_url":"https://api.github.com/users/fourpastmidnight/events{/privacy}","received_events_url":"https://api.github.com/users/fourpastmidnight/received_events","type":"User","site_admin":false},"body":"Here's the long-awaited pull request for [git-for-windows/git issue #682](https://github.com/git-for-windows/git/issues/682).","created_at":"2016-04-22T06:42:19Z","updated_at":"2016-05-12T15:15:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fcf4e6026404c2d204f3e8169acf0f4ada1f68e0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/git-for-windows/build-extra/pulls/113/commits","review_comments_url":"https://api.github.com/repos/git-for-windows/build-extra/pulls/113/comments","review_comment_url":"https://api.github.com/repos/git-for-windows/build-extra/pulls/comments{/number}","comments_url":"https://api.github.com/repos/git-for-windows/build-extra/issues/113/comments","statuses_url":"https://api.github.com/repos/git-for-windows/build-extra/statuses/93c4869c39db410f9263eea2e7f34424818ecf74","head":{"label":"fourpastmidnight:feature/GitForWindowsMSI","ref":"feature/GitForWindowsMSI","sha":"93c4869c39db410f9263eea2e7f34424818ecf74","user":{"login":"fourpastmidnight","id":6895593,"avatar_url":"https://avatars.githubusercontent.com/u/6895593?v=3","gravatar_id":"","url":"https://api.github.com/users/fourpastmidnight","html_url":"https://github.com/fourpastmidnight","followers_url":"https://api.github.com/users/fourpastmidnight/followers","following_url":"https://api.github.com/users/fourpastmidnight/following{/other_user}","gists_url":"https://api.github.com/users/fourpastmidnight/gists{/gist_id}","starred_url":"https://api.github.com/users/fourpastmidnight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fourpastmidnight/subscriptions","organizations_url":"https://api.github.com/users/fourpastmidnight/orgs","repos_url":"https://api.github.com/users/fourpastmidnight/repos","events_url":"https://api.github.com/users/fourpastmidnight/events{/privacy}","received_events_url":"https://api.github.com/users/fourpastmidnight/received_events","type":"User","site_admin":false},"repo":{"id":53538963,"name":"build-extra","full_name":"fourpastmidnight/build-extra","owner":{"login":"fourpastmidnight","id":6895593,"avatar_url":"https://avatars.githubusercontent.com/u/6895593?v=3","gravatar_id":"","url":"https://api.github.com/users/fourpastmidnight","html_url":"https://github.com/fourpastmidnight","followers_url":"https://api.github.com/users/fourpastmidnight/followers","following_url":"https://api.github.com/users/fourpastmidnight/following{/other_user}","gists_url":"https://api.github.com/users/fourpastmidnight/gists{/gist_id}","starred_url":"https://api.github.com/users/fourpastmidnight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fourpastmidnight/subscriptions","organizations_url":"https://api.github.com/users/fourpastmidnight/orgs","repos_url":"https://api.github.com/users/fourpastmidnight/repos","events_url":"https://api.github.com/users/fourpastmidnight/events{/privacy}","received_events_url":"https://api.github.com/users/fourpastmidnight/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fourpastmidnight/build-extra","description":"Additional files and scripts to help build Git for Windows on MSYS2.","fork":true,"url":"https://api.github.com/repos/fourpastmidnight/build-extra","forks_url":"https://api.github.com/repos/fourpastmidnight/build-extra/forks","keys_url":"https://api.github.com/repos/fourpastmidnight/build-extra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fourpastmidnight/build-extra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fourpastmidnight/build-extra/teams","hooks_url":"https://api.github.com/repos/fourpastmidnight/build-extra/hooks","issue_events_url":"https://api.github.com/repos/fourpastmidnight/build-extra/issues/events{/number}","events_url":"https://api.github.com/repos/fourpastmidnight/build-extra/events","assignees_url":"https://api.github.com/repos/fourpastmidnight/build-extra/assignees{/user}","branches_url":"https://api.github.com/repos/fourpastmidnight/build-extra/branches{/branch}","tags_url":"https://api.github.com/repos/fourpastmidnight/build-extra/tags","blobs_url":"https://api.github.com/repos/fourpastmidnight/build-extra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fourpastmidnight/build-extra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fourpastmidnight/build-extra/git/refs{/sha}","trees_url":"https://api.github.com/repos/fourpastmidnight/build-extra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fourpastmidnight/build-extra/statuses/{sha}","languages_url":"https://api.github.com/repos/fourpastmidnight/build-extra/languages","stargazers_url":"https://api.github.com/repos/fourpastmidnight/build-extra/stargazers","contributors_url":"https://api.github.com/repos/fourpastmidnight/build-extra/contributors","subscribers_url":"https://api.github.com/repos/fourpastmidnight/build-extra/subscribers","subscription_url":"https://api.github.com/repos/fourpastmidnight/build-extra/subscription","commits_url":"https://api.github.com/repos/fourpastmidnight/build-extra/commits{/sha}","git_commits_url":"https://api.github.com/repos/fourpastmidnight/build-extra/git/commits{/sha}","comments_url":"https://api.github.com/repos/fourpastmidnight/build-extra/comments{/number}","issue_comment_url":"https://api.github.com/repos/fourpastmidnight/build-extra/issues/comments{/number}","contents_url":"https://api.github.com/repos/fourpastmidnight/build-extra/contents/{+path}","compare_url":"https://api.github.com/repos/fourpastmidnight/build-extra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fourpastmidnight/build-extra/merges","archive_url":"https://api.github.com/repos/fourpastmidnight/build-extra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fourpastmidnight/build-extra/downloads","issues_url":"https://api.github.com/repos/fourpastmidnight/build-extra/issues{/number}","pulls_url":"https://api.github.com/repos/fourpastmidnight/build-extra/pulls{/number}","milestones_url":"https://api.github.com/repos/fourpastmidnight/build-extra/milestones{/number}","notifications_url":"https://api.github.com/repos/fourpastmidnight/build-extra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fourpastmidnight/build-extra/labels{/name}","releases_url":"https://api.github.com/repos/fourpastmidnight/build-extra/releases{/id}","deployments_url":"https://api.github.com/repos/fourpastmidnight/build-extra/deployments","created_at":"2016-03-09T23:15:31Z","updated_at":"2016-03-09T23:15:32Z","pushed_at":"2016-05-12T00:39:18Z","git_url":"git://github.com/fourpastmidnight/build-extra.git","ssh_url":"git@github.com:fourpastmidnight/build-extra.git","clone_url":"https://github.com/fourpastmidnight/build-extra.git","svn_url":"https://github.com/fourpastmidnight/build-extra","homepage":"","size":10260,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"git-for-windows:master","ref":"master","sha":"89c1f4e4ac904dad3268b4c33c408af819debcea","user":{"login":"git-for-windows","id":4571183,"avatar_url":"https://avatars.githubusercontent.com/u/4571183?v=3","gravatar_id":"","url":"https://api.github.com/users/git-for-windows","html_url":"https://github.com/git-for-windows","followers_url":"https://api.github.com/users/git-for-windows/followers","following_url":"https://api.github.com/users/git-for-windows/following{/other_user}","gists_url":"https://api.github.com/users/git-for-windows/gists{/gist_id}","starred_url":"https://api.github.com/users/git-for-windows/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/git-for-windows/subscriptions","organizations_url":"https://api.github.com/users/git-for-windows/orgs","repos_url":"https://api.github.com/users/git-for-windows/repos","events_url":"https://api.github.com/users/git-for-windows/events{/privacy}","received_events_url":"https://api.github.com/users/git-for-windows/received_events","type":"Organization","site_admin":false},"repo":{"id":31306459,"name":"build-extra","full_name":"git-for-windows/build-extra","owner":{"login":"git-for-windows","id":4571183,"avatar_url":"https://avatars.githubusercontent.com/u/4571183?v=3","gravatar_id":"","url":"https://api.github.com/users/git-for-windows","html_url":"https://github.com/git-for-windows","followers_url":"https://api.github.com/users/git-for-windows/followers","following_url":"https://api.github.com/users/git-for-windows/following{/other_user}","gists_url":"https://api.github.com/users/git-for-windows/gists{/gist_id}","starred_url":"https://api.github.com/users/git-for-windows/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/git-for-windows/subscriptions","organizations_url":"https://api.github.com/users/git-for-windows/orgs","repos_url":"https://api.github.com/users/git-for-windows/repos","events_url":"https://api.github.com/users/git-for-windows/events{/privacy}","received_events_url":"https://api.github.com/users/git-for-windows/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/git-for-windows/build-extra","description":"Additional files and scripts to help build Git for Windows on MSYS2.","fork":false,"url":"https://api.github.com/repos/git-for-windows/build-extra","forks_url":"https://api.github.com/repos/git-for-windows/build-extra/forks","keys_url":"https://api.github.com/repos/git-for-windows/build-extra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/git-for-windows/build-extra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/git-for-windows/build-extra/teams","hooks_url":"https://api.github.com/repos/git-for-windows/build-extra/hooks","issue_events_url":"https://api.github.com/repos/git-for-windows/build-extra/issues/events{/number}","events_url":"https://api.github.com/repos/git-for-windows/build-extra/events","assignees_url":"https://api.github.com/repos/git-for-windows/build-extra/assignees{/user}","branches_url":"https://api.github.com/repos/git-for-windows/build-extra/branches{/branch}","tags_url":"https://api.github.com/repos/git-for-windows/build-extra/tags","blobs_url":"https://api.github.com/repos/git-for-windows/build-extra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/git-for-windows/build-extra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/git-for-windows/build-extra/git/refs{/sha}","trees_url":"https://api.github.com/repos/git-for-windows/build-extra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/git-for-windows/build-extra/statuses/{sha}","languages_url":"https://api.github.com/repos/git-for-windows/build-extra/languages","stargazers_url":"https://api.github.com/repos/git-for-windows/build-extra/stargazers","contributors_url":"https://api.github.com/repos/git-for-windows/build-extra/contributors","subscribers_url":"https://api.github.com/repos/git-for-windows/build-extra/subscribers","subscription_url":"https://api.github.com/repos/git-for-windows/build-extra/subscription","commits_url":"https://api.github.com/repos/git-for-windows/build-extra/commits{/sha}","git_commits_url":"https://api.github.com/repos/git-for-windows/build-extra/git/commits{/sha}","comments_url":"https://api.github.com/repos/git-for-windows/build-extra/comments{/number}","issue_comment_url":"https://api.github.com/repos/git-for-windows/build-extra/issues/comments{/number}","contents_url":"https://api.github.com/repos/git-for-windows/build-extra/contents/{+path}","compare_url":"https://api.github.com/repos/git-for-windows/build-extra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/git-for-windows/build-extra/merges","archive_url":"https://api.github.com/repos/git-for-windows/build-extra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/git-for-windows/build-extra/downloads","issues_url":"https://api.github.com/repos/git-for-windows/build-extra/issues{/number}","pulls_url":"https://api.github.com/repos/git-for-windows/build-extra/pulls{/number}","milestones_url":"https://api.github.com/repos/git-for-windows/build-extra/milestones{/number}","notifications_url":"https://api.github.com/repos/git-for-windows/build-extra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/git-for-windows/build-extra/labels{/name}","releases_url":"https://api.github.com/repos/git-for-windows/build-extra/releases{/id}","deployments_url":"https://api.github.com/repos/git-for-windows/build-extra/deployments","created_at":"2015-02-25T09:34:52Z","updated_at":"2016-05-09T11:39:20Z","pushed_at":"2016-05-12T00:39:18Z","git_url":"git://github.com/git-for-windows/build-extra.git","ssh_url":"git@github.com:git-for-windows/build-extra.git","clone_url":"https://github.com/git-for-windows/build-extra.git","svn_url":"https://github.com/git-for-windows/build-extra","homepage":"","size":11469,"stargazers_count":61,"watchers_count":61,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":91,"mirror_url":null,"open_issues_count":1,"forks":91,"open_issues":1,"watchers":61,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/git-for-windows/build-extra/pulls/113"},"html":{"href":"https://github.com/git-for-windows/build-extra/pull/113"},"issue":{"href":"https://api.github.com/repos/git-for-windows/build-extra/issues/113"},"comments":{"href":"https://api.github.com/repos/git-for-windows/build-extra/issues/113/comments"},"review_comments":{"href":"https://api.github.com/repos/git-for-windows/build-extra/pulls/113/comments"},"review_comment":{"href":"https://api.github.com/repos/git-for-windows/build-extra/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/git-for-windows/build-extra/pulls/113/commits"},"statuses":{"href":"https://api.github.com/repos/git-for-windows/build-extra/statuses/93c4869c39db410f9263eea2e7f34424818ecf74"}}}}