We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d19a34 commit 248d686Copy full SHA for 248d686
gerrit/gerrit-push-for.sh
@@ -74,11 +74,18 @@ fi
74
topic=$(git rev-parse --abbrev-ref $ref)
75
topic=${topic#gerrit/}
76
topic=${topic#${USER-$USERNAME}/}
77
+
78
+if [[ "$refname" == "drafts" ]]; then
79
+ entity="draft(s)"
80
+else
81
+ entity="change(s)"
82
+fi
83
84
if [[ "$topic" != "" && "$topic" != "HEAD" && "$topic" != "$target" ]]; then
- echo "Going to push $revcount \"$topic\" commit(s) for \"$remote/$target\"."
85
+ echo "Going to push $revcount \"$topic\" $entity for \"$remote/$target\"."
86
options="%topic=$topic"
87
else
- echo "Going to push $revcount commit(s) for \"$remote/$target\"."
88
+ echo "Going to push $revcount $entity for \"$remote/$target\"."
89
fi
90
91
if [ $skip -eq 0 ]; then
0 commit comments