mirror of
https://github.com/neovim/neovim.git
synced 2025-09-09 04:48:18 +00:00
Merge pull request #5775 from jamessan/vim-patch-review
vim-patch: Allow skipping non-"vim-patch" commits during review
This commit is contained in:
@@ -366,6 +366,14 @@ review_commit() {
|
|||||||
echo
|
echo
|
||||||
if [[ -n "${vim_version}" ]]; then
|
if [[ -n "${vim_version}" ]]; then
|
||||||
echo "✔ Detected Vim patch '${vim_version}'."
|
echo "✔ Detected Vim patch '${vim_version}'."
|
||||||
|
else
|
||||||
|
echo "✘ Could not detect the Vim patch number."
|
||||||
|
echo " This script assumes that the PR contains only commits"
|
||||||
|
echo " with 'vim-patch:XXX' in their title."
|
||||||
|
echo
|
||||||
|
printf -- "$(head -n 4 <<< "${nvim_patch}")\n\n"
|
||||||
|
local reply
|
||||||
|
read -p "Continue reviewing (y/N)? " -n 1 -r reply
|
||||||
if [[ ! "${reply}" =~ ^[Nn]$ ]]; then
|
if [[ ! "${reply}" =~ ^[Nn]$ ]]; then
|
||||||
echo
|
echo
|
||||||
return
|
return
|
||||||
|
Reference in New Issue
Block a user