Merge branch 'stable' into devel
[tails.git] / bin / generate-call-for-trusted-reproducer
blob550ec1f6119e4304483d36007c1426452a8da357
1 #! /usr/bin/python3
3 import jinja2
5 import automailer
8 def call_for_trusted_reproducer_contents(args) -> str:
9     jinja2_env = jinja2.Environment(  # nosec jinja2_autoescape_false
10         loader=jinja2.FileSystemLoader('config/release_management/templates'))
12     return (jinja2_env.get_template('call_for_trusted_reproducer.mdwn').render(
13         version=args.version))
16 if __name__ == '__main__':
17     parser = automailer.get_parser()
18     parser.add_argument('--version', required=True)
19     args = parser.parse_args()
21     automailer.mailer(mailer=args.mailer, body=call_for_trusted_reproducer_contents(args))