Add tiny release notes script
This commit is contained in:
		
					parent
					
						
							
								dd1485a277
							
						
					
				
			
			
				commit
				
					
						2b71a6c4f4
					
				
			
		
					 1 changed files with 15 additions and 0 deletions
				
			
		
							
								
								
									
										15
									
								
								scripts/reformat-release-notes.py
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										15
									
								
								scripts/reformat-release-notes.py
									
										
									
									
									
										Executable file
									
								
							|  | @ -0,0 +1,15 @@ | |||
| #!/usr/bin/env python3 | ||||
| 
 | ||||
| # This script can be used to reformat the release notes generated by | ||||
| # GitHub releases into a format slightly more appropriate for our | ||||
| # project (ie. we don't really need to mention the author of every PR) | ||||
| # | ||||
| # eg. in: * OpenTelemetry by @dbkr in https://github.com/vector-im/element-call/pull/961 | ||||
| #    out: * OpenTelemetry (https://github.com/vector-im/element-call/pull/961) | ||||
| 
 | ||||
| import sys | ||||
| import re | ||||
| 
 | ||||
| for line in sys.stdin: | ||||
|     matches = re.match(r'^\* (.*) by (.*) in (.*)$', line.strip()) | ||||
|     print("* %s (%s)" % (matches[1], matches[3])) | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue