apycot-moved #45958 when a repository is being imported, only launch tests when a head is reached [open]

to avoid useless work. Also, closed branches should be skipped.

prioritynormal
typebug
done in<not specified>
load0.500
load left0.500
closed by<not specified>