Skip to content

GitHub App which adds an empty commit to an open pull request with a single commit when the title was changed

License

Notifications You must be signed in to change notification settings

squash-commit-app/squash-commit-app

Repository files navigation

squash-commit-app

GitHub App which adds an empty commit to an open Pull Request with a single commit when the title was changed.

⚠️ The existance of this app doesn't make much sense since now GitHub solves this natively.

Context

Given a Pull Request, if it only has one commit, when you try to squash-and-merge, the default message used for that squashed commit will be the commit message of that single commit instead of the Pull Request title.

Sometimes this is not the desired behavior (when you want to use conventional commits for example). When a PR has 2 or more commits, GitHub uses the PR title, so the goal of this GitHub App is to enforce using the PR title as a commit message when doing a squash-and-merge.

You can find more context in this Twitter thread

Present

Recently, GitHub released an option to do that so this App is not necessary anymore: https://github.blog/changelog/2022-05-11-default-to-pr-titles-for-squash-merge-commit-messages/

About

GitHub App which adds an empty commit to an open pull request with a single commit when the title was changed

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published