Skip to content

Commit 0d6a9aa

Browse files
itsMaxCsaadmk11
andauthored
fix: apply suggestions from code review
Co-authored-by: Maksudul Haque <saad.mk112@gmail.com>
1 parent dc424e4 commit 0d6a9aa

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

main.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)