Merge branch 'new-features'
This commit is contained in:
		
						commit
						d3c3b7850f
					
				@ -233,7 +233,27 @@ class ChangelogGenerator
 | 
				
			|||||||
      # Generate issues:
 | 
					      # Generate issues:
 | 
				
			||||||
      if issues
 | 
					      if issues
 | 
				
			||||||
        issues.each { |dict|
 | 
					        issues.each { |dict|
 | 
				
			||||||
          merge = "*Fixed issue:* #{dict[:title]} [\\##{dict[:number]}](https://github.com/#{@options[:user]}/#{@options[:project]}/issues/#{dict[:number]})\n\n"
 | 
					          is_bug = false
 | 
				
			||||||
 | 
					          is_enhancement  = false
 | 
				
			||||||
 | 
					          dict.labels.each { |label|
 | 
				
			||||||
 | 
					            if label.name == 'bug'
 | 
				
			||||||
 | 
					              is_bug = true
 | 
				
			||||||
 | 
					            end
 | 
				
			||||||
 | 
					            if label.name == 'enhancement'
 | 
				
			||||||
 | 
					              is_enhancement  = true
 | 
				
			||||||
 | 
					            end
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					          intro = 'Closed issue'
 | 
				
			||||||
 | 
					          if is_bug
 | 
				
			||||||
 | 
					            intro =  'Fixed bug'
 | 
				
			||||||
 | 
					          end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					          if is_enhancement
 | 
				
			||||||
 | 
					            intro = 'Implemented enhancement'
 | 
				
			||||||
 | 
					          end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					          merge = "*#{intro}:* #{dict[:title]} [\\##{dict[:number]}](https://github.com/#{@options[:user]}/#{@options[:project]}/issues/#{dict[:number]})\n\n"
 | 
				
			||||||
          log += "- #{merge}"
 | 
					          log += "- #{merge}"
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
      end
 | 
					      end
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user