GitHub Pull Request Creator¶
This package provides functionality to programmatically create a "Pull Request" on a repository hosted on GitHub.
Setup¶
Set up your Github settings on Edit/Project Settings/Stratkit/Github Settings
:
Usage¶
PullRequestCreatorConfig config = new();
PullRequestCreatorUI prCreatorUi = new();
prCreatorUi.SetConfig(config);
prCreatorUi.OpenWindow();
Installation¶
This package depends on git command line tool. Make sure you have git and, if required, git-lfs installed. Use git credential manager to avoid having to enter your credentials every time.
MacOS¶
Use homebrew to install git and git-lfs
brew install git git-lfs
git config --global credential.helper osxkeychain
sudo git lfs install --system
Windows¶
Download and install git from https://git-scm.com/download/win Download and install git lfs from https://git-lfs.github.com/
Enable caching of git credentials:
You should not use the Open SSH client that comes with Git for Windows. Instead, Windows 10 has its own implementation of Open SSH that is integrated with the system. To achieve this:
- Start the
ssh-agent
from Windows Services: - Type
Services
in theStart Menu
orWin+R
and then typeservices.msc
to launch the Services window; - Find the
OpenSSH Authentication Agent
in the list and double click on it; -
In the
OpenSSH Authentication Agent Properties
window that appears, chooseAutomatic
from theStartup type:
dropdown and clickStart
fromService status:
. Make sure it now saysService status: Running
. -
Configure Git to use the Windows 10 implementation of OpenSSH by issuing the following command in Powershell:
-
Configure SSH to automatically add the keys to the agent on startup by editing the
You can also add the following lines if you generated an SSH key with custom name or multiple SSH keys:config
file found at$HOME\.ssh\config
(full path -C:\Users\%YOUR_USERNAME%\.ssh\config
), and add the following lines: -
Add your SSH key to the
ssh-agent
by issuing thessh-add
command and entering your passphrase: -
Done! Now restart your Powershell and even Windows if necessary.
Source https://gist.github.com/danieldogeanu/16c61e9b80345c5837b9e5045a701c99. Cheers!