@@ -15,12 +15,12 @@ class GitHubActionsVersionUpdater:
1515 github_url = 'https://github.com/'
1616 action_label = 'uses'
1717
18- def __init__ (self , repository , base_branch , token , commit_message , pr_title , ignore_actions = None ):
18+ def __init__ (self , repository , base_branch , token , commit_message = None , pr_title = None , ignore_actions = None ):
1919 self .repository = repository
2020 self .base_branch = base_branch
2121 self .token = token
22- self .commit_message = commit_message
23- self .pr_title = pr_title
22+ self .commit_message = commit_message or 'Update GitHub Action Versions'
23+ self .pr_title = pr_title or 'Update GitHub Action Versions'
2424 self .ignore_actions = self .get_ignored_actions (ignore_actions )
2525 self .workflow_updated = False
2626
@@ -332,7 +332,7 @@ def print_message(message, message_type=None):
332332
333333 # Initialize GitHubActionsVersionUpdater
334334 actions_version_updater = GitHubActionsVersionUpdater (
335- repository , base_branch , token , commit_message , pr_title , ignore_actions = ignore
335+ repository , base_branch , token , commit_message = commit_message , pr_title = pr_title , ignore_actions = ignore
336336 )
337337 actions_version_updater .run ()
338338
0 commit comments