Skip to content

Commit 96f57df

Browse files
committed
Fix emails with release notes containing special characters + use prettier
1 parent 9cd1df9 commit 96f57df

30 files changed

Lines changed: 1920 additions & 2345 deletions

lib/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,3 @@ npm install
99
npm run build
1010
npm link
1111
```
12-

lib/fixtures/fetchAtom.json

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,48 @@
11
[
2-
{
3-
"scope": "https://github.com:443",
4-
"method": "GET",
5-
"path": "/vfeskov/for-fixtures/releases.atom",
6-
"body": "",
7-
"status": 200,
8-
"response": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<feed xmlns=\"http://www.w3.org/2005/Atom\" xmlns:media=\"http://search.yahoo.com/mrss/\" xml:lang=\"en-US\">\n <id>tag:github.com,2008:https://github.com/vfeskov/for-fixtures/releases</id>\n <link type=\"text/html\" rel=\"alternate\" href=\"https://github.com/vfeskov/for-fixtures/releases\"/>\n <link type=\"application/atom+xml\" rel=\"self\" href=\"https://github.com/vfeskov/for-fixtures/releases.atom\"/>\n <title>Release notes from for-fixtures</title>\n <updated>2018-03-11T12:33:42Z</updated>\n <entry>\n <id>tag:github.com,2008:Repository/124754149/v2.0.0</id>\n <updated>2018-03-11T12:38:02Z</updated>\n <link rel=\"alternate\" type=\"text/html\" href=\"https://github.com/vfeskov/for-fixtures/releases/tag/v2.0.0\"/>\n <title>New Stuff!</title>\n <content type=\"html\">&lt;h1&gt;WOW NEW STUFF!!&lt;/h1&gt;\n&lt;p&gt;issue &lt;a class=&quot;issue-link js-issue-link&quot; data-error-text=&quot;Failed to load issue title&quot; data-id=&quot;304154320&quot; data-permission-text=&quot;Issue title is private&quot; data-url=&quot;https://github.com/vfeskov/for-fixtures/issues/1&quot; href=&quot;https://github.com/vfeskov/for-fixtures/issues/1&quot;&gt;#1&lt;/a&gt;&lt;br&gt;\npull request &lt;a class=&quot;issue-link js-issue-link&quot; data-error-text=&quot;Failed to load issue title&quot; data-id=&quot;304154410&quot; data-permission-text=&quot;Issue title is private&quot; data-url=&quot;https://github.com/vfeskov/for-fixtures/issues/2&quot; href=&quot;https://github.com/vfeskov/for-fixtures/pull/2&quot;&gt;#2&lt;/a&gt;&lt;/p&gt;\n&lt;p&gt;&lt;a class=&quot;user-mention&quot; data-hovercard-user-id=&quot;2743367&quot; data-octo-click=&quot;hovercard-link-click&quot; data-octo-dimensions=&quot;link_type:self&quot; href=&quot;https://github.com/vfeskov&quot;&gt;@vfeskov&lt;/a&gt;&lt;/p&gt;\n&lt;p&gt;&lt;g-emoji class=&quot;g-emoji&quot; alias=&quot;+1&quot; fallback-src=&quot;https://assets-cdn.github.com/images/icons/emoji/unicode/1f44d.png&quot;&gt;👍&lt;/g-emoji&gt; &lt;g-emoji class=&quot;g-emoji&quot; alias=&quot;100&quot; fallback-src=&quot;https://assets-cdn.github.com/images/icons/emoji/unicode/1f4af.png&quot;&gt;💯&lt;/g-emoji&gt; &lt;g-emoji class=&quot;g-emoji&quot; alias=&quot;star&quot; fallback-src=&quot;https://assets-cdn.github.com/images/icons/emoji/unicode/2b50.png&quot;&gt;⭐️&lt;/g-emoji&gt;&lt;/p&gt;\n&lt;div class=&quot;highlight highlight-source-diff&quot;&gt;&lt;pre&gt;public class Hello1\n{\n public static void Main()\n {\n&lt;span class=&quot;pl-md&quot;&gt;&lt;span class=&quot;pl-md&quot;&gt;-&lt;/span&gt; System.Console.WriteLine(&quot;Hello, World!&quot;);&lt;/span&gt;\n&lt;span class=&quot;pl-mi1&quot;&gt;&lt;span class=&quot;pl-mi1&quot;&gt;+&lt;/span&gt; System.Console.WriteLine(&quot;Rock all night long!&quot;);&lt;/span&gt;\n }\n}&lt;/pre&gt;&lt;/div&gt;</content>\n <author>\n <name>vfeskov</name>\n </author>\n <media:thumbnail height=\"30\" width=\"30\" url=\"https://avatars1.githubusercontent.com/u/2743367?s=60&amp;v=4\"/>\n </entry>\n <entry>\n <id>tag:github.com,2008:Repository/124754149/v1.0.0</id>\n <updated>2018-03-11T12:33:16Z</updated>\n <link rel=\"alternate\" type=\"text/html\" href=\"https://github.com/vfeskov/for-fixtures/releases/tag/v1.0.0\"/>\n <title>First release</title>\n <content type=\"html\">&lt;h1&gt;The thing&lt;/h1&gt;\n&lt;ul&gt;\n&lt;li&gt;Stuff&lt;/li&gt;\n&lt;li&gt;Things&lt;/li&gt;\n&lt;li&gt;&lt;strong&gt;Wow&lt;/strong&gt;&lt;/li&gt;\n&lt;li&gt;&lt;a href=&quot;/vfeskov/for-fixtures/blob/v1.0.0/github.com&quot;&gt;github&lt;/a&gt;&lt;/li&gt;\n&lt;/ul&gt;</content>\n <author>\n <name>vfeskov</name>\n </author>\n <media:thumbnail height=\"30\" width=\"30\" url=\"https://avatars1.githubusercontent.com/u/2743367?s=60&amp;v=4\"/>\n </entry>\n</feed>\n",
9-
"rawHeaders": [
10-
"Server",
11-
"GitHub.com",
12-
"Date",
13-
"Sat, 14 Apr 2018 19:35:55 GMT",
14-
"Content-Type",
15-
"application/atom+xml; charset=utf-8",
16-
"Transfer-Encoding",
17-
"chunked",
18-
"Connection",
19-
"close",
20-
"Status",
21-
"200 OK",
22-
"Cache-Control",
23-
"no-cache",
24-
"Vary",
25-
"X-PJAX",
26-
"X-Request-Id",
27-
"235493c4-c052-4ee6-88c8-4986af5acc7b",
28-
"X-Runtime",
29-
"0.063949",
30-
"Strict-Transport-Security",
31-
"max-age=31536000; includeSubdomains; preload",
32-
"X-Frame-Options",
33-
"deny",
34-
"X-Content-Type-Options",
35-
"nosniff",
36-
"X-XSS-Protection",
37-
"1; mode=block",
38-
"Expect-CT",
39-
"max-age=2592000, report-uri=\"https://api.github.com/_private/browser/errors\"",
40-
"Content-Security-Policy",
41-
"default-src 'none'; base-uri 'self'; block-all-mixed-content; child-src render.githubusercontent.com; connect-src 'self' uploads.github.com status.github.com collector.githubapp.com api.github.com www.google-analytics.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com wss://live.github.com github-production-release-asset-2e65be.s3.amazonaws.com; font-src assets-cdn.github.com; form-action 'self' github.com gist.github.com; frame-ancestors 'none'; img-src 'self' data: assets-cdn.github.com identicons.github.com collector.githubapp.com github-cloud.s3.amazonaws.com *.githubusercontent.com; manifest-src 'self'; media-src 'none'; script-src assets-cdn.github.com; style-src 'unsafe-inline' assets-cdn.github.com; worker-src 'self'",
42-
"X-Runtime-rack",
43-
"0.071440",
44-
"X-GitHub-Request-Id",
45-
"1739:22F6:3C5D826:70D5DAB:5AD2581A"
46-
]
47-
}
48-
]
2+
{
3+
"scope": "https://github.com:443",
4+
"method": "GET",
5+
"path": "/vfeskov/for-fixtures/releases.atom",
6+
"body": "",
7+
"status": 200,
8+
"response": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<feed xmlns=\"http://www.w3.org/2005/Atom\" xmlns:media=\"http://search.yahoo.com/mrss/\" xml:lang=\"en-US\">\n <id>tag:github.com,2008:https://github.com/vfeskov/for-fixtures/releases</id>\n <link type=\"text/html\" rel=\"alternate\" href=\"https://github.com/vfeskov/for-fixtures/releases\"/>\n <link type=\"application/atom+xml\" rel=\"self\" href=\"https://github.com/vfeskov/for-fixtures/releases.atom\"/>\n <title>Release notes from for-fixtures</title>\n <updated>2018-03-11T12:33:42Z</updated>\n <entry>\n <id>tag:github.com,2008:Repository/124754149/v2.0.0</id>\n <updated>2018-03-11T12:38:02Z</updated>\n <link rel=\"alternate\" type=\"text/html\" href=\"https://github.com/vfeskov/for-fixtures/releases/tag/v2.0.0\"/>\n <title>New Stuff!</title>\n <content type=\"html\">&lt;h1&gt;WOW NEW STUFF!!&lt;/h1&gt;\n&lt;p&gt;issue &lt;a class=&quot;issue-link js-issue-link&quot; data-error-text=&quot;Failed to load issue title&quot; data-id=&quot;304154320&quot; data-permission-text=&quot;Issue title is private&quot; data-url=&quot;https://github.com/vfeskov/for-fixtures/issues/1&quot; href=&quot;https://github.com/vfeskov/for-fixtures/issues/1&quot;&gt;#1&lt;/a&gt;&lt;br&gt;\npull request &lt;a class=&quot;issue-link js-issue-link&quot; data-error-text=&quot;Failed to load issue title&quot; data-id=&quot;304154410&quot; data-permission-text=&quot;Issue title is private&quot; data-url=&quot;https://github.com/vfeskov/for-fixtures/issues/2&quot; href=&quot;https://github.com/vfeskov/for-fixtures/pull/2&quot;&gt;#2&lt;/a&gt;&lt;/p&gt;\n&lt;p&gt;&lt;a class=&quot;user-mention&quot; data-hovercard-user-id=&quot;2743367&quot; data-octo-click=&quot;hovercard-link-click&quot; data-octo-dimensions=&quot;link_type:self&quot; href=&quot;https://github.com/vfeskov&quot;&gt;@vfeskov&lt;/a&gt;&lt;/p&gt;\n&lt;p&gt;&lt;g-emoji class=&quot;g-emoji&quot; alias=&quot;+1&quot; fallback-src=&quot;https://assets-cdn.github.com/images/icons/emoji/unicode/1f44d.png&quot;&gt;👍&lt;/g-emoji&gt; &lt;g-emoji class=&quot;g-emoji&quot; alias=&quot;100&quot; fallback-src=&quot;https://assets-cdn.github.com/images/icons/emoji/unicode/1f4af.png&quot;&gt;💯&lt;/g-emoji&gt; &lt;g-emoji class=&quot;g-emoji&quot; alias=&quot;star&quot; fallback-src=&quot;https://assets-cdn.github.com/images/icons/emoji/unicode/2b50.png&quot;&gt;⭐️&lt;/g-emoji&gt;&lt;/p&gt;\n&lt;div class=&quot;highlight highlight-source-diff&quot;&gt;&lt;pre&gt;public class Hello1\n{\n public static void Main()\n {\n&lt;span class=&quot;pl-md&quot;&gt;&lt;span class=&quot;pl-md&quot;&gt;-&lt;/span&gt; System.Console.WriteLine(&quot;Hello, World!&quot;);&lt;/span&gt;\n&lt;span class=&quot;pl-mi1&quot;&gt;&lt;span class=&quot;pl-mi1&quot;&gt;+&lt;/span&gt; System.Console.WriteLine(&quot;Rock all night long!&quot;);&lt;/span&gt;\n }\n}&lt;/pre&gt;&lt;/div&gt;</content>\n <author>\n <name>vfeskov</name>\n </author>\n <media:thumbnail height=\"30\" width=\"30\" url=\"https://avatars1.githubusercontent.com/u/2743367?s=60&amp;v=4\"/>\n </entry>\n <entry>\n <id>tag:github.com,2008:Repository/124754149/v1.0.0</id>\n <updated>2018-03-11T12:33:16Z</updated>\n <link rel=\"alternate\" type=\"text/html\" href=\"https://github.com/vfeskov/for-fixtures/releases/tag/v1.0.0\"/>\n <title>First release</title>\n <content type=\"html\">&lt;h1&gt;The thing&lt;/h1&gt;\n&lt;ul&gt;\n&lt;li&gt;Stuff&lt;/li&gt;\n&lt;li&gt;Things&lt;/li&gt;\n&lt;li&gt;&lt;strong&gt;Wow&lt;/strong&gt;&lt;/li&gt;\n&lt;li&gt;&lt;a href=&quot;/vfeskov/for-fixtures/blob/v1.0.0/github.com&quot;&gt;github&lt;/a&gt;&lt;/li&gt;\n&lt;/ul&gt;</content>\n <author>\n <name>vfeskov</name>\n </author>\n <media:thumbnail height=\"30\" width=\"30\" url=\"https://avatars1.githubusercontent.com/u/2743367?s=60&amp;v=4\"/>\n </entry>\n</feed>\n",
9+
"rawHeaders": [
10+
"Server",
11+
"GitHub.com",
12+
"Date",
13+
"Sat, 14 Apr 2018 19:35:55 GMT",
14+
"Content-Type",
15+
"application/atom+xml; charset=utf-8",
16+
"Transfer-Encoding",
17+
"chunked",
18+
"Connection",
19+
"close",
20+
"Status",
21+
"200 OK",
22+
"Cache-Control",
23+
"no-cache",
24+
"Vary",
25+
"X-PJAX",
26+
"X-Request-Id",
27+
"235493c4-c052-4ee6-88c8-4986af5acc7b",
28+
"X-Runtime",
29+
"0.063949",
30+
"Strict-Transport-Security",
31+
"max-age=31536000; includeSubdomains; preload",
32+
"X-Frame-Options",
33+
"deny",
34+
"X-Content-Type-Options",
35+
"nosniff",
36+
"X-XSS-Protection",
37+
"1; mode=block",
38+
"Expect-CT",
39+
"max-age=2592000, report-uri=\"https://api.github.com/_private/browser/errors\"",
40+
"Content-Security-Policy",
41+
"default-src 'none'; base-uri 'self'; block-all-mixed-content; child-src render.githubusercontent.com; connect-src 'self' uploads.github.com status.github.com collector.githubapp.com api.github.com www.google-analytics.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com wss://live.github.com github-production-release-asset-2e65be.s3.amazonaws.com; font-src assets-cdn.github.com; form-action 'self' github.com gist.github.com; frame-ancestors 'none'; img-src 'self' data: assets-cdn.github.com identicons.github.com collector.githubapp.com github-cloud.s3.amazonaws.com *.githubusercontent.com; manifest-src 'self'; media-src 'none'; script-src assets-cdn.github.com; style-src 'unsafe-inline' assets-cdn.github.com; worker-src 'self'",
42+
"X-Runtime-rack",
43+
"0.071440",
44+
"X-GitHub-Request-Id",
45+
"1739:22F6:3C5D826:70D5DAB:5AD2581A"
46+
]
47+
}
48+
]

0 commit comments

Comments
 (0)