10

https://help.github.com/articles/about-pull-request-merges/#squash-and-merge-your-pull-request-commits

Is there way to squash and merge a Pull Request with my GPG signing via command line? Merging a Pull Request on UI doesn't supports GPG signing. I've tried to merge via git merge --squash, but it doesn't close the Pull Request automatically.

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
okuryu
  • 221
  • 1
  • 9

2 Answers2

15

The "Squash and merge your pull request commits" is a server-side option which, indeed, does not support gpg signing.

That means you need to:

It is a manual and somewhat convoluted process, but it will work.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
0

You can now use hub command line tool.

The command is hub merge <url-to-pull-request>.

If you have authentication issues, you can use a developer token instead of password.

Florent Morin
  • 842
  • 1
  • 10
  • 13