Skip to content

Commit c47c62f

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

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def create_new_branch(self):
185185
)
186186
subprocess.run(['git', 'add', '.'])
187187
subprocess.run(
188-
['git', 'commit', '-m', commit_message]
188+
['git', 'commit', '-m', self.commit_message]
189189
)
190190

191191
subprocess.run(['git', 'push', '-u', 'origin', new_branch])
@@ -198,7 +198,7 @@ def create_pull_request(self, branch_name, body):
198198
"""Create pull request on GitHub"""
199199
url = f'{self.github_api_url}/repos/{self.repository}/pulls'
200200
payload = {
201-
'title': pr_title,
201+
'title': self.pr_title,
202202
'head': branch_name,
203203
'base': self.base_branch,
204204
'body': body,

0 commit comments

Comments
 (0)