mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 11:58:17 +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
|
||||
if [[ -n "${vim_version}" ]]; then
|
||||
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
|
||||
echo
|
||||
return
|
||||
|
Reference in New Issue
Block a user