Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customize commit messages #679

Merged

Conversation

paulschuberth
Copy link
Contributor

@paulschuberth paulschuberth commented May 1, 2023

This change adds a new input to the action. It can be used to customize
the message of the commit created by this action.

This input is not required and has the default value Update Gradle Wrapper from %sourceVersion% to %targetVersion%, where %sourceVersion%
will be replaced by the current/old version of the Gradle Wrapper and
%targetVersion% will be replaced by the new version of the Gradle
Wrapper.

The PR title and body remain unaffected by this change.

Implements #246

Copy link
Contributor

@ChrisCarini ChrisCarini left a comment

Choose a reason for hiding this comment

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

LGTM!

@paulschuberth paulschuberth force-pushed the customize-commit-messages branch from 4b08091 to cbc33d0 Compare May 2, 2023 18:33
@paulschuberth
Copy link
Contributor Author

Thanks for the review @ChrisCarini. I've rebased my branches onto main to resolve the conflicts.

@paulschuberth paulschuberth force-pushed the customize-commit-messages branch from cbc33d0 to 608605d Compare May 2, 2023 19:20
@paulschuberth
Copy link
Contributor Author

Rebased once more to resolve conflicts in README.md.

Copy link
Contributor

@ChrisCarini ChrisCarini left a comment

Choose a reason for hiding this comment

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

LGTM! @cristiangreco , thoughts? 😄

@paulschuberth
Copy link
Contributor Author

Hi @cristiangreco, I hope all is well 😊

Just checking if there is anything I can improve here to get this merged. I would appreciate any feedback.

If you just haven't gotten around to take a look that's of course fine too.

@Fs02
Copy link

Fs02 commented May 19, 2023

The PR title and body remain unaffected by this change.

will be very useful for me if this also supports PR title

@paulschuberth
Copy link
Contributor Author

The PR title and body remain unaffected by this change.

will be very useful for me if this also supports PR title

I can look into that over the weekend. It might become it's own PR though, to keep the changes limited in their scopes.

@ChrisCarini
Copy link
Contributor

The PR title and body remain unaffected by this change.

will be very useful for me if this also supports PR title

I can look into that over the weekend. It might become it's own PR though, to keep the changes limited in their scopes.

FWIW (I'm not the owner of this repo), it'd make sense to do that in a separate change. I personally think this change is ready for an approval and to be merged+released, so I wouldn't want to delay that on a separate (although, very related) feature.

@cristiangreco - thoughts? Think we can get this PR merged in and released to folks soon?

Copy link
Contributor

@ChrisCarini ChrisCarini left a comment

Choose a reason for hiding this comment

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

LGTM! @cristiangreco mind taking a few minutes to review this when you have a moment?

@paulschuberth
Copy link
Contributor Author

As follow up to #695 (comment) this PR needs some adjustments. I am about to leave for a short vacation and can tackle it some time next week.

@paulschuberth paulschuberth force-pushed the customize-commit-messages branch from 5e4f513 to 58c3265 Compare July 3, 2023 20:55
@paulschuberth
Copy link
Contributor Author

Updated this PR to match the nullability behaviour of #695

This change adds a new input to the action. It can be used to customize
the message of the commit created by this action.

This input is not required and has the default value `Update Gradle
Wrapper from %sourceVersion% to %targetVersion%`, where `%sourceVersion%`
will be replaced by the current/old version of the Gradle Wrapper and
`%targetVersion%` will be replaced by the new version of the Gradle
Wrapper.

The PR title and body remain unaffected by this change.

Implements gradle-update#246
@paulschuberth paulschuberth force-pushed the customize-commit-messages branch from 79ca8bd to 1d487cf Compare July 9, 2023 21:25
For cases where the source version of the Gradle wrapper cannot
be determined the string `undefined` is used as a fallback.

This allows to use the same custom commit message template in
all cases.
@paulschuberth paulschuberth force-pushed the customize-commit-messages branch from 1d487cf to 65bfe63 Compare July 16, 2023 16:30
@codecov-commenter
Copy link

codecov-commenter commented Jul 16, 2023

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 91.66667% with 1 line in your changes missing coverage. Please review.

Please upload report for BASE (main@aee8d70). Learn more about missing BASE report.

Files with missing lines Patch % Lines
src/git/git-commit.ts 50.00% 1 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #679   +/-   ##
=======================================
  Coverage        ?   83.53%           
=======================================
  Files           ?       16           
  Lines           ?      589           
  Branches        ?       82           
=======================================
  Hits            ?      492           
  Misses          ?       97           
  Partials        ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ChrisCarini
Copy link
Contributor

@cristiangreco - are you able to take a look at this PR that @paulschuberth has put forth when you have a moment?

@paulschuberth
Copy link
Contributor Author

Hi @cristiangreco
Is there still something that's blocking the merge? Something to improve or change on my end?

@ChrisCarini
Copy link
Contributor

@cristiangreco - are you able to take a look at this PR that @paulschuberth has put forth when you have a moment?

@ChrisCarini
Copy link
Contributor

Hey @cristiangreco - any chance you could take a look at this PR when you have a moment? 🙏 I'd love to see it merged in.

@ChrisCarini
Copy link
Contributor

Hi @cristiangreco - I'm sure you're very busy with other work, but when you have ~5 min, would you mind taking another peak at this PR that @paulschuberth put forward? It's been open ~14 months now, and I'd love to see it reviewed / merged in, if you feel it's ready!

action.yml Outdated Show resolved Hide resolved
Copy link
Contributor

@cristiangreco cristiangreco 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 the PR and sorry for keeping you waiting so long!

@cristiangreco cristiangreco added this pull request to the merge queue Sep 16, 2024
Merged via the queue into gradle-update:main with commit 13be621 Sep 16, 2024
1 check passed
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.

5 participants