| 
									
										
										
										
											2021-05-21 09:45:36 -07:00
										 |  |  | /** | 
					
						
							|  |  |  |  * @license | 
					
						
							|  |  |  |  * Copyright Google LLC All Rights Reserved. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * Use of this source code is governed by an MIT-style license that can be | 
					
						
							|  |  |  |  * found in the LICENSE file at https://angular.io/license
 | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | export default `
 | 
					
						
							| 
									
										
										
										
											2021-04-01 16:28:17 -07:00
										 |  |  | <a name="<%- version %>"></a> | 
					
						
							|  |  |  | # <%- version %><% if (title) { %> "<%- title %>"<% } %> (<%- dateStamp %>) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <%_ | 
					
						
							|  |  |  | const commitsInChangelog = commits.filter(includeInReleaseNotes()); | 
					
						
							|  |  |  | for (const group of asCommitGroups(commitsInChangelog)) { | 
					
						
							|  |  |  | _%> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ### <%- group.title %> | 
					
						
							|  |  |  | | Commit | Description | | 
					
						
							|  |  |  | | -- | -- | | 
					
						
							|  |  |  | <%_ | 
					
						
							|  |  |  |   for (const commit of group.commits) { | 
					
						
							|  |  |  | _%> | 
					
						
							| 
									
										
										
										
											2021-07-02 12:08:05 +03:00
										 |  |  | | <%- commitToLink(commit) %> | <%- replaceCommitHeaderPullRequestNumber(commit.header) %> | | 
					
						
							| 
									
										
										
										
											2021-04-01 16:28:17 -07:00
										 |  |  | <%_ | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | _%> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <%_ | 
					
						
							|  |  |  | const breakingChanges = commits.filter(contains('breakingChanges')); | 
					
						
							|  |  |  | if (breakingChanges.length) { | 
					
						
							|  |  |  | _%> | 
					
						
							|  |  |  | ## Breaking Changes | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <%_ | 
					
						
							|  |  |  |   for (const group of asCommitGroups(breakingChanges)) { | 
					
						
							|  |  |  | _%> | 
					
						
							|  |  |  | ### <%- group.title %> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <%_ | 
					
						
							|  |  |  |     for (const commit of group.commits) { | 
					
						
							|  |  |  | _%> | 
					
						
							|  |  |  | <%- commit.breakingChanges[0].text %> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <%_ | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | _%> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <%_ | 
					
						
							|  |  |  | const deprecations = commits.filter(contains('deprecations')); | 
					
						
							|  |  |  | if (deprecations.length) { | 
					
						
							|  |  |  | _%> | 
					
						
							|  |  |  | ## Deprecations | 
					
						
							|  |  |  | <%_ | 
					
						
							|  |  |  |   for (const group of asCommitGroups(deprecations)) { | 
					
						
							|  |  |  | _%> | 
					
						
							|  |  |  | ### <%- group.title %> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <%_ | 
					
						
							|  |  |  |     for (const commit of group.commits) { | 
					
						
							|  |  |  | _%> | 
					
						
							|  |  |  | <%- commit.deprecations[0].text %> | 
					
						
							|  |  |  | <%_ | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | _%> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <%_ | 
					
						
							| 
									
										
										
										
											2021-06-29 10:33:40 +02:00
										 |  |  | const botsAuthorName = ['dependabot[bot]', 'Renovate Bot']; | 
					
						
							|  |  |  | const authors = commits | 
					
						
							|  |  |  |   .filter(unique('author')) | 
					
						
							|  |  |  |   .map(c => c.author) | 
					
						
							|  |  |  |   .filter(a => !botsAuthorName.includes(a)) | 
					
						
							|  |  |  |   .sort(); | 
					
						
							| 
									
										
										
										
											2021-04-01 16:28:17 -07:00
										 |  |  | if (authors.length === 1) { | 
					
						
							|  |  |  | _%> | 
					
						
							|  |  |  | ## Special Thanks: | 
					
						
							|  |  |  | <%- authors[0]%> | 
					
						
							|  |  |  | <%_ | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | if (authors.length > 1) { | 
					
						
							|  |  |  | _%> | 
					
						
							|  |  |  | ## Special Thanks: | 
					
						
							|  |  |  | <%- authors.slice(0, -1).join(', ') %> and <%- authors.slice(-1)[0] %> | 
					
						
							|  |  |  | <%_ | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | _%> | 
					
						
							| 
									
										
										
										
											2021-05-21 09:45:36 -07:00
										 |  |  | `;
 |