Added option to specify a custom commit-description
This commit is contained in:
		@ -245,11 +245,7 @@ def process_repositories(args, service):
 | 
				
			|||||||
        )
 | 
					        )
 | 
				
			||||||
        return
 | 
					        return
 | 
				
			||||||
    repo_to.index.commit(
 | 
					    repo_to.index.commit(
 | 
				
			||||||
        (
 | 
					        args.commit_description
 | 
				
			||||||
            "Update tox.ini && conf.py file\n\n"
 | 
					 | 
				
			||||||
            "Performed-by: gitea/infra/otc-metadata/"
 | 
					 | 
				
			||||||
            "tools/generate_doc_confpy.py"
 | 
					 | 
				
			||||||
        )
 | 
					 | 
				
			||||||
    )
 | 
					    )
 | 
				
			||||||
    push_args = ["--set-upstream", "origin", branch_name]
 | 
					    push_args = ["--set-upstream", "origin", branch_name]
 | 
				
			||||||
    if args.branch_force:
 | 
					    if args.branch_force:
 | 
				
			||||||
@ -332,6 +328,15 @@ def main():
 | 
				
			|||||||
        help=("Whether to overwrite index.rst for service-based-view."
 | 
					        help=("Whether to overwrite index.rst for service-based-view."
 | 
				
			||||||
              + "\nCan only be used if --update-sbv is also specified")
 | 
					              + "\nCan only be used if --update-sbv is also specified")
 | 
				
			||||||
    )
 | 
					    )
 | 
				
			||||||
 | 
					    parser.add_argument(
 | 
				
			||||||
 | 
					        "--commit-description",
 | 
				
			||||||
 | 
					        default=(
 | 
				
			||||||
 | 
					            "Update tox.ini && conf.py file\n\n"
 | 
				
			||||||
 | 
					            "Performed-by: gitea/infra/otc-metadata/"
 | 
				
			||||||
 | 
					            "tools/generate_doc_confpy.py"
 | 
				
			||||||
 | 
					        ),
 | 
				
			||||||
 | 
					        help="Commit description for the commit",
 | 
				
			||||||
 | 
					    )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    args = parser.parse_args()
 | 
					    args = parser.parse_args()
 | 
				
			||||||
    logging.basicConfig(level=logging.DEBUG)
 | 
					    logging.basicConfig(level=logging.DEBUG)
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user