Skip to content

Allow custom commit message and pull request title#12

Merged
saadmk11 merged 6 commits intosaadmk11:mainfrom
itsMaxC:main
Jul 12, 2022
Merged

Allow custom commit message and pull request title#12
saadmk11 merged 6 commits intosaadmk11:mainfrom
itsMaxC:main

Conversation

@itsMaxC
Copy link
Copy Markdown
Contributor

@itsMaxC itsMaxC commented May 28, 2022

This PR creates two new inputs, to allow customizing the PR title and commit message. This is useful when someone wants to ensure consistency in their repo, such as using conventional commits or any organization standard.

Those are optional, and will default to the current value of 'Update GitHub Action Versions'.

New inputs were also documented in the README file.

Copy link
Copy Markdown
Owner

@saadmk11 saadmk11 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @thehedgefrog, Thanks for The PR! 💯

Comment thread main.py
Comment on lines +316 to +318
commit_message = os.environ['INPUT_COMMIT_MESSAGE']
# Pull Request Title
pr_title = os.environ['INPUT_PULL_REQUEST_TITLE']
Copy link
Copy Markdown
Owner

@saadmk11 saadmk11 May 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should pass these to the GitHubActionsVersionUpdater classes __init__() method, just like ignore input.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am very much a newbie with Python, I will look into this and figure it out :)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @saadmk11 - added it but I am not sure it was in the spirit of your suggestion. Let me know and thank you!

@itsMaxC itsMaxC marked this pull request as draft May 29, 2022 15:53
@itsMaxC itsMaxC marked this pull request as ready for review May 29, 2022 16:07
@itsMaxC itsMaxC requested a review from saadmk11 May 30, 2022 20:37
@itsMaxC
Copy link
Copy Markdown
Contributor Author

itsMaxC commented Jun 3, 2022

@saadmk11 following up to see if there are more corrections to be made :)

Copy link
Copy Markdown
Owner

@saadmk11 saadmk11 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @thehedgefrog, I have suggested a few small changes so that we can run the GitHubActionsVersionUpdater without needing the user inputs.

Comment thread main.py Outdated
Comment thread main.py Outdated
Comment thread main.py Outdated
Co-authored-by: Maksudul Haque <saad.mk112@gmail.com>
@itsMaxC
Copy link
Copy Markdown
Contributor Author

itsMaxC commented Jun 6, 2022

@saadmk11 thank you so much for this, it's very helpful for my understanding of Python! Also, I caught how my testing was not complete. Cheers!

@itsMaxC itsMaxC requested a review from saadmk11 June 6, 2022 13:21
Comment thread main.py Outdated
Comment thread main.py Outdated
Co-authored-by: Maksudul Haque <saad.mk112@gmail.com>
@itsMaxC itsMaxC requested a review from saadmk11 July 11, 2022 14:12
Copy link
Copy Markdown
Owner

@saadmk11 saadmk11 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for addressing the change request. This looks great! 🚀

@saadmk11 saadmk11 merged commit e5efd10 into saadmk11:main Jul 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants