Skip to content

Commit

Permalink
Update cmd.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mordamax committed Sep 10, 2024
1 parent 22450c2 commit b63f442
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/scripts/cmd/cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,7 @@
generate_prdoc = importlib.util.module_from_spec(spec)
spec.loader.exec_module(generate_prdoc)

# Create the prdoc subparser
parser_prdoc = subparsers.add_parser('prdoc', help='Generates PR documentation')

# Use parse_args from generate_prdoc to add arguments
generate_prdoc.parse_args(parser_prdoc)

def main():
Expand Down Expand Up @@ -229,7 +226,7 @@ def main():
sys.exit(1)

elif args.command == 'prdoc':
# Call the main function from generate_prdoc module
# Call the main function from ./github/scripts/generate-prdoc.py module
exit_code = generate_prdoc.main(args)
if exit_code != 0 and not args.continue_on_fail:
print('❌ Failed to generate prdoc')
Expand Down

0 comments on commit b63f442

Please sign in to comment.