Added option to specify a custom commit-description
All checks were successful
gl/check check status: success (df3b77df1025ba56a99b10ef0260f35534ffa6b5)
gl/gate gate status: success (df3b77df1025ba56a99b10ef0260f35534ffa6b5)

This commit is contained in:
SebastianGode
2023-04-27 12:42:51 +02:00
parent b711305a4c
commit df3b77df10

View File

@ -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)