@@ -57,14 +57,15 @@ echo $comment_body
5757echo $number
5858echo $labels
5959
60- already_needs_ci_alt=false
6160already_needs_ci=false
6261already_shipit=false
6362already_verified=false
6463already_verified_alt=false
6564already_needs_ci_lite=false
65+ already_needs_ci_alt=false
6666already_needs_ci_alt_lite=false
6767alt_python_version=" :3.13"
68+ curr_python_version=" :3.13"
6869
6970if [[ " $action " != " created" ]]; then
7071 echo This action should only be called when a comment is created on a pull request
@@ -99,7 +100,9 @@ if [[ $comment_body == "shipit" || $comment_body == ":shipit:" || $comment_body
99100 add_label " needs_ci"
100101 fi
101102 if [[ " $already_verified_alt " == false && " $already_needs_ci_alt " == false ]]; then
102- add_label " needs_ci${alt_python_version} "
103+ if [[ " $curr_python_version " != " $alt_python_version " ]]; then
104+ add_label " needs_ci${alt_python_version} "
105+ fi
103106 fi
104107 if [[ " $already_shipit " == false ]]; then
105108 add_label " shipit"
@@ -128,7 +131,9 @@ if [[ $comment_body == "needs_ci" ]]; then
128131 add_label " needs_ci"
129132 fi
130133 if [[ " $already_needs_ci_alt " == false ]]; then
131- add_label " needs_ci${alt_python_version} "
134+ if [[ " $curr_python_version " != " $alt_python_version " ]]; then
135+ add_label " needs_ci${alt_python_version} "
136+ fi
132137 fi
133138fi
134139
@@ -166,7 +171,9 @@ if [[ $comment_body == "needs_ci${alt_python_version}" ]]; then
166171 esac
167172 done
168173 if [[ " $already_needs_ci_alt " == false ]]; then
169- add_label " needs_ci${alt_python_version} "
174+ if [[ " $curr_python_version " != " $alt_python_version " ]]; then
175+ add_label " needs_ci${alt_python_version} "
176+ fi
170177 fi
171178fi
172179
@@ -185,7 +192,9 @@ if [[ $comment_body == "needs_ci${alt_python_version}:lite" ]]; then
185192 esac
186193 done
187194 if [[ " $already_needs_ci_alt_lite " == false ]]; then
188- add_label " needs_ci${alt_python_version} :lite"
195+ if [[ " $curr_python_version " != " $alt_python_version " ]]; then
196+ add_label " needs_ci${alt_python_version} :lite"
197+ fi
189198 fi
190199fi
191200
194203already_needs_sandbox=false
195204already_needs_alternate_version_sandbox=false
196205alternate_python_version=" 3.13"
206+ current_python_version=" 3.13"
197207
198208if [[ $comment_body =~ ^needs_sandbox(:${alternate_python_version} )(:(eu| gov| ca| uae| wu))? (:(dev| ([0-9]+)(\. ([0-9]+)? )? ))? (:(( [a- zA- Z0 - 9 , ]+ )) )? ([ \t ]* )? $ ]]; then
199209 for label in $labels ; do
@@ -221,7 +231,7 @@ if [[ $comment_body =~ ^needs_sandbox(:${alternate_python_version})(:(eu|gov|ca|
221231 ;;
222232 esac
223233 done
224- if [[ " $already_needs_sandbox " == false ]]; then
234+ if [[ " $already_needs_sandbox " == false && " $current_python_version " != " $alternate_python_version " ]]; then
225235 if [[ $comment_body =~ needs_sandbox:${alternate_python_version} :eu ]]; then
226236 add_label " sandbox:${alternate_python_version} :eu:"
227237 elif [[ $comment_body =~ needs_sandbox:${alternate_python_version} :ca ]]; then
0 commit comments