Set target version if nil
Pull request may be nil too