feat(gitlab_release): python module to check if a commit message has gitlab references in the footer
#4
This commit is contained in:
		
							
								
								
									
										14
									
								
								gitlab_release/python-module/commit_footer/cli.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								gitlab_release/python-module/commit_footer/cli.py
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,14 @@ | ||||
| #!/usr/bin/env python3 | ||||
| #-*- coding: utf-8 -*- | ||||
|  | ||||
| import sys | ||||
| from commits import Commits | ||||
|  | ||||
| def main(): | ||||
|  | ||||
|     commits = Commits() | ||||
|  | ||||
|     if commits.check(): | ||||
|         sys.exit(0) | ||||
|     else: | ||||
|         sys.exit(1) | ||||
		Reference in New Issue
	
	Block a user