Currently the script reference the .config from the current directory
instead of using the directory where the script is located.
Use dirname $0 to correctly reference the .config in the script
directory instead of the current directory where the script is executed.
Fixes: a598bb477585 ("github-merge-pr: move script config to separate file")
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
# GITHUB_USE_SSH=1
# Everything in .config will overwrite the default values set up
-[ -f .config ] && source .config
+[ -f "$(dirname $0)/.config" ] && source $(dirname $0)/.config
PRID="$1"
BRANCH="${2:-main}"